VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/d3dx9mesh.h@ 104831

最後變更 在這個檔案從104831是 53206,由 vboxsync 提交於 10 年 前

Devices/vmsvga: header fixes

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 54.0 KB
 
1/*
2 * Copyright (C) 2009 David Adam
3 * Copyright (C) 2010 Tony Wasserka
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 */
19
20/*
21 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
22 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
23 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
24 * a choice of LGPL license versions is made available with the language indicating
25 * that LGPLv2 or any later version may be used, or where a choice of which version
26 * of the LGPL is applied is otherwise unspecified.
27 */
28
29#include <d3dx9.h>
30
31#ifndef __WINE_D3DX9MESH_H
32#define __WINE_D3DX9MESH_H
33
34DEFINE_GUID(IID_ID3DXBaseMesh, 0x7ed943dd, 0x52e8, 0x40b5, 0xa8, 0xd8, 0x76, 0x68, 0x5c, 0x40, 0x63, 0x30);
35DEFINE_GUID(IID_ID3DXMesh, 0x4020e5c2, 0x1403, 0x4929, 0x88, 0x3f, 0xe2, 0xe8, 0x49, 0xfa, 0xc1, 0x95);
36DEFINE_GUID(IID_ID3DXPMesh, 0x8875769a, 0xd579, 0x4088, 0xaa, 0xeb, 0x53, 0x4d, 0x1a, 0xd8, 0x4e, 0x96);
37DEFINE_GUID(IID_ID3DXSPMesh, 0x667ea4c7, 0xf1cd, 0x4386, 0xb5, 0x23, 0x7c, 0x02, 0x90, 0xb8, 0x3c, 0xc5);
38DEFINE_GUID(IID_ID3DXSkinInfo, 0x11eaa540, 0xf9a6, 0x4d49, 0xae, 0x6a, 0xe1, 0x92, 0x21, 0xf7, 0x0c, 0xc4);
39DEFINE_GUID(IID_ID3DXPatchMesh,0x3ce6cc22, 0xdbf2, 0x44f4, 0x89, 0x4d, 0xf9, 0xc3, 0x4a, 0x33, 0x71, 0x39);
40DEFINE_GUID(IID_ID3DXPRTBuffer, 0xf1827e47, 0x00a8, 0x49cd, 0x90, 0x8c, 0x9d, 0x11, 0x95, 0x5f, 0x87, 0x28);
41DEFINE_GUID(IID_ID3DXPRTCompBuffer, 0xa758d465, 0xfe8d, 0x45ad, 0x9c, 0xf0, 0xd0, 0x1e, 0x56, 0x26, 0x6a, 0x07);
42DEFINE_GUID(IID_ID3DXTextureGutterHelper, 0x838f01ec, 0x9729, 0x4527, 0xaa, 0xdb, 0xdf, 0x70, 0xad, 0xe7, 0xfe, 0xa9);
43DEFINE_GUID(IID_ID3DXPRTEngine, 0x683a4278, 0xcd5f, 0x4d24, 0x90, 0xad, 0xc4, 0xe1, 0xb6, 0x85, 0x5d, 0x53);
44
45#define UNUSED16 (0xffff)
46#define UNUSED32 (0xffffffff)
47
48enum _MAX_FVF_DECL_SIZE
49{
50 MAX_FVF_DECL_SIZE = MAXD3DDECLLENGTH + 1
51};
52
53enum _D3DXMESH
54{
55 D3DXMESH_32BIT = 0x001,
56 D3DXMESH_DONOTCLIP = 0x002,
57 D3DXMESH_POINTS = 0x004,
58 D3DXMESH_RTPATCHES = 0x008,
59 D3DXMESH_NPATCHES = 0x4000,
60 D3DXMESH_VB_SYSTEMMEM = 0x010,
61 D3DXMESH_VB_MANAGED = 0x020,
62 D3DXMESH_VB_WRITEONLY = 0x040,
63 D3DXMESH_VB_DYNAMIC = 0x080,
64 D3DXMESH_VB_SOFTWAREPROCESSING = 0x8000,
65 D3DXMESH_IB_SYSTEMMEM = 0x100,
66 D3DXMESH_IB_MANAGED = 0x200,
67 D3DXMESH_IB_WRITEONLY = 0x400,
68 D3DXMESH_IB_DYNAMIC = 0x800,
69 D3DXMESH_IB_SOFTWAREPROCESSING = 0x10000,
70 D3DXMESH_VB_SHARE = 0x1000,
71 D3DXMESH_USEHWONLY = 0x2000,
72 D3DXMESH_SYSTEMMEM = 0x110,
73 D3DXMESH_MANAGED = 0x220,
74 D3DXMESH_WRITEONLY = 0x440,
75 D3DXMESH_DYNAMIC = 0x880,
76 D3DXMESH_SOFTWAREPROCESSING = 0x18000
77};
78
79enum _D3DXMESHOPT
80{
81 D3DXMESHOPT_DEVICEINDEPENDENT = 0x00400000,
82 D3DXMESHOPT_COMPACT = 0x01000000,
83 D3DXMESHOPT_ATTRSORT = 0x02000000,
84 D3DXMESHOPT_VERTEXCACHE = 0x04000000,
85 D3DXMESHOPT_STRIPREORDER = 0x08000000,
86 D3DXMESHOPT_IGNOREVERTS = 0x10000000,
87 D3DXMESHOPT_DONOTSPLIT = 0x20000000,
88};
89
90typedef enum _D3DXPATCHMESHTYPE
91{
92 D3DXPATCHMESH_RECT = 1,
93 D3DXPATCHMESH_TRI = 2,
94 D3DXPATCHMESH_NPATCH = 3,
95 D3DXPATCHMESH_FORCE_DWORD = 0x7fffffff,
96} D3DXPATCHMESHTYPE;
97
98enum _D3DXPATCHMESH
99{
100 D3DXPATCHMESH_DEFAULT = 0,
101};
102
103enum _D3DXMESHSIMP
104{
105 D3DXMESHSIMP_VERTEX = 0x1,
106 D3DXMESHSIMP_FACE = 0x2,
107};
108
109typedef enum D3DXCLEANTYPE {
110 D3DXCLEAN_BACKFACING = 0x00000001,
111 D3DXCLEAN_BOWTIES = 0x00000002,
112
113 D3DXCLEAN_SKINNING = D3DXCLEAN_BACKFACING,
114 D3DXCLEAN_OPTIMIZATION = D3DXCLEAN_BACKFACING,
115 D3DXCLEAN_SIMPLIFICATION = D3DXCLEAN_BACKFACING | D3DXCLEAN_BOWTIES,
116} D3DXCLEANTYPE;
117
118typedef enum _D3DXTANGENT
119{
120 D3DXTANGENT_WRAP_U = 0x0001,
121 D3DXTANGENT_WRAP_V = 0x0002,
122 D3DXTANGENT_WRAP_UV = 0x0003,
123 D3DXTANGENT_DONT_NORMALIZE_PARTIALS = 0x0004,
124 D3DXTANGENT_DONT_ORTHOGONALIZE = 0x0008,
125 D3DXTANGENT_ORTHOGONALIZE_FROM_V = 0x0010,
126 D3DXTANGENT_ORTHOGONALIZE_FROM_U = 0x0020,
127 D3DXTANGENT_WEIGHT_BY_AREA = 0x0040,
128 D3DXTANGENT_WEIGHT_EQUAL = 0x0080,
129 D3DXTANGENT_WIND_CW = 0x0100,
130 D3DXTANGENT_CALCULATE_NORMALS = 0x0200,
131 D3DXTANGENT_GENERATE_IN_PLACE = 0x0400,
132} D3DXTANGENT;
133
134typedef enum _D3DXIMT
135{
136 D3DXIMT_WRAP_U = 0x01,
137 D3DXIMT_WRAP_V = 0x02,
138 D3DXIMT_WRAP_UV = 0x03,
139} D3DXIMT;
140
141typedef enum _D3DXUVATLAS
142{
143 D3DXUVATLAS_DEFAULT = 0x00,
144 D3DXUVATLAS_GEODESIC_FAST = 0x01,
145 D3DXUVATLAS_GEODESIC_QUALITY = 0x02,
146} D3DXUVATLAS;
147
148typedef enum _D3DXEFFECTDEFAULTTYPE
149{
150 D3DXEDT_STRING = 1,
151 D3DXEDT_FLOATS = 2,
152 D3DXEDT_DWORD = 3,
153 D3DXEDT_FORCEDWORD = 0x7fffffff,
154} D3DXEFFECTDEFAULTTYPE;
155
156enum _D3DXWELDEPSILONSFLAGS
157{
158 D3DXWELDEPSILONS_WELDALL = 0x1,
159 D3DXWELDEPSILONS_WELDPARTIALMATCHES = 0x2,
160 D3DXWELDEPSILONS_DONOTREMOVEVERTICES = 0x4,
161 D3DXWELDEPSILONS_DONOTSPLIT = 0x8,
162};
163
164typedef enum _D3DXSHCOMPRESSQUALITYTYPE
165{
166 D3DXSHCQUAL_FASTLOWQUALITY = 1,
167 D3DXSHCQUAL_SLOWHIGHQUALITY = 2,
168 D3DXSHCQUAL_FORCE_DWORD = 0x7fffffff,
169} D3DXSHCOMPRESSQUALITYTYPE;
170
171typedef enum _D3DXSHGPUSIMOPT
172{
173 D3DXSHGPUSIMOPT_SHADOWRES256 = 1,
174 D3DXSHGPUSIMOPT_SHADOWRES512 = 0,
175 D3DXSHGPUSIMOPT_SHADOWRES1024 = 2,
176 D3DXSHGPUSIMOPT_SHADOWRES2048 = 3,
177 D3DXSHGPUSIMOPT_HIGHQUALITY = 4,
178 D3DXSHGPUSIMOPT_FORCE_DWORD = 0x7fffffff,
179} D3DXSHGPUSIMOPT;
180
181typedef struct ID3DXBaseMesh* LPD3DXBASEMESH;
182typedef struct ID3DXMesh* LPD3DXMESH;
183typedef struct ID3DXPMesh *LPD3DXPMESH;
184typedef struct ID3DXSPMesh *LPD3DXSPMESH;
185typedef struct ID3DXSkinInfo *LPD3DXSKININFO;
186typedef struct ID3DXPatchMesh *LPD3DXPATCHMESH;
187typedef struct ID3DXPRTBuffer *LPD3DXPRTBUFFER;
188typedef struct ID3DXPRTCompBuffer *LPD3DXPRTCOMPBUFFER;
189typedef struct ID3DXPRTEngine *LPD3DXPRTENGINE;
190typedef struct ID3DXTextureGutterHelper *LPD3DXTEXTUREGUTTERHELPER;
191
192typedef struct _D3DXATTRIBUTERANGE {
193 DWORD AttribId;
194 DWORD FaceStart;
195 DWORD FaceCount;
196 DWORD VertexStart;
197 DWORD VertexCount;
198} D3DXATTRIBUTERANGE;
199
200typedef D3DXATTRIBUTERANGE* LPD3DXATTRIBUTERANGE;
201
202typedef struct _D3DXMATERIAL
203{
204 D3DMATERIAL9 MatD3D;
205 char *pTextureFilename;
206} D3DXMATERIAL, *LPD3DXMATERIAL;
207
208typedef struct _D3DXEFFECTDEFAULT
209{
210 char *pParamName;
211 D3DXEFFECTDEFAULTTYPE Type;
212 DWORD NumBytes;
213 void *pValue;
214} D3DXEFFECTDEFAULT, *LPD3DXEFFECTDEFAULT;
215
216typedef struct _D3DXEFFECTINSTANCE
217{
218 char *pEffectFilename;
219 DWORD NumDefaults;
220 LPD3DXEFFECTDEFAULT pDefaults;
221} D3DXEFFECTINSTANCE, *LPD3DXEFFECTINSTANCE;
222
223typedef struct _D3DXATTRIBUTEWEIGHTS
224{
225 FLOAT Position;
226 FLOAT Boundary;
227 FLOAT Normal;
228 FLOAT Diffuse;
229 FLOAT Specular;
230 FLOAT Texcoords[8];
231 FLOAT Tangent;
232 FLOAT Binormal;
233} D3DXATTRIBUTEWEIGHTS, *LPD3DXATTRIBUTEWEIGHTS;
234
235typedef struct _D3DXWELDEPSILONS
236{
237 FLOAT Position;
238 FLOAT BlendWeights;
239 FLOAT Normals;
240 FLOAT PSize;
241 FLOAT Specular;
242 FLOAT Diffuse;
243 FLOAT Texcoords[8];
244 FLOAT Tangent;
245 FLOAT Binormal;
246 FLOAT TessFactor;
247} D3DXWELDEPSILONS, *LPD3DXWELDEPSILONS;
248
249typedef struct _D3DXBONECOMBINATION
250{
251 DWORD AttribId;
252 DWORD FaceStart;
253 DWORD FaceCount;
254 DWORD VertexStart;
255 DWORD VertexCout;
256 DWORD *BoneId;
257} D3DXBONECOMBINATION, *LPD3DXBONECOMBINATION;
258
259typedef struct _D3DXPATCHINFO
260{
261 D3DXPATCHMESHTYPE PatchType;
262 D3DDEGREETYPE Degree;
263 D3DBASISTYPE Basis;
264} D3DXPATCHINFO, *LPD3DXPATCHINFO;
265
266typedef struct _D3DXINTERSECTINFO
267{
268 DWORD FaceIndex;
269 FLOAT U;
270 FLOAT V;
271 FLOAT Dist;
272} D3DXINTERSECTINFO, *LPD3DXINTERSECTINFO;
273
274typedef struct _D3DXSHMATERIAL
275{
276 D3DCOLORVALUE Diffuse;
277 BOOL bMirror;
278 BOOL bSubSurf;
279 FLOAT RelativeIndexOfRefraction;
280 D3DCOLORVALUE Absorption;
281 D3DCOLORVALUE ReducedScattering;
282} D3DXSHMATERIAL;
283
284typedef struct _D3DXSHPRTSPLITMESHVERTDATA
285{
286 UINT uVertRemap;
287 UINT uSubCluster;
288 UCHAR ucVertStatus;
289} D3DXSHPRTSPLITMESHVERTDATA;
290
291typedef struct _D3DXSHPRTSPLITMESHCLUSTERDATA
292{
293 UINT uVertStart;
294 UINT uVertLength;
295 UINT uFaceStart;
296 UINT uFaceLength;
297 UINT uClusterStart;
298 UINT uClusterLength;
299} D3DXSHPRTSPLITMESHCLUSTERDATA;
300
301typedef struct _XFILECOMPRESSEDANIMATIONSET
302{
303 DWORD CompressedBlockSize;
304 FLOAT TicksPerSec;
305 DWORD PlaybackType;
306 DWORD BufferLength;
307} XFILECOMPRESSEDANIMATIONSET;
308
309typedef HRESULT (WINAPI *LPD3DXUVATLASCB)(float complete, void *ctx);
310typedef HRESULT (WINAPI *LPD3DXIMTSIGNALCALLBACK)(const D3DXVECTOR2 *, UINT, UINT, void *, FLOAT *);
311typedef HRESULT (WINAPI *LPD3DXSHPRTSIMCB)(float complete, void *ctx);
312
313#undef INTERFACE
314#define INTERFACE ID3DXBaseMesh
315
316DECLARE_INTERFACE_(ID3DXBaseMesh, IUnknown)
317{
318 /*** IUnknown methods ***/
319 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
320 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
321 STDMETHOD_(ULONG, Release)(THIS) PURE;
322 /*** ID3DXBaseMesh ***/
323 STDMETHOD(DrawSubset)(THIS_ DWORD attrib_id) PURE;
324 STDMETHOD_(DWORD, GetNumFaces)(THIS) PURE;
325 STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE;
326 STDMETHOD_(DWORD, GetFVF)(THIS) PURE;
327 STDMETHOD(GetDeclaration)(THIS_ D3DVERTEXELEMENT9 declaration[MAX_FVF_DECL_SIZE]) PURE;
328 STDMETHOD_(DWORD, GetNumBytesPerVertex)(THIS) PURE;
329 STDMETHOD_(DWORD, GetOptions)(THIS) PURE;
330 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9 **device) PURE;
331 STDMETHOD(CloneMeshFVF)(THIS_ DWORD options, DWORD fvf,
332 struct IDirect3DDevice9 *device, struct ID3DXMesh **clone_mesh) PURE;
333 STDMETHOD(CloneMesh)(THIS_ DWORD options, const D3DVERTEXELEMENT9 *declaration,
334 struct IDirect3DDevice9 *device, struct ID3DXMesh **clone_mesh) PURE;
335 STDMETHOD(GetVertexBuffer)(THIS_ struct IDirect3DVertexBuffer9 **vertex_buffer) PURE;
336 STDMETHOD(GetIndexBuffer)(THIS_ struct IDirect3DIndexBuffer9 **index_buffer) PURE;
337 STDMETHOD(LockVertexBuffer)(THIS_ DWORD flags, void **data) PURE;
338 STDMETHOD(UnlockVertexBuffer)(THIS) PURE;
339 STDMETHOD(LockIndexBuffer)(THIS_ DWORD flags, void **data) PURE;
340 STDMETHOD(UnlockIndexBuffer)(THIS) PURE;
341 STDMETHOD(GetAttributeTable)(THIS_ D3DXATTRIBUTERANGE* attrib_table, DWORD* attrib_table_size) PURE;
342 STDMETHOD(ConvertPointRepsToAdjacency)(THIS_ const DWORD *point_reps, DWORD *adjacency) PURE;
343 STDMETHOD(ConvertAdjacencyToPointReps)(THIS_ const DWORD *adjacency, DWORD *point_reps) PURE;
344 STDMETHOD(GenerateAdjacency)(THIS_ FLOAT epsilon, DWORD* adjacency) PURE;
345 STDMETHOD(UpdateSemantics)(THIS_ D3DVERTEXELEMENT9 declaration[MAX_FVF_DECL_SIZE]) PURE;
346};
347#undef INTERFACE
348
349#define INTERFACE ID3DXMesh
350DECLARE_INTERFACE_(ID3DXMesh, ID3DXBaseMesh)
351{
352 /*** IUnknown methods ***/
353 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
354 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
355 STDMETHOD_(ULONG, Release)(THIS) PURE;
356 /*** ID3DXBaseMesh ***/
357 STDMETHOD(DrawSubset)(THIS_ DWORD attrib_id) PURE;
358 STDMETHOD_(DWORD, GetNumFaces)(THIS) PURE;
359 STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE;
360 STDMETHOD_(DWORD, GetFVF)(THIS) PURE;
361 STDMETHOD(GetDeclaration)(THIS_ D3DVERTEXELEMENT9 declaration[MAX_FVF_DECL_SIZE]) PURE;
362 STDMETHOD_(DWORD, GetNumBytesPerVertex)(THIS) PURE;
363 STDMETHOD_(DWORD, GetOptions)(THIS) PURE;
364 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9 **device) PURE;
365 STDMETHOD(CloneMeshFVF)(THIS_ DWORD options, DWORD fvf,
366 struct IDirect3DDevice9 *device, struct ID3DXMesh **clone_mesh) PURE;
367 STDMETHOD(CloneMesh)(THIS_ DWORD options, const D3DVERTEXELEMENT9 *declaration,
368 struct IDirect3DDevice9 *device, struct ID3DXMesh **clone_mesh) PURE;
369 STDMETHOD(GetVertexBuffer)(THIS_ struct IDirect3DVertexBuffer9 **vertex_buffer) PURE;
370 STDMETHOD(GetIndexBuffer)(THIS_ struct IDirect3DIndexBuffer9 **index_buffer) PURE;
371 STDMETHOD(LockVertexBuffer)(THIS_ DWORD flags, void **data) PURE;
372 STDMETHOD(UnlockVertexBuffer)(THIS) PURE;
373 STDMETHOD(LockIndexBuffer)(THIS_ DWORD flags, void **data) PURE;
374 STDMETHOD(UnlockIndexBuffer)(THIS) PURE;
375 STDMETHOD(GetAttributeTable)(THIS_ D3DXATTRIBUTERANGE* attrib_table, DWORD* attrib_table_size) PURE;
376 STDMETHOD(ConvertPointRepsToAdjacency)(THIS_ const DWORD *point_reps, DWORD *adjacency) PURE;
377 STDMETHOD(ConvertAdjacencyToPointReps)(THIS_ const DWORD *adjacency, DWORD *point_reps) PURE;
378 STDMETHOD(GenerateAdjacency)(THIS_ FLOAT epsilon, DWORD* adjacency) PURE;
379 STDMETHOD(UpdateSemantics)(THIS_ D3DVERTEXELEMENT9 declaration[MAX_FVF_DECL_SIZE]) PURE;
380 /*** ID3DXMesh ***/
381 STDMETHOD(LockAttributeBuffer)(THIS_ DWORD flags, DWORD** data) PURE;
382 STDMETHOD(UnlockAttributeBuffer)(THIS) PURE;
383 STDMETHOD(Optimize)(THIS_ DWORD flags, const DWORD *adjacency_in, DWORD *adjacency_out,
384 DWORD *face_remap, ID3DXBuffer **vertex_remap, ID3DXMesh **opt_mesh) PURE;
385 STDMETHOD(OptimizeInplace)(THIS_ DWORD flags, const DWORD *adjacency_in, DWORD *adjacency_out,
386 DWORD *face_remap, ID3DXBuffer **vertex_remap) PURE;
387 STDMETHOD(SetAttributeTable)(THIS_ const D3DXATTRIBUTERANGE *attrib_table,
388 DWORD attrib_table_size) PURE;
389};
390#undef INTERFACE
391
392#define INTERFACE ID3DXPMesh
393DECLARE_INTERFACE_(ID3DXPMesh, ID3DXBaseMesh)
394{
395 /*** IUnknown methods ***/
396 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
397 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
398 STDMETHOD_(ULONG, Release)(THIS) PURE;
399 /*** ID3DXBaseMesh ***/
400 STDMETHOD(DrawSubset)(THIS_ DWORD attrib_id) PURE;
401 STDMETHOD_(DWORD, GetNumFaces)(THIS) PURE;
402 STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE;
403 STDMETHOD_(DWORD, GetFVF)(THIS) PURE;
404 STDMETHOD(GetDeclaration)(THIS_ D3DVERTEXELEMENT9 declaration[MAX_FVF_DECL_SIZE]) PURE;
405 STDMETHOD_(DWORD, GetNumBytesPerVertex)(THIS) PURE;
406 STDMETHOD_(DWORD, GetOptions)(THIS) PURE;
407 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9 **device) PURE;
408 STDMETHOD(CloneMeshFVF)(THIS_ DWORD options, DWORD fvf,
409 struct IDirect3DDevice9 *device, struct ID3DXMesh **clone_mesh) PURE;
410 STDMETHOD(CloneMesh)(THIS_ DWORD options, const D3DVERTEXELEMENT9 *declaration,
411 struct IDirect3DDevice9 *device, struct ID3DXMesh **clone_mesh) PURE;
412 STDMETHOD(GetVertexBuffer)(THIS_ struct IDirect3DVertexBuffer9 **vertex_buffer) PURE;
413 STDMETHOD(GetIndexBuffer)(THIS_ struct IDirect3DIndexBuffer9 **index_buffer) PURE;
414 STDMETHOD(LockVertexBuffer)(THIS_ DWORD flags, void **data) PURE;
415 STDMETHOD(UnlockVertexBuffer)(THIS) PURE;
416 STDMETHOD(LockIndexBuffer)(THIS_ DWORD flags, void **data) PURE;
417 STDMETHOD(UnlockIndexBuffer)(THIS) PURE;
418 STDMETHOD(GetAttributeTable)(THIS_ D3DXATTRIBUTERANGE* attrib_table, DWORD* attrib_table_size) PURE;
419 STDMETHOD(ConvertPointRepsToAdjacency)(THIS_ const DWORD *point_reps, DWORD *adjacency) PURE;
420 STDMETHOD(ConvertAdjacencyToPointReps)(THIS_ const DWORD *adjacency, DWORD *point_reps) PURE;
421 STDMETHOD(GenerateAdjacency)(THIS_ FLOAT epsilon, DWORD* adjacency) PURE;
422 STDMETHOD(UpdateSemantics)(THIS_ D3DVERTEXELEMENT9 declaration[MAX_FVF_DECL_SIZE]) PURE;
423 /*** ID3DXPMesh ***/
424 STDMETHOD(ClonePMeshFVF)(THIS_ DWORD options, DWORD fvf,
425 struct IDirect3DDevice9 *device, struct ID3DXPMesh **clone_mesh) PURE;
426 STDMETHOD(ClonePMesh)(THIS_ DWORD options, const D3DVERTEXELEMENT9 *declaration,
427 struct IDirect3DDevice9 *device, struct ID3DXPMesh **clone_mesh) PURE;
428 STDMETHOD(SetNumFaces)(THIS_ DWORD faces) PURE;
429 STDMETHOD(SetNumVertices)(THIS_ DWORD vertices) PURE;
430 STDMETHOD_(DWORD, GetMaxFaces)(THIS) PURE;
431 STDMETHOD_(DWORD, GetMinFaces)(THIS) PURE;
432 STDMETHOD_(DWORD, GetMaxVertices)(THIS) PURE;
433 STDMETHOD_(DWORD, GetMinVertices)(THIS) PURE;
434 STDMETHOD(Save)(THIS_ IStream *stream, const D3DXMATERIAL *material,
435 const D3DXEFFECTINSTANCE *effect_instance, DWORD num_materials) PURE;
436 STDMETHOD(Optimize)(THIS_ DWORD flags, DWORD *adjacency_out, DWORD *face_remap,
437 ID3DXBuffer **vertex_remap, ID3DXMesh **opt_mesh) PURE;
438 STDMETHOD(OptimizeBaseLOD)(THIS_ DWORD flags, DWORD* face_remap) PURE;
439 STDMETHOD(TrimByFaces)(THIS_ DWORD new_faces_min, DWORD new_faces_max, DWORD* face_remap, DWORD* vertex_remap) PURE;
440 STDMETHOD(TrimByVertices)(THIS_ DWORD new_vertices_min, DWORD new_vertices_max, DWORD* face_remap, DWORD* vertex_remap) PURE;
441 STDMETHOD(GetAdjacency)(THIS_ DWORD* adjacency) PURE;
442 STDMETHOD(GenerateVertexHistory)(THIS_ DWORD* vertex_history) PURE;
443};
444#undef INTERFACE
445
446#define INTERFACE ID3DXSPMesh
447DECLARE_INTERFACE_(ID3DXSPMesh, IUnknown)
448{
449 /*** IUnknown methods ***/
450 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
451 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
452 STDMETHOD_(ULONG, Release)(THIS) PURE;
453 /*** ID3DXSPMesh ***/
454 STDMETHOD_(DWORD, GetNumFaces)(THIS) PURE;
455 STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE;
456 STDMETHOD_(DWORD, GetNumFVF)(THIS) PURE;
457 STDMETHOD(GetDeclaration)(THIS_ D3DVERTEXELEMENT9 declaration[MAX_FVF_DECL_SIZE]) PURE;
458 STDMETHOD_(DWORD, GetOptions)(THIS) PURE;
459 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9 **device) PURE;
460 STDMETHOD(CloneMeshFVF)(THIS_ DWORD options, DWORD fvf,
461 struct IDirect3DDevice9 *device, DWORD *adjacency_out,
462 DWORD *vertex_remap_out, struct ID3DXMesh **clone_mesh) PURE;
463 STDMETHOD(CloneMesh)(THIS_ DWORD options, const D3DVERTEXELEMENT9 *declaration,
464 struct IDirect3DDevice9 *device, DWORD *adjacency_out,
465 DWORD *vertex_remap_out, struct ID3DXMesh **clone_mesh) PURE;
466 STDMETHOD(ClonePMeshFVF)(THIS_ DWORD options, DWORD fvf,
467 struct IDirect3DDevice9 *device, DWORD *vertex_remap_out,
468 float *errors_by_face, struct ID3DXPMesh **clone_mesh) PURE;
469 STDMETHOD(ClonePMesh)(THIS_ DWORD options, const D3DVERTEXELEMENT9 *declaration,
470 struct IDirect3DDevice9 *device, DWORD *vertex_remap_out,
471 float *errors_by_face, struct ID3DXPMesh **clone_mesh) PURE;
472 STDMETHOD(ReduceFaces)(THIS_ DWORD faces) PURE;
473 STDMETHOD(ReduceVertices)(THIS_ DWORD vertices) PURE;
474 STDMETHOD_(DWORD, GetMaxFaces)(THIS) PURE;
475 STDMETHOD_(DWORD, GetMaxVertices)(THIS) PURE;
476 STDMETHOD(GetVertexAttributeWeights)(THIS_ LPD3DXATTRIBUTEWEIGHTS vertex_attribute_weights) PURE;
477 STDMETHOD(GetVertexWeights)(THIS_ FLOAT* vertex_weights) PURE;
478};
479#undef INTERFACE
480
481#define INTERFACE ID3DXPatchMesh
482DECLARE_INTERFACE_(ID3DXPatchMesh, IUnknown)
483{
484 /*** IUnknown methods ***/
485 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
486 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
487 STDMETHOD_(ULONG, Release)(THIS) PURE;
488 /*** ID3DXPatchMesh ***/
489 STDMETHOD_(DWORD, GetNumPatches)(THIS) PURE;
490 STDMETHOD_(DWORD, GetNumVertices)(THIS) PURE;
491 STDMETHOD(GetDeclaration)(THIS_ D3DVERTEXELEMENT9 declaration[MAX_FVF_DECL_SIZE]) PURE;
492 STDMETHOD_(DWORD, GetControlVerticesPerPatch)(THIS) PURE;
493 STDMETHOD_(DWORD, GetOptions)(THIS) PURE;
494 STDMETHOD(GetDevice)(THIS_ struct IDirect3DDevice9 **device) PURE;
495 STDMETHOD(GetPatchInfo)(THIS_ LPD3DXPATCHINFO patch_info) PURE;
496 STDMETHOD(GetVertexBuffer)(THIS_ struct IDirect3DVertexBuffer9 **vertex_buffer) PURE;
497 STDMETHOD(GetIndexBuffer)(THIS_ struct IDirect3DIndexBuffer9 **index_buffer) PURE;
498 STDMETHOD(LockVertexBuffer)(THIS_ DWORD flags, void **data) PURE;
499 STDMETHOD(UnlockVertexBuffer)(THIS) PURE;
500 STDMETHOD(LockIndexBuffer)(THIS_ DWORD flags, void **data) PURE;
501 STDMETHOD(UnlockIndexBuffer)(THIS) PURE;
502 STDMETHOD(LockAttributeBuffer)(THIS_ DWORD flags, DWORD** data) PURE;
503 STDMETHOD(UnlockAttributeBuffer)(THIS) PURE;
504 STDMETHOD(GetTessSize)(THIS_ FLOAT tess_level, DWORD adaptive, DWORD* num_triangles, DWORD* num_vertices) PURE;
505 STDMETHOD(GenerateAdjacency)(THIS_ FLOAT tolerance) PURE;
506 STDMETHOD(CloneMesh)(THIS_ DWORD options, const D3DVERTEXELEMENT9 *declaration, ID3DXPatchMesh **clone_mesh) PURE;
507 STDMETHOD(Optimize)(THIS_ DWORD flags) PURE;
508 STDMETHOD(SetDisplaceParam)(THIS_ struct IDirect3DBaseTexture9 *texture, D3DTEXTUREFILTERTYPE min_filter,
509 D3DTEXTUREFILTERTYPE mag_filter, D3DTEXTUREFILTERTYPE mip_filter, D3DTEXTUREADDRESS wrap,
510 DWORD lod_bias) PURE;
511 STDMETHOD(GetDisplaceParam)(THIS_ struct IDirect3DBaseTexture9 **texture, D3DTEXTUREFILTERTYPE *min_filter,
512 D3DTEXTUREFILTERTYPE *mag_filter, D3DTEXTUREFILTERTYPE *mip_filter, D3DTEXTUREADDRESS *wrap,
513 DWORD *lod_bias) PURE;
514 STDMETHOD(Tessellate)(THIS_ float tess_level, ID3DXMesh *mesh) PURE;
515 STDMETHOD(TessellateAdaptive)(THIS_ const D3DXVECTOR4 *trans, DWORD max_tess_level,
516 DWORD min_tess_level, ID3DXMesh *mesh) PURE;
517};
518#undef INTERFACE
519
520#define INTERFACE ID3DXSkinInfo
521DECLARE_INTERFACE_(ID3DXSkinInfo, IUnknown)
522{
523 /*** IUnknown methods ***/
524 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
525 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
526 STDMETHOD_(ULONG, Release)(THIS) PURE;
527 /*** ID3DXSkinInfo ***/
528 STDMETHOD(SetBoneInfluence)(THIS_ DWORD bone, DWORD num_influences, const DWORD *vertices,
529 const FLOAT *weights) PURE;
530 STDMETHOD(SetBoneVertexInfluence)(THIS_ DWORD bone_num, DWORD influence_num, float weight) PURE;
531 STDMETHOD_(DWORD, GetNumBoneInfluences)(THIS_ DWORD bone) PURE;
532 STDMETHOD(GetBoneInfluence)(THIS_ DWORD bone, DWORD* vertices, FLOAT* weights) PURE;
533 STDMETHOD(GetBoneVertexInfluence)(THIS_ DWORD bone_num, DWORD influence_num, float *weight, DWORD* vertex_num) PURE;
534 STDMETHOD(GetMaxVertexInfluences)(THIS_ DWORD* max_vertex_influences) PURE;
535 STDMETHOD_(DWORD, GetNumBones)(THIS) PURE;
536 STDMETHOD(FindBoneVertexInfluenceIndex)(THIS_ DWORD bone_num, DWORD vertex_num, DWORD* influence_index) PURE;
537 STDMETHOD(GetMaxFaceInfluences)(THIS_ struct IDirect3DIndexBuffer9 *index_buffer,
538 DWORD num_faces, DWORD *max_face_influences) PURE;
539 STDMETHOD(SetMinBoneInfluence)(THIS_ FLOAT min_influence) PURE;
540 STDMETHOD_(FLOAT, GetMinBoneInfluence)(THIS) PURE;
541 STDMETHOD(SetBoneName)(THIS_ DWORD bone_idx, const char *name) PURE;
542 STDMETHOD_(const char *, GetBoneName)(THIS_ DWORD bone_idx) PURE;
543 STDMETHOD(SetBoneOffsetMatrix)(THIS_ DWORD bone, const D3DXMATRIX *bone_transform) PURE;
544 STDMETHOD_(D3DXMATRIX *, GetBoneOffsetMatrix)(THIS_ DWORD bone) PURE;
545 STDMETHOD(Clone)(THIS_ ID3DXSkinInfo **skin_info) PURE;
546 STDMETHOD(Remap)(THIS_ DWORD num_vertices, DWORD* vertex_remap) PURE;
547 STDMETHOD(SetFVF)(THIS_ DWORD FVF) PURE;
548 STDMETHOD(SetDeclaration)(THIS_ const D3DVERTEXELEMENT9 *declaration) PURE;
549 STDMETHOD_(DWORD, GetFVF)(THIS) PURE;
550 STDMETHOD(GetDeclaration)(THIS_ D3DVERTEXELEMENT9 declaration[MAX_FVF_DECL_SIZE]) PURE;
551 STDMETHOD(UpdateSkinnedMesh)(THIS_ const D3DXMATRIX *bone_transforms,
552 const D3DXMATRIX *bone_inv_transpose_transforms, const void *src_vertices, void *dst_vertices) PURE;
553 STDMETHOD(ConvertToBlendedMesh)(THIS_ ID3DXMesh *mesh_in, DWORD options, const DWORD *adjacency_in,
554 DWORD *adjacency_out, DWORD *face_remap, ID3DXBuffer **vertex_remap, DWORD *max_face_infl,
555 DWORD *num_bone_combinations, ID3DXBuffer **bone_combination_table, ID3DXMesh **mesh_out) PURE;
556 STDMETHOD(ConvertToIndexedBlendedMesh)(THIS_ ID3DXMesh *mesh_in, DWORD options, const DWORD *adjacency_in,
557 DWORD *adjacency_out, DWORD *face_remap, ID3DXBuffer **vertex_remap, DWORD *max_face_infl,
558 DWORD *num_bone_combinations, ID3DXBuffer **bone_combination_table, ID3DXMesh **mesh_out) PURE;
559};
560#undef INTERFACE
561
562#define INTERFACE ID3DXPRTBuffer
563DECLARE_INTERFACE_(ID3DXPRTBuffer, IUnknown)
564{
565 /*** IUnknown methods ***/
566 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
567 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
568 STDMETHOD_(ULONG, Release)(THIS) PURE;
569 /*** ID3DXPRTBuffer methods ***/
570 STDMETHOD_(UINT, GetNumSamples)(THIS) PURE;
571 STDMETHOD_(UINT, GetNumCoeffs)(THIS) PURE;
572 STDMETHOD_(UINT, GetNumChannels)(THIS) PURE;
573 STDMETHOD_(BOOL, IsTexture)(THIS) PURE;
574 STDMETHOD_(BOOL, GetWidth)(THIS) PURE;
575 STDMETHOD_(BOOL, GetHeight)(THIS) PURE;
576 STDMETHOD(Resize)(THIS_ UINT new_size) PURE;
577 STDMETHOD(LockBuffer)(THIS_ UINT start, UINT num_samples, FLOAT **data) PURE;
578 STDMETHOD(UnlockBuffer)(THIS) PURE;
579 STDMETHOD(ScaleBuffer)(THIS_ FLOAT scale) PURE;
580 STDMETHOD(AddBuffer)(THIS_ ID3DXPRTBuffer *buffer) PURE;
581 STDMETHOD(AttachGH)(THIS_ struct ID3DXTextureGutterHelper *gh) PURE;
582 STDMETHOD(ReleaseGH)(THIS) PURE;
583 STDMETHOD(EvalGH)(THIS) PURE;
584 STDMETHOD(ExtractTexture)(THIS_ UINT channel, UINT start_coefficient,
585 UINT num_coefficients, struct IDirect3DTexture9 *texture) PURE;
586 STDMETHOD(ExtractToMesh)(THIS_ UINT num_coefficients, D3DDECLUSAGE usage,
587 UINT usage_index_start, ID3DXMesh *scene) PURE;
588};
589#undef INTERFACE
590
591#define INTERFACE ID3DXPRTCompBuffer
592DECLARE_INTERFACE_(ID3DXPRTCompBuffer, IUnknown)
593{
594 /*** IUnknown methods ***/
595 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
596 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
597 STDMETHOD_(ULONG, Release)(THIS) PURE;
598 /*** ID3DXPRTCompBuffer methods ***/
599 STDMETHOD_(UINT, GetNumSamples)(THIS) PURE;
600 STDMETHOD_(UINT, GetNumCoeffs)(THIS) PURE;
601 STDMETHOD_(UINT, GetNumChannels)(THIS) PURE;
602 STDMETHOD_(BOOL, IsTexture)(THIS) PURE;
603 STDMETHOD_(UINT, GetWidth)(THIS) PURE;
604 STDMETHOD_(UINT, GetHeight)(THIS) PURE;
605 STDMETHOD_(UINT, GetNumClusters)(THIS) PURE;
606 STDMETHOD_(UINT, GetNumPCA)(THIS) PURE;
607 STDMETHOD(NormalizeData)(THIS) PURE;
608 STDMETHOD(ExtractBasis)(THIS_ UINT cluster, FLOAT *cluster_basis) PURE;
609 STDMETHOD(ExtractClusterIDs)(THIS_ UINT *cluster_ids) PURE;
610 STDMETHOD(ExtractPCA)(THIS_ UINT start_pca, UINT num_extract, FLOAT *pca_coefficients) PURE;
611 STDMETHOD(ExtractTexture)(THIS_ UINT start_pca, UINT num_pca, struct IDirect3DTexture9 *texture) PURE;
612 STDMETHOD(ExtractToMesh)(THIS_ UINT num_pca, D3DDECLUSAGE usage, UINT usage_index_start, ID3DXMesh *scene) PURE;
613};
614#undef INTERFACE
615
616#define INTERFACE ID3DXTextureGutterHelper
617DECLARE_INTERFACE_(ID3DXTextureGutterHelper, IUnknown)
618{
619 /*** IUnknown methods ***/
620 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
621 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
622 STDMETHOD_(ULONG, Release)(THIS) PURE;
623 /*** ID3DXTextureGutterHelper methods ***/
624 STDMETHOD_(UINT, GetWidth)(THIS) PURE;
625 STDMETHOD_(UINT, GetHeight)(THIS) PURE;
626
627 STDMETHOD(ApplyGuttersFloat)(THIS_ FLOAT *data_in, UINT num_coeffs, UINT width, UINT height) PURE;
628 STDMETHOD(ApplyGuttersTex)(THIS_ struct IDirect3DTexture9 *texture) PURE;
629 STDMETHOD(ApplyGuttersPRT)(THIS_ ID3DXPRTBuffer *buffer) PURE;
630 STDMETHOD(ResampleTex)(THIS_ struct IDirect3DTexture9 *texture_in, struct ID3DXMesh *mesh_in,
631 D3DDECLUSAGE usage, UINT usage_index, struct IDirect3DTexture9 *texture_out) PURE;
632 STDMETHOD(GetFaceMap)(THIS_ UINT *face_data) PURE;
633 STDMETHOD(GetBaryMap)(THIS_ D3DXVECTOR2 *bary_data) PURE;
634 STDMETHOD(GetTexelMap)(THIS_ D3DXVECTOR2 *texel_data) PURE;
635 STDMETHOD(GetGutterMap)(THIS_ BYTE *gutter_data) PURE;
636 STDMETHOD(SetFaceMap)(THIS_ UINT *face_data) PURE;
637 STDMETHOD(SetBaryMap)(THIS_ D3DXVECTOR2 *bary_data) PURE;
638 STDMETHOD(SetTexelMap)(THIS_ D3DXVECTOR2 *texel_data) PURE;
639 STDMETHOD(SetGutterMap)(THIS_ BYTE *gutter_data) PURE;
640};
641#undef INTERFACE
642
643#define INTERFACE ID3DXPRTEngine
644DECLARE_INTERFACE_(ID3DXPRTEngine, IUnknown)
645{
646 /*** IUnknown methods ***/
647 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
648 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
649 STDMETHOD_(ULONG, Release)(THIS) PURE;
650 /*** ID3DXPRTEngine methods ***/
651 STDMETHOD(SetMeshMaterials)(THIS_ const D3DXSHMATERIAL **materials, UINT num_meshes,
652 UINT num_channels, BOOL set_albedo, FLOAT length_scale) PURE;
653 STDMETHOD(SetPerVertexAlbedo)(THIS_ const void *data_in, UINT num_channels, UINT stride) PURE;
654 STDMETHOD(SetPerTexelAlbedo)(THIS_ struct IDirect3DTexture9 *albedo_texture,
655 UINT num_channels, struct ID3DXTextureGutterHelper *gh) PURE;
656 STDMETHOD(GetVertexAlbedo)(THIS_ D3DXCOLOR *vert_colors, UINT num_verts) PURE;
657 STDMETHOD(SetPerTexelNormals)(THIS_ struct IDirect3DTexture9 *normal_texture) PURE;
658 STDMETHOD(ExtractPerVertexAlbedo)(THIS_ ID3DXMesh *mesh, D3DDECLUSAGE usage, UINT num_channels) PURE;
659 STDMETHOD(ResampleBuffer)(THIS_ ID3DXPRTBuffer *buffer_in, ID3DXPRTBuffer *buffer_out) PURE;
660 STDMETHOD(GetAdaptedMesh)(THIS_ struct IDirect3DDevice9 *device, UINT *face_remap,
661 UINT *vert_remap, float *vert_weights, struct ID3DXMesh **mesh) PURE;
662 STDMETHOD_(UINT, GetNumVerts)(THIS) PURE;
663 STDMETHOD_(UINT, GetNumFaces)(THIS) PURE;
664 STDMETHOD(SetMinMaxIntersection)(THIS_ FLOAT min, FLOAT max) PURE;
665 STDMETHOD(RobustMeshRefine)(THIS_ FLOAT min_edge_length, UINT max_subdiv) PURE;
666 STDMETHOD(SetSamplingInfo)(THIS_ UINT num_rays, BOOL use_sphere,
667 BOOL use_cosine, BOOL adaptive, FLOAT adpative_thresh) PURE;
668 STDMETHOD(ComputeDirectLightingSH)(THIS_ UINT sh_order, ID3DXPRTBuffer *data_out) PURE;
669 STDMETHOD(ComputeDirectLightingSHAdaptive)(THIS_ UINT sh_order, float adaptive_thresh,
670 float min_edge_length, UINT max_subdiv, ID3DXPRTBuffer *data_out) PURE;
671 STDMETHOD(ComputeDirectLightingSHGPU)(THIS_ struct IDirect3DDevice9 *device, UINT flags,
672 UINT sh_order, float zbias, float zangle_bias, struct ID3DXPRTBuffer *data_out) PURE;
673 STDMETHOD(ComputeSS)(THIS_ ID3DXPRTBuffer *data_in, ID3DXPRTBuffer *data_out,
674 ID3DXPRTBuffer *data_total) PURE;
675 STDMETHOD(ComputeSSAdaptive)(THIS_ ID3DXPRTBuffer *data_in, float adaptive_thres,
676 float min_edge_length, UINT max_subdiv, ID3DXPRTBuffer *data_out, ID3DXPRTBuffer *data_total) PURE;
677 STDMETHOD(ComputeBounce)(THIS_ ID3DXPRTBuffer *data_in, ID3DXPRTBuffer *data_out,
678 ID3DXPRTBuffer *data_total) PURE;
679 STDMETHOD(ComputeBounceAdaptive)(THIS_ ID3DXPRTBuffer *data_in, float adaptive_thres,
680 float min_edge_length, UINT max_subdiv, ID3DXPRTBuffer *data_out, ID3DXPRTBuffer *data_total) PURE;
681 STDMETHOD(ComputeVolumeSamplesDirectSH)(THIS_ UINT sh_order_in, UINT sh_order_out,
682 UINT num_vol_samples, const D3DXVECTOR3 *sample_locs, ID3DXPRTBuffer *data_out) PURE;
683 STDMETHOD(ComputeVolumeSamples)(THIS_ ID3DXPRTBuffer *surf_data_in, UINT sh_order,
684 UINT num_vol_samples, const D3DXVECTOR3 *sample_locs, ID3DXPRTBuffer *data_out) PURE;
685 STDMETHOD(ComputeSurfSamplesDirectSH)(THIS_ UINT sh_order, UINT num_samples,
686 const D3DXVECTOR3 *sample_locs, const D3DXVECTOR3 *sample_norms, ID3DXPRTBuffer *data_out) PURE;
687 STDMETHOD(ComputeSurfSamplesBounce)(THIS_ ID3DXPRTBuffer *surf_data_in, UINT num_samples,
688 const D3DXVECTOR3 *sample_locs, const D3DXVECTOR3 *sample_norms, ID3DXPRTBuffer *data_out,
689 ID3DXPRTBuffer *data_total) PURE;
690 STDMETHOD(FreeSSData)(THIS) PURE;
691 STDMETHOD(FreeBounceData)(THIS) PURE;
692 STDMETHOD(ComputeLDPRTCoeffs)(THIS_ ID3DXPRTBuffer *data_in, UINT sh_order, D3DXVECTOR3 *norm_out,
693 ID3DXPRTBuffer *data_out) PURE;
694 STDMETHOD(ScaleMeshChunk)(THIS_ UINT mesh_chunk, float scale, ID3DXPRTBuffer *data_out) PURE;
695 STDMETHOD(MultiplyAlbedo)(THIS_ ID3DXPRTBuffer *data_out) PURE;
696 STDMETHOD(SetCallback)(THIS_ LPD3DXSHPRTSIMCB cb, float frequency, void *user_context) PURE;
697 STDMETHOD_(BOOL, ShadowRayIntersects)(THIS_ const D3DXVECTOR3 *ray_pos,
698 const D3DXVECTOR3 *ray_dir) PURE;
699 STDMETHOD_(BOOL, ClosestRayIntersects)(THIS_ const D3DXVECTOR3 *ray_pos,
700 const D3DXVECTOR3 *ray_dir, DWORD *face_index, FLOAT *u, FLOAT *v, FLOAT *dist) PURE;
701};
702#undef INTERFACE
703
704#ifdef __cplusplus
705extern "C" {
706#endif
707
708HRESULT WINAPI D3DXCreateMesh(DWORD face_count, DWORD vertex_count, DWORD flags,
709 const D3DVERTEXELEMENT9 *declaration, struct IDirect3DDevice9 *device, struct ID3DXMesh **mesh);
710HRESULT WINAPI D3DXCreateMeshFVF(DWORD face_count, DWORD vertex_count, DWORD flags,
711 DWORD fvf, struct IDirect3DDevice9 *device, struct ID3DXMesh **mesh);
712HRESULT WINAPI D3DXCreateBuffer(DWORD size, ID3DXBuffer **buffer);
713HRESULT WINAPI D3DXCreateSPMesh(ID3DXMesh *mesh, const DWORD *adjacency,
714 const D3DXATTRIBUTEWEIGHTS *attribute_weights, const float *vertex_weights, ID3DXSPMesh **spmesh);
715HRESULT WINAPI D3DXCreatePMeshFromStream(struct IStream *stream, DWORD flags, struct IDirect3DDevice9 *device,
716 struct ID3DXBuffer **materials, struct ID3DXBuffer **effect_instances,
717 DWORD *material_count, struct ID3DXPMesh **mesh);
718HRESULT WINAPI D3DXCreateSkinInfo(DWORD vertex_count, const D3DVERTEXELEMENT9 *declaration,
719 DWORD bone_count, ID3DXSkinInfo **skin_info);
720HRESULT WINAPI D3DXCreateSkinInfoFVF(DWORD vertex_count, DWORD fvf, DWORD bone_count, ID3DXSkinInfo **skin_info);
721HRESULT WINAPI D3DXCreateSkinInfoFromBlendedMesh(ID3DXBaseMesh *mesh, DWORD bone_count,
722 const D3DXBONECOMBINATION *bone_combination_table, ID3DXSkinInfo **skin_info);
723HRESULT WINAPI D3DXCreatePatchMesh(const D3DXPATCHINFO *patch_info, DWORD patch_count,
724 DWORD vertex_count, DWORD flags, const D3DVERTEXELEMENT9 *declaration,
725 struct IDirect3DDevice9 *device, struct ID3DXPatchMesh **mesh);
726HRESULT WINAPI D3DXCreatePRTBuffer(UINT sample_count, UINT coeff_count, UINT channel_count, ID3DXPRTBuffer **buffer);
727HRESULT WINAPI D3DXCreatePRTBufferTex(UINT width, UINT height, UINT coeff_count,
728 UINT channel_count, ID3DXPRTBuffer **buffer);
729HRESULT WINAPI D3DXCreatePRTCompBuffer(D3DXSHCOMPRESSQUALITYTYPE quality, UINT cluster_count, UINT pca_count,
730 LPD3DXSHPRTSIMCB cb, void *ctx, ID3DXPRTBuffer *input, ID3DXPRTCompBuffer **buffer);
731HRESULT WINAPI D3DXCreateTextureGutterHelper(UINT width, UINT height, ID3DXMesh *mesh,
732 float gutter_size, ID3DXTextureGutterHelper **gh);
733HRESULT WINAPI D3DXCreatePRTEngine(ID3DXMesh *mesh, DWORD *adjacency, BOOL extract_uv,
734 ID3DXMesh *blocker_mesh, ID3DXPRTEngine **engine);
735HRESULT WINAPI D3DXLoadMeshFromXA(const char *filename, DWORD flags, struct IDirect3DDevice9 *device,
736 struct ID3DXBuffer **adjacency, struct ID3DXBuffer **materials, struct ID3DXBuffer **effect_instances,
737 DWORD *material_count, struct ID3DXMesh **mesh);
738HRESULT WINAPI D3DXLoadMeshFromXW(const WCHAR *filename, DWORD flags, struct IDirect3DDevice9 *device,
739 struct ID3DXBuffer **adjacency, struct ID3DXBuffer **materials, struct ID3DXBuffer **effect_instances,
740 DWORD *material_count, struct ID3DXMesh **mesh);
741#define D3DXLoadMeshFromX WINELIB_NAME_AW(D3DXLoadMeshFromX)
742HRESULT WINAPI D3DXLoadMeshFromXInMemory(const void *data, DWORD data_size, DWORD flags,
743 struct IDirect3DDevice9 *device, struct ID3DXBuffer **adjacency, struct ID3DXBuffer **materials,
744 struct ID3DXBuffer **effect_instances, DWORD *material_count, struct ID3DXMesh **mesh);
745HRESULT WINAPI D3DXLoadMeshFromXResource(HMODULE module, const char *resource, const char *resource_type,
746 DWORD flags, struct IDirect3DDevice9 *device, struct ID3DXBuffer **adjacency,
747 struct ID3DXBuffer **materials, struct ID3DXBuffer **effect_instances,
748 DWORD *material_count, struct ID3DXMesh **mesh);
749HRESULT WINAPI D3DXLoadMeshFromXof(struct ID3DXFileData *file_data, DWORD flags, struct IDirect3DDevice9 *device,
750 struct ID3DXBuffer **adjacency, struct ID3DXBuffer **materials, struct ID3DXBuffer **effect_instances,
751 DWORD *material_count, struct ID3DXMesh **mesh);
752HRESULT WINAPI D3DXLoadPatchMeshFromXof(struct ID3DXFileData *file_data, DWORD flags, struct IDirect3DDevice9 *device,
753 struct ID3DXBuffer **adjacency, struct ID3DXBuffer **materials, struct ID3DXBuffer **effect_instances,
754 DWORD *material_count, struct ID3DXPatchMesh **mesh);
755HRESULT WINAPI D3DXLoadSkinMeshFromXof(struct ID3DXFileData *file_data, DWORD flags, struct IDirect3DDevice9 *device,
756 struct ID3DXBuffer **adjacency, struct ID3DXBuffer **materials, struct ID3DXBuffer **effect_instances,
757 DWORD *material_count, struct ID3DXSkinInfo **skin_info, struct ID3DXMesh **mesh);
758HRESULT WINAPI D3DXLoadPRTBufferFromFileA(const char *filename, ID3DXPRTBuffer **buffer);
759HRESULT WINAPI D3DXLoadPRTBufferFromFileW(const WCHAR *filename, ID3DXPRTBuffer **buffer);
760#define D3DXLoadPRTBufferFromFile WINELIB_NAME_AW(D3DXLoadPRTBufferFromFile)
761HRESULT WINAPI D3DXLoadPRTCompBufferFromFileA(const char *filename, ID3DXPRTCompBuffer **buffer);
762HRESULT WINAPI D3DXLoadPRTCompBufferFromFileW(const WCHAR *filename, ID3DXPRTCompBuffer **buffer);
763#define D3DXLoadPRTCompBufferFromFile WINELIB_NAME_AW(D3DXLoadPRTCompBufferFromFile)
764HRESULT WINAPI D3DXSaveMeshToXA(const char *filename, ID3DXMesh *mesh, const DWORD *adjacency,
765 const D3DXMATERIAL *materials, const D3DXEFFECTINSTANCE *effect_instances, DWORD material_count, DWORD format);
766HRESULT WINAPI D3DXSaveMeshToXW(const WCHAR *filename, ID3DXMesh *mesh, const DWORD *adjacency,
767 const D3DXMATERIAL *materials, const D3DXEFFECTINSTANCE *effect_instances, DWORD material_count, DWORD format);
768#define D3DXSaveMeshToX WINELIB_NAME_AW(D3DXSaveMeshToX)
769HRESULT WINAPI D3DXSavePRTBufferToFileA(const char *filename, ID3DXPRTBuffer *buffer);
770HRESULT WINAPI D3DXSavePRTBufferToFileW(const WCHAR *filename, ID3DXPRTBuffer *buffer);
771#define D3DXSavePRTBufferToFile WINELIB_NAME_AW(D3DXSavePRTBufferToFile)
772HRESULT WINAPI D3DXSavePRTCompBufferToFileA(const char *filename, ID3DXPRTCompBuffer *buffer);
773HRESULT WINAPI D3DXSavePRTCompBufferToFileW(const WCHAR *filename, ID3DXPRTCompBuffer *buffer);
774#define D3DXSavePRTCompBufferToFile WINELIB_NAME_AW(D3DXSavePRTCompBufferToFile)
775UINT WINAPI D3DXGetDeclLength(const D3DVERTEXELEMENT9 *decl);
776UINT WINAPI D3DXGetDeclVertexSize(const D3DVERTEXELEMENT9 *decl, DWORD stream_idx);
777UINT WINAPI D3DXGetFVFVertexSize(DWORD);
778BOOL WINAPI D3DXBoxBoundProbe(const D3DXVECTOR3 *vmin, const D3DXVECTOR3 *vmax,
779 const D3DXVECTOR3 *ray_pos, const D3DXVECTOR3 *ray_dir);
780BOOL WINAPI D3DXSphereBoundProbe(const D3DXVECTOR3 *center, FLOAT radius,
781 const D3DXVECTOR3 *ray_pos, const D3DXVECTOR3 *ray_dir);
782HRESULT WINAPI D3DXCleanMesh(D3DXCLEANTYPE clean_type, ID3DXMesh *mesh_in, const DWORD *adjacency_in,
783 ID3DXMesh **mesh_out, DWORD *adjacency_out, ID3DXBuffer **errors);
784HRESULT WINAPI D3DXConcatenateMeshes(struct ID3DXMesh **meshes, UINT mesh_count, DWORD flags,
785 const D3DXMATRIX *geometry_matrices, const D3DXMATRIX *texture_matrices,
786 const D3DVERTEXELEMENT9 *declaration, struct IDirect3DDevice9 *device, struct ID3DXMesh **mesh);
787HRESULT WINAPI D3DXComputeBoundingBox(const D3DXVECTOR3 *first_pos, DWORD num_vertices,
788 DWORD stride, D3DXVECTOR3 *vmin, D3DXVECTOR3 *vmax);
789HRESULT WINAPI D3DXComputeBoundingSphere(const D3DXVECTOR3 *first_pos, DWORD num_vertices,
790 DWORD stride, D3DXVECTOR3 *center, FLOAT *radius);
791HRESULT WINAPI D3DXComputeIMTFromPerTexelSignal(ID3DXMesh *mesh, DWORD texture_idx, float *texel_signal,
792 UINT width, UINT height, UINT signal_dimension, UINT component_count, DWORD flags,
793 LPD3DXUVATLASCB cb, void *ctx, ID3DXBuffer **buffer);
794HRESULT WINAPI D3DXComputeIMTFromPerVertexSignal(ID3DXMesh *mesh, const float *vertex_signal,
795 UINT signal_dimension, UINT signal_stride, DWORD flags,
796 LPD3DXUVATLASCB cb, void *ctx, ID3DXBuffer **buffer);
797HRESULT WINAPI D3DXComputeIMTFromSignal(ID3DXMesh *mesh, DWORD texture_idx, UINT signal_dimension,
798 float max_uv_distance, DWORD flags, LPD3DXIMTSIGNALCALLBACK signal_cb, void *signal_ctx,
799 LPD3DXUVATLASCB status_cb, void *status_ctx, ID3DXBuffer **buffer);
800HRESULT WINAPI D3DXComputeIMTFromTexture(struct ID3DXMesh *mesh, struct IDirect3DTexture9 *texture,
801 DWORD texture_idx, DWORD options, LPD3DXUVATLASCB cb, void *ctx, struct ID3DXBuffer **out);
802HRESULT WINAPI D3DXComputeNormals(ID3DXBaseMesh *mesh, const DWORD *adjacency);
803HRESULT WINAPI D3DXComputeTangentFrameEx(ID3DXMesh *mesh_in, DWORD texture_in_semantic, DWORD texture_in_idx,
804 DWORD u_partial_out_semantic, DWORD u_partial_out_idx, DWORD v_partial_out_semantic,
805 DWORD v_partial_out_idx, DWORD normal_out_semantic, DWORD normal_out_idx, DWORD flags,
806 const DWORD *adjacency, float partial_edge_threshold, float singular_point_threshold,
807 float normal_edge_threshold, ID3DXMesh **mesh_out, ID3DXBuffer **buffer);
808HRESULT WINAPI D3DXComputeTangent(ID3DXMesh *mesh, DWORD stage, DWORD tangent_idx,
809 DWORD binorm_idx, DWORD wrap, const DWORD *adjacency);
810HRESULT WINAPI D3DXConvertMeshSubsetToSingleStrip(struct ID3DXBaseMesh *mesh_in, DWORD attribute_id,
811 DWORD ib_flags, struct IDirect3DIndexBuffer9 **index_buffer, DWORD *index_count);
812HRESULT WINAPI D3DXConvertMeshSubsetToStrips(struct ID3DXBaseMesh *mesh_in, DWORD attribute_id,
813 DWORD ib_flags, struct IDirect3DIndexBuffer9 **index_buffer, DWORD *index_count,
814 struct ID3DXBuffer **strip_lengths, DWORD *strip_count);
815HRESULT WINAPI D3DXDeclaratorFromFVF(DWORD, D3DVERTEXELEMENT9[MAX_FVF_DECL_SIZE]);
816HRESULT WINAPI D3DXFVFFromDeclarator(const D3DVERTEXELEMENT9 *decl, DWORD *fvf);
817HRESULT WINAPI D3DXGenerateOutputDecl(D3DVERTEXELEMENT9 *decl_out, const D3DVERTEXELEMENT9 *decl_in);
818HRESULT WINAPI D3DXGeneratePMesh(ID3DXMesh *mesh, const DWORD *adjacency,
819 const D3DXATTRIBUTEWEIGHTS *attribute_weights, const float *vertex_weights,
820 DWORD min_value, DWORD flags, ID3DXPMesh **pmesh);
821HRESULT WINAPI D3DXIntersect(ID3DXBaseMesh *mesh, const D3DXVECTOR3 *ray_position, const D3DXVECTOR3 *ray_direction,
822 BOOL *hit, DWORD *face_idx, float *u, float *v, float *distance, ID3DXBuffer **hits, DWORD *hit_count);
823HRESULT WINAPI D3DXIntersectSubset(ID3DXBaseMesh *mesh, DWORD attribute_id, const D3DXVECTOR3 *ray_position,
824 const D3DXVECTOR3 *ray_direction, BOOL *hit, DWORD *face_idx, float *u, float *v, float *distance,
825 ID3DXBuffer **hits, DWORD *hit_count);
826BOOL WINAPI D3DXIntersectTri(const D3DXVECTOR3 *vtx0, const D3DXVECTOR3 *vtx1,
827 const D3DXVECTOR3 *vtx2, const D3DXVECTOR3 *ray_pos, const D3DXVECTOR3 *ray_dir, FLOAT *u,
828 FLOAT *v, FLOAT *dist);
829HRESULT WINAPI D3DXOptimizeFaces(const void *indices, UINT face_count,
830 UINT vertex_count, BOOL idx_32bit, DWORD *face_remap);
831HRESULT WINAPI D3DXOptimizeVertices(const void *indices, UINT face_count,
832 UINT vertex_count, BOOL idx_32bit, DWORD *vertex_remap);
833HRESULT WINAPI D3DXRectPatchSize(const FLOAT *segment_count, DWORD *num_triangles,
834 DWORD *num_vertices);
835HRESULT WINAPI D3DXSHPRTCompSuperCluster(UINT *cluster_ids, ID3DXMesh *scene, UINT max_cluster_count,
836 UINT cluster_count, UINT *scluster_ids, UINT *scluster_count);
837HRESULT WINAPI D3DXSHPRTCompSplitMeshSC(UINT *cluster_idx, UINT vertex_count, UINT cluster_count, UINT *scluster_ids,
838 UINT scluster_count, void *index_buffer_in, BOOL ib_in_32bit, UINT face_count, ID3DXBuffer **index_buffer_out,
839 UINT *index_buffer_size, BOOL ib_out_32bit, ID3DXBuffer **face_remap, ID3DXBuffer **vertex_data,
840 UINT *vertex_data_length, UINT *sc_cluster_list, D3DXSHPRTSPLITMESHCLUSTERDATA *sc_data);
841HRESULT WINAPI D3DXSimplifyMesh(ID3DXMesh *mesh_in, const DWORD *adjacency,
842 const D3DXATTRIBUTEWEIGHTS *attribute_weights, const float *vertex_weights, DWORD min_value,
843 DWORD flags, ID3DXMesh **mesh_out);
844HRESULT WINAPI D3DXSplitMesh(ID3DXMesh *mesh_in, const DWORD *adjacency_in, const DWORD max_size,
845 const DWORD flags, DWORD *mesh_out_count, ID3DXBuffer **mesh_out, ID3DXBuffer **adjacency_out,
846 ID3DXBuffer **face_remap_out, ID3DXBuffer **vertex_remap_out);
847HRESULT WINAPI D3DXTesselateNPatches(ID3DXMesh *mesh_in, const DWORD *adjacency_in, float segment_count,
848 BOOL quad_interp, ID3DXMesh **mesh_out, ID3DXBuffer **adjacency_out);
849HRESULT WINAPI D3DXTesselateRectPatch(struct IDirect3DVertexBuffer9 *buffer, const float *segment_count,
850 const D3DVERTEXELEMENT9 *declaration, const D3DRECTPATCH_INFO *patch_info, struct ID3DXMesh *mesh);
851HRESULT WINAPI D3DXTesselateTriPatch(struct IDirect3DVertexBuffer9 *buffer, const float *segment_count,
852 const D3DVERTEXELEMENT9 *declaration, const D3DTRIPATCH_INFO *patch_info, struct ID3DXMesh *mesh);
853HRESULT WINAPI D3DXTriPatchSize(const FLOAT *segment_count, DWORD *num_triangles,
854 DWORD *num_vertices);
855HRESULT WINAPI D3DXUVAtlasCreate(ID3DXMesh *mesh_in, UINT max_chart_count, float max_stretch_in,
856 UINT width, UINT height, float gutter, DWORD texture_idx, const DWORD *adjacency, const DWORD *false_edges,
857 const float *imt_array, LPD3DXUVATLASCB cb, float cb_freq, void *ctx, DWORD flags, ID3DXMesh **mesh_out,
858 ID3DXBuffer **face_partitioning_out, ID3DXBuffer **vertex_remap_out, float *max_stretch_out, UINT *chart_count);
859HRESULT WINAPI D3DXUVAtlasPack(ID3DXMesh *mesh, UINT width, UINT height, float gutter, DWORD texture_idx,
860 const DWORD *partition_result_adjacency, LPD3DXUVATLASCB cb, float cb_freq, void *ctx, DWORD flags,
861 ID3DXBuffer *face_partitioning);
862HRESULT WINAPI D3DXUVAtlasPartition(ID3DXMesh *mesh_in, UINT max_chart_count, float max_stretch_in,
863 DWORD texture_idx, const DWORD *adjacency, const DWORD *false_edges, const float *imt_array,
864 LPD3DXUVATLASCB cb, float cb_freq, void *ctx, DWORD flags, ID3DXMesh **mesh_out,
865 ID3DXBuffer **face_partitioning_out, ID3DXBuffer **vertex_remap_out, ID3DXBuffer **adjacency_out,
866 float *max_stretch_out, UINT *chart_count);
867HRESULT WINAPI D3DXValidMesh(ID3DXMesh *mesh, const DWORD *adjacency, ID3DXBuffer **errors);
868HRESULT WINAPI D3DXValidPatchMesh(ID3DXPatchMesh *mesh, DWORD *degenerate_vertex_count,
869 DWORD *degenerate_patch_count, ID3DXBuffer **errors);
870HRESULT WINAPI D3DXWeldVertices(ID3DXMesh *mesh, DWORD flags, const D3DXWELDEPSILONS *epsilons,
871 const DWORD *adjacency_in, DWORD *adjacency_out, DWORD *face_remap_out, ID3DXBuffer **vertex_remap_out);
872
873#ifdef __cplusplus
874}
875#endif
876
877DEFINE_GUID(DXFILEOBJ_XSkinMeshHeader, 0x3cf169ce, 0xff7c, 0x44ab, 0x93, 0xc0, 0xf7, 0x8f, 0x62, 0xd1, 0x72, 0xe2);
878DEFINE_GUID(DXFILEOBJ_VertexDuplicationIndices, 0xb8d65549, 0xd7c9, 0x4995, 0x89, 0xcf, 0x53, 0xa9, 0xa8, 0xb0, 0x31, 0xe3);
879DEFINE_GUID(DXFILEOBJ_FaceAdjacency, 0xa64c844a, 0xe282, 0x4756, 0x8b, 0x80, 0x25, 0x0c, 0xde, 0x04, 0x39, 0x8c);
880DEFINE_GUID(DXFILEOBJ_SkinWeights, 0x6f0d123b, 0xbad2, 0x4167, 0xa0, 0xd0, 0x80, 0x22, 0x4f, 0x25, 0xfa, 0xbb);
881DEFINE_GUID(DXFILEOBJ_Patch, 0xa3eb5d44, 0xfc22, 0x429d, 0x9a, 0xfb, 0x32, 0x21, 0xcb, 0x97, 0x19, 0xa6);
882DEFINE_GUID(DXFILEOBJ_PatchMesh, 0xd02c95cc, 0xedba, 0x4305, 0x9b, 0x5d, 0x18, 0x20, 0xd7, 0x70, 0x4d, 0xbf);
883DEFINE_GUID(DXFILEOBJ_PatchMesh9, 0xb9ec94e1, 0xb9a6, 0x4251, 0xba, 0x18, 0x94, 0x89, 0x3f, 0x02, 0xc0, 0xea);
884DEFINE_GUID(DXFILEOBJ_PMInfo, 0xb6c3e656, 0xec8b, 0x4b92, 0x9b, 0x62, 0x68, 0x16, 0x59, 0x52, 0x29, 0x47);
885DEFINE_GUID(DXFILEOBJ_PMAttributeRange, 0x917e0427, 0xc61e, 0x4a14, 0x9c, 0x64, 0xaf, 0xe6, 0x5f, 0x9e, 0x98, 0x44);
886DEFINE_GUID(DXFILEOBJ_PMVSplitRecord, 0x574ccc14, 0xf0b3, 0x4333, 0x82, 0x2d, 0x93, 0xe8, 0xa8, 0xa0, 0x8e, 0x4c);
887DEFINE_GUID(DXFILEOBJ_FVFData, 0xb6e70a0e, 0x8ef9, 0x4e83, 0x94, 0xad, 0xec, 0xc8, 0xb0, 0xc0, 0x48, 0x97);
888DEFINE_GUID(DXFILEOBJ_VertexElement, 0xf752461c, 0x1e23, 0x48f6, 0xb9, 0xf8, 0x83, 0x50, 0x85, 0x0f, 0x33, 0x6f);
889DEFINE_GUID(DXFILEOBJ_DeclData, 0xbf22e553, 0x292c, 0x4781, 0x9f, 0xea, 0x62, 0xbd, 0x55, 0x4b, 0xdd, 0x93);
890DEFINE_GUID(DXFILEOBJ_EffectFloats, 0xf1cfe2b3, 0x0de3, 0x4e28, 0xaf, 0xa1, 0x15, 0x5a, 0x75, 0x0a, 0x28, 0x2d);
891DEFINE_GUID(DXFILEOBJ_EffectString, 0xd55b097e, 0xbdb6, 0x4c52, 0xb0, 0x3d, 0x60, 0x51, 0xc8, 0x9d, 0x0e, 0x42);
892DEFINE_GUID(DXFILEOBJ_EffectDWord, 0x622c0ed0, 0x956e, 0x4da9, 0x90, 0x8a, 0x2a, 0xf9, 0x4f, 0x3c, 0xe7, 0x16);
893DEFINE_GUID(DXFILEOBJ_EffectParamFloats, 0x3014b9a0, 0x62f5, 0x478c, 0x9b, 0x86, 0xe4, 0xac, 0x9f, 0x4e, 0x41, 0x8b);
894DEFINE_GUID(DXFILEOBJ_EffectParamString, 0x1dbc4c88, 0x94c1, 0x46ee, 0x90, 0x76, 0x2c, 0x28, 0x81, 0x8c, 0x94, 0x81);
895DEFINE_GUID(DXFILEOBJ_EffectParamDWord, 0xe13963bc, 0xae51, 0x4c5d, 0xb0, 0x0f, 0xcf, 0xa3, 0xa9, 0xd9, 0x7c, 0xe5);
896DEFINE_GUID(DXFILEOBJ_EffectInstance, 0xe331f7e4, 0x0559, 0x4cc2, 0x8e, 0x99, 0x1c, 0xec, 0x16, 0x57, 0x92, 0x8f);
897DEFINE_GUID(DXFILEOBJ_AnimTicksPerSecond, 0x9e415a43, 0x7ba6, 0x4a73, 0x87, 0x43, 0xb7, 0x3d, 0x47, 0xe8, 0x84, 0x76);
898DEFINE_GUID(DXFILEOBJ_CompressedAnimationSet, 0x7f9b00b3, 0xf125, 0x4890, 0x87, 0x6e, 0x1c, 0x42, 0xbf, 0x69, 0x7c, 0x4d);
899
900#define XSKINEXP_TEMPLATES \
901 "xof 0303txt 0032\
902 template XSkinMeshHeader \
903 { \
904 <3CF169CE-FF7C-44ab-93C0-F78F62D172E2> \
905 WORD nMaxSkinWeightsPerVertex; \
906 WORD nMaxSkinWeightsPerFace; \
907 WORD nBones; \
908 } \
909 template VertexDuplicationIndices \
910 { \
911 <B8D65549-D7C9-4995-89CF-53A9A8B031E3> \
912 DWORD nIndices; \
913 DWORD nOriginalVertices; \
914 array DWORD indices[nIndices]; \
915 } \
916 template FaceAdjacency \
917 { \
918 <A64C844A-E282-4756-8B80-250CDE04398C> \
919 DWORD nIndices; \
920 array DWORD indices[nIndices]; \
921 } \
922 template SkinWeights \
923 { \
924 <6F0D123B-BAD2-4167-A0D0-80224F25FABB> \
925 STRING transformNodeName; \
926 DWORD nWeights; \
927 array DWORD vertexIndices[nWeights]; \
928 array float weights[nWeights]; \
929 Matrix4x4 matrixOffset; \
930 } \
931 template Patch \
932 { \
933 <A3EB5D44-FC22-429D-9AFB-3221CB9719A6> \
934 DWORD nControlIndices; \
935 array DWORD controlIndices[nControlIndices]; \
936 } \
937 template PatchMesh \
938 { \
939 <D02C95CC-EDBA-4305-9B5D-1820D7704BBF> \
940 DWORD nVertices; \
941 array Vector vertices[nVertices]; \
942 DWORD nPatches; \
943 array Patch patches[nPatches]; \
944 [ ... ] \
945 } \
946 template PatchMesh9 \
947 { \
948 <B9EC94E1-B9A6-4251-BA18-94893F02C0EA> \
949 DWORD Type; \
950 DWORD Degree; \
951 DWORD Basis; \
952 DWORD nVertices; \
953 array Vector vertices[nVertices]; \
954 DWORD nPatches; \
955 array Patch patches[nPatches]; \
956 [ ... ] \
957 } template EffectFloats \
958 { \
959 <F1CFE2B3-0DE3-4e28-AFA1-155A750A282D> \
960 DWORD nFloats; \
961 array float Floats[nFloats]; \
962 } \
963 template EffectString \
964 { \
965 <D55B097E-BDB6-4c52-B03D-6051C89D0E42> \
966 STRING Value; \
967 } \
968 template EffectDWord \
969 { \
970 <622C0ED0-956E-4da9-908A-2AF94F3CE716> \
971 DWORD Value; \
972 } template EffectParamFloats \
973 { \
974 <3014B9A0-62F5-478c-9B86-E4AC9F4E418B> \
975 STRING ParamName; \
976 DWORD nFloats; \
977 array float Floats[nFloats]; \
978 } template EffectParamString \
979 { \
980 <1DBC4C88-94C1-46ee-9076-2C28818C9481> \
981 STRING ParamName; \
982 STRING Value; \
983 } \
984 template EffectParamDWord \
985 { \
986 <E13963BC-AE51-4c5d-B00F-CFA3A9D97CE5> \
987 STRING ParamName; \
988 DWORD Value; \
989 } \
990 template EffectInstance \
991 { \
992 <E331F7E4-0559-4cc2-8E99-1CEC1657928F> \
993 STRING EffectFilename; \
994 [ ... ] \
995 } template AnimTicksPerSecond \
996 { \
997 <9E415A43-7BA6-4a73-8743-B73D47E88476> \
998 DWORD AnimTicksPerSecond; \
999 } \
1000 template CompressedAnimationSet \
1001 { \
1002 <7F9B00B3-F125-4890-876E-1C42BF697C4D> \
1003 DWORD CompressedBlockSize; \
1004 FLOAT TicksPerSec; \
1005 DWORD PlaybackType; \
1006 DWORD BufferLength; \
1007 array DWORD CompressedData[BufferLength]; \
1008 } "
1009
1010#define XEXTENSIONS_TEMPLATES \
1011 "xof 0303txt 0032\
1012 template FVFData \
1013 { \
1014 <B6E70A0E-8EF9-4e83-94AD-ECC8B0C04897> \
1015 DWORD dwFVF; \
1016 DWORD nDWords; \
1017 array DWORD data[nDWords]; \
1018 } \
1019 template VertexElement \
1020 { \
1021 <F752461C-1E23-48f6-B9F8-8350850F336F> \
1022 DWORD Type; \
1023 DWORD Method; \
1024 DWORD Usage; \
1025 DWORD UsageIndex; \
1026 } \
1027 template DeclData \
1028 { \
1029 <BF22E553-292C-4781-9FEA-62BD554BDD93> \
1030 DWORD nElements; \
1031 array VertexElement Elements[nElements]; \
1032 DWORD nDWords; \
1033 array DWORD data[nDWords]; \
1034 } \
1035 template PMAttributeRange \
1036 { \
1037 <917E0427-C61E-4a14-9C64-AFE65F9E9844> \
1038 DWORD iFaceOffset; \
1039 DWORD nFacesMin; \
1040 DWORD nFacesMax; \
1041 DWORD iVertexOffset; \
1042 DWORD nVerticesMin; \
1043 DWORD nVerticesMax; \
1044 } \
1045 template PMVSplitRecord \
1046 { \
1047 <574CCC14-F0B3-4333-822D-93E8A8A08E4C> \
1048 DWORD iFaceCLW; \
1049 DWORD iVlrOffset; \
1050 DWORD iCode; \
1051 } \
1052 template PMInfo \
1053 { \
1054 <B6C3E656-EC8B-4b92-9B62-681659522947> \
1055 DWORD nAttributes; \
1056 array PMAttributeRange attributeRanges[nAttributes]; \
1057 DWORD nMaxValence; \
1058 DWORD nMinLogicalVertices; \
1059 DWORD nMaxLogicalVertices; \
1060 DWORD nVSplits; \
1061 array PMVSplitRecord splitRecords[nVSplits]; \
1062 DWORD nAttributeMispredicts; \
1063 array DWORD attributeMispredicts[nAttributeMispredicts]; \
1064 } "
1065
1066#endif /* __WINE_D3DX9MESH_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette