Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
aec1553e
Commit
aec1553e
authored
Apr 22, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add a method to create a declaration from a fvf.
parent
61d1abb1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
device.c
dlls/wined3d/device.c
+5
-0
wined3d_interface.h
include/wine/wined3d_interface.h
+2
-0
No files found.
dlls/wined3d/device.c
View file @
aec1553e
...
...
@@ -1577,6 +1577,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateVertexDeclaration(IWineD3DDevice*
return
hr
;
}
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateVertexDeclarationFromFVF
(
IWineD3DDevice
*
iface
,
IWineD3DVertexDeclaration
**
ppVertexDeclaration
,
IUnknown
*
Parent
,
DWORD
Fvf
)
{
return
E_NOTIMPL
;
}
/* http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c/directx/graphics/programmingguide/programmable/vertexshaders/vscreate.asp */
static
HRESULT
WINAPI
IWineD3DDeviceImpl_CreateVertexShader
(
IWineD3DDevice
*
iface
,
IWineD3DVertexDeclaration
*
vertex_declaration
,
CONST
DWORD
*
pFunction
,
IWineD3DVertexShader
**
ppVertexShader
,
IUnknown
*
parent
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
...
...
@@ -6109,6 +6113,7 @@ const IWineD3DDeviceVtbl IWineD3DDevice_Vtbl =
IWineD3DDeviceImpl_CreateQuery
,
IWineD3DDeviceImpl_CreateAdditionalSwapChain
,
IWineD3DDeviceImpl_CreateVertexDeclaration
,
IWineD3DDeviceImpl_CreateVertexDeclarationFromFVF
,
IWineD3DDeviceImpl_CreateVertexShader
,
IWineD3DDeviceImpl_CreatePixelShader
,
IWineD3DDeviceImpl_CreatePalette
,
...
...
include/wine/wined3d_interface.h
View file @
aec1553e
...
...
@@ -357,6 +357,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
STDMETHOD
(
CreateQuery
)(
THIS_
WINED3DQUERYTYPE
Type
,
struct
IWineD3DQuery
**
ppQuery
,
IUnknown
*
pParent
);
STDMETHOD
(
CreateAdditionalSwapChain
)(
THIS_
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
,
struct
IWineD3DSwapChain
**
pSwapChain
,
IUnknown
*
pParent
,
D3DCB_CREATERENDERTARGETFN
pFn
,
D3DCB_CREATEDEPTHSTENCILSURFACEFN
pFn2
);
STDMETHOD
(
CreateVertexDeclaration
)(
THIS_
struct
IWineD3DVertexDeclaration
**
ppDecl
,
IUnknown
*
pParent
,
const
WINED3DVERTEXELEMENT
*
elements
,
size_t
element_count
)
PURE
;
STDMETHOD
(
CreateVertexDeclarationFromFVF
)(
THIS_
struct
IWineD3DVertexDeclaration
**
ppDecl
,
IUnknown
*
pParent
,
DWORD
Fvf
)
PURE
;
STDMETHOD
(
CreateVertexShader
)(
THIS_
struct
IWineD3DVertexDeclaration
*
vertex_declaration
,
CONST
DWORD
*
pFunction
,
struct
IWineD3DVertexShader
**
ppShader
,
IUnknown
*
pParent
)
PURE
;
STDMETHOD
(
CreatePixelShader
)(
THIS_
CONST
DWORD
*
pFunction
,
struct
IWineD3DPixelShader
**
ppShader
,
IUnknown
*
pParent
)
PURE
;
STDMETHOD_
(
HRESULT
,
CreatePalette
)(
THIS_
DWORD
Flags
,
PALETTEENTRY
*
PalEnt
,
struct
IWineD3DPalette
**
Palette
,
IUnknown
*
Parent
);
...
...
@@ -494,6 +495,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
#define IWineD3DDevice_CreateQuery(p,a,b,c) (p)->lpVtbl->CreateQuery(p,a,b,c)
#define IWineD3DDevice_CreateAdditionalSwapChain(p,a,b,c,d,e) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b,c,d,e)
#define IWineD3DDevice_CreateVertexDeclaration(p,a,b,c,d) (p)->lpVtbl->CreateVertexDeclaration(p,a,b,c,d)
#define IWineD3DDevice_CreateVertexDeclarationFromFVF(p,a,b,c) (p)->lpVtbl->CreateVertexDeclarationFromFVF(p,a,b,c)
#define IWineD3DDevice_CreateVertexShader(p,a,b,c,d) (p)->lpVtbl->CreateVertexShader(p,a,b,c,d)
#define IWineD3DDevice_CreatePixelShader(p,a,b,c) (p)->lpVtbl->CreatePixelShader(p,a,b,c)
#define IWineD3DDevice_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment