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
1db6ce13
Commit
1db6ce13
authored
Apr 06, 2010
by
Christian Costa
Committed by
Alexandre Julliard
Apr 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36: Add definitions for ID3DXBaseMesh and ID3DXMesh interfaces.
parent
01624ea6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
98 additions
and
0 deletions
+98
-0
d3dx9mesh.h
include/d3dx9mesh.h
+98
-0
No files found.
include/d3dx9mesh.h
View file @
1db6ce13
...
...
@@ -21,6 +21,104 @@
#ifndef __WINE_D3DX9MESH_H
#define __WINE_D3DX9MESH_H
DEFINE_GUID
(
IID_ID3DXBaseMesh
,
0x7ed943dd
,
0x52e8
,
0x40b5
,
0xa8
,
0xd8
,
0x76
,
0x68
,
0x5c
,
0x40
,
0x63
,
0x30
);
DEFINE_GUID
(
IID_ID3DXMesh
,
0x4020e5c2
,
0x1403
,
0x4929
,
0x88
,
0x3f
,
0xe2
,
0xe8
,
0x49
,
0xfa
,
0xc1
,
0x95
);
enum
_MAX_FVF_DECL_SIZE
{
MAX_FVF_DECL_SIZE
=
MAXD3DDECLLENGTH
+
1
};
typedef
struct
ID3DXBaseMesh
*
LPD3DXBASEMESH
;
typedef
struct
ID3DXMesh
*
LPD3DXMESH
;
typedef
struct
_D3DXATTRIBUTERANGE
{
DWORD
AttribId
;
DWORD
FaceStart
;
DWORD
FaceCount
;
DWORD
VertexStart
;
DWORD
VertexCount
;
}
D3DXATTRIBUTERANGE
;
typedef
D3DXATTRIBUTERANGE
*
LPD3DXATTRIBUTERANGE
;
#undef INTERFACE
#define INTERFACE ID3DXBaseMesh
DECLARE_INTERFACE_
(
ID3DXBaseMesh
,
IUnknown
)
{
/*** IUnknown methods ***/
STDMETHOD
(
QueryInterface
)(
THIS_
REFIID
riid
,
LPVOID
*
object
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** ID3DXBaseMesh ***/
STDMETHOD
(
DrawSubset
)(
THIS_
DWORD
attrib_id
)
PURE
;
STDMETHOD_
(
DWORD
,
GetNumFaces
)(
THIS
)
PURE
;
STDMETHOD_
(
DWORD
,
GetNumVertices
)(
THIS
)
PURE
;
STDMETHOD_
(
DWORD
,
GetFVF
)(
THIS
)
PURE
;
STDMETHOD
(
GetDeclaration
)(
THIS_
D3DVERTEXELEMENT9
declaration
[
MAX_FVF_DECL_SIZE
])
PURE
;
STDMETHOD_
(
DWORD
,
GetNumBytesPerVertex
)(
THIS
)
PURE
;
STDMETHOD_
(
DWORD
,
GetOptions
)(
THIS
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
LPDIRECT3DDEVICE9
*
device
)
PURE
;
STDMETHOD
(
CloneMeshFVF
)(
THIS_
DWORD
options
,
DWORD
fvf
,
LPDIRECT3DDEVICE9
device
,
LPD3DXMESH
*
clone_mesh
)
PURE
;
STDMETHOD
(
CloneMesh
)(
THIS_
DWORD
options
,
CONST
D3DVERTEXELEMENT9
*
declaration
,
LPDIRECT3DDEVICE9
device
,
LPD3DXMESH
*
clone_mesh
)
PURE
;
STDMETHOD
(
GetVertexBuffer
)(
THIS_
LPDIRECT3DVERTEXBUFFER9
*
vertex_buffer
)
PURE
;
STDMETHOD
(
GetIndexBuffer
)(
THIS_
LPDIRECT3DINDEXBUFFER9
*
index_buffer
)
PURE
;
STDMETHOD
(
LockVertexBuffer
)(
THIS_
DWORD
flags
,
LPVOID
*
data
)
PURE
;
STDMETHOD
(
UnlockVertexBuffer
)(
THIS
)
PURE
;
STDMETHOD
(
LockIndexBuffer
)(
THIS_
DWORD
flags
,
LPVOID
*
data
)
PURE
;
STDMETHOD
(
UnlockIndexBuffer
)(
THIS
)
PURE
;
STDMETHOD
(
GetAttributeTable
)(
THIS_
D3DXATTRIBUTERANGE
*
attrib_table
,
DWORD
*
attrib_table_size
)
PURE
;
STDMETHOD
(
ConvertPointRepsToAdjacency
)(
THIS_
CONST
DWORD
*
point_reps
,
DWORD
*
adjacency
)
PURE
;
STDMETHOD
(
ConvertAdjacencyToPointReps
)(
THIS_
CONST
DWORD
*
adjacency
,
DWORD
*
point_reps
)
PURE
;
STDMETHOD
(
GenerateAdjacency
)(
THIS_
FLOAT
epsilon
,
DWORD
*
adjacency
)
PURE
;
STDMETHOD
(
UpdateSemantics
)(
THIS_
D3DVERTEXELEMENT9
declaration
[
MAX_FVF_DECL_SIZE
])
PURE
;
};
#undef INTERFACE
#define INTERFACE ID3DXMesh
DECLARE_INTERFACE_
(
ID3DXMesh
,
ID3DXBaseMesh
)
{
/*** IUnknown methods ***/
STDMETHOD
(
QueryInterface
)(
THIS_
REFIID
riid
,
LPVOID
*
object
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** ID3DXBaseMesh ***/
STDMETHOD
(
DrawSubset
)(
THIS_
DWORD
attrib_id
)
PURE
;
STDMETHOD_
(
DWORD
,
GetNumFaces
)(
THIS
)
PURE
;
STDMETHOD_
(
DWORD
,
GetNumVertices
)(
THIS
)
PURE
;
STDMETHOD_
(
DWORD
,
GetFVF
)(
THIS
)
PURE
;
STDMETHOD
(
GetDeclaration
)(
THIS_
D3DVERTEXELEMENT9
declaration
[
MAX_FVF_DECL_SIZE
])
PURE
;
STDMETHOD_
(
DWORD
,
GetNumBytesPerVertex
)(
THIS
)
PURE
;
STDMETHOD_
(
DWORD
,
GetOptions
)(
THIS
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
LPDIRECT3DDEVICE9
*
device
)
PURE
;
STDMETHOD
(
CloneMeshFVF
)(
THIS_
DWORD
options
,
DWORD
fvf
,
LPDIRECT3DDEVICE9
device
,
LPD3DXMESH
*
clone_mesh
)
PURE
;
STDMETHOD
(
CloneMesh
)(
THIS_
DWORD
options
,
CONST
D3DVERTEXELEMENT9
*
declaration
,
LPDIRECT3DDEVICE9
device
,
LPD3DXMESH
*
clone_mesh
)
PURE
;
STDMETHOD
(
GetVertexBuffer
)(
THIS_
LPDIRECT3DVERTEXBUFFER9
*
vertex_buffer
)
PURE
;
STDMETHOD
(
GetIndexBuffer
)(
THIS_
LPDIRECT3DINDEXBUFFER9
*
index_buffer
)
PURE
;
STDMETHOD
(
LockVertexBuffer
)(
THIS_
DWORD
flags
,
LPVOID
*
data
)
PURE
;
STDMETHOD
(
UnlockVertexBuffer
)(
THIS
)
PURE
;
STDMETHOD
(
LockIndexBuffer
)(
THIS_
DWORD
flags
,
LPVOID
*
data
)
PURE
;
STDMETHOD
(
UnlockIndexBuffer
)(
THIS
)
PURE
;
STDMETHOD
(
GetAttributeTable
)(
THIS_
D3DXATTRIBUTERANGE
*
attrib_table
,
DWORD
*
attrib_table_size
)
PURE
;
STDMETHOD
(
ConvertPointRepsToAdjacency
)(
THIS_
CONST
DWORD
*
point_reps
,
DWORD
*
adjacency
)
PURE
;
STDMETHOD
(
ConvertAdjacencyToPointReps
)(
THIS_
CONST
DWORD
*
adjacency
,
DWORD
*
point_reps
)
PURE
;
STDMETHOD
(
GenerateAdjacency
)(
THIS_
FLOAT
epsilon
,
DWORD
*
adjacency
)
PURE
;
STDMETHOD
(
UpdateSemantics
)(
THIS_
D3DVERTEXELEMENT9
declaration
[
MAX_FVF_DECL_SIZE
])
PURE
;
/*** ID3DXMesh ***/
STDMETHOD
(
LockAttributeBuffer
)(
THIS_
DWORD
flags
,
DWORD
**
data
)
PURE
;
STDMETHOD
(
UnlockAttributeBuffer
)(
THIS
)
PURE
;
STDMETHOD
(
Optimize
)(
THIS_
DWORD
flags
,
CONST
DWORD
*
adjacency_in
,
DWORD
*
adjacency_out
,
DWORD
*
face_remap
,
LPD3DXBUFFER
*
vertex_remap
,
LPD3DXMESH
*
opt_mesh
)
PURE
;
STDMETHOD
(
OptimizeInplace
)(
THIS_
DWORD
flags
,
CONST
DWORD
*
adjacency_in
,
DWORD
*
adjacency_out
,
DWORD
*
face_remap
,
LPD3DXBUFFER
*
vertex_remap
)
PURE
;
STDMETHOD
(
SetAttributeTable
)(
THIS_
CONST
D3DXATTRIBUTERANGE
*
attrib_table
,
DWORD
attrib_table_size
)
PURE
;
};
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
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