source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/d3dx9anim.h

Last change on this file was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 18.8 KB
RevLine 
[1166]1#include <_mingw_unicode.h>
2#undef INTERFACE
3/*
4 * Copyright 2011 Dylan Smith
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21#ifndef __WINE_D3DX9ANIM_H
22#define __WINE_D3DX9ANIM_H
23
24DEFINE_GUID(IID_ID3DXAnimationSet, 0x698cfb3f, 0x9289, 0x4d95, 0x9a, 0x57, 0x33, 0xa9, 0x4b, 0x5a, 0x65, 0xf9);
25DEFINE_GUID(IID_ID3DXKeyframedAnimationSet, 0xfa4e8e3a, 0x9786, 0x407d, 0x8b, 0x4c, 0x59, 0x95, 0x89, 0x37, 0x64, 0xaf);
26DEFINE_GUID(IID_ID3DXCompressedAnimationSet, 0x6cc2480d, 0x3808, 0x4739, 0x9f, 0x88, 0xde, 0x49, 0xfa, 0xcd, 0x8d, 0x4c);
27DEFINE_GUID(IID_ID3DXAnimationController, 0xac8948ec, 0xf86d, 0x43e2, 0x96, 0xde, 0x31, 0xfc, 0x35, 0xf9, 0x6d, 0x9e);
28
29typedef enum _D3DXMESHDATATYPE
30{
31 D3DXMESHTYPE_MESH = 1,
32 D3DXMESHTYPE_PMESH = 2,
33 D3DXMESHTYPE_PATCHMESH = 3,
34 D3DXMESHTYPE_FORCE_DWORD = 0x7fffffff,
35} D3DXMESHDATATYPE;
36
37typedef enum _D3DXCALLBACK_SEARCH_FLAGS
38{
39 D3DXCALLBACK_SEARCH_EXCLUDING_INITIAL_POSITION = 0x00000001,
40 D3DXCALLBACK_SEARCH_BEHIND_INITIAL_POSITION = 0x00000002,
41 D3DXCALLBACK_SEARCH_FORCE_DWORD = 0x7fffffff,
42} D3DXCALLBACK_SEARCH_FLAGS;
43
44typedef enum _D3DXPLAYBACK_TYPE
45{
46 D3DXPLAY_LOOP = 0,
47 D3DXPLAY_ONCE = 1,
48 D3DXPLAY_PINGPONG = 2,
49 D3DXPLAY_FORCE_DWORD = 0x7fffffff,
50} D3DXPLAYBACK_TYPE;
51
52typedef enum _D3DXCOMPRESSION_FLAGS
53{
54 D3DXCOMPRESSION_DEFAULT = 0x00000000,
55 D3DXCOMPRESSION_FORCE_DWORD = 0x7fffffff,
56} D3DXCOMPRESSION_FLAGS;
57
58typedef enum _D3DXPRIORITY_TYPE
59{
60 D3DXPRIORITY_LOW = 0,
61 D3DXPRIORITY_HIGH = 1,
62 D3DXPRIORITY_FORCE_DWORD = 0x7fffffff,
63} D3DXPRIORITY_TYPE;
64
65typedef enum _D3DXEVENT_TYPE
66{
67 D3DXEVENT_TRACKSPEED = 0,
68 D3DXEVENT_TRACKWEIGHT = 1,
69 D3DXEVENT_TRACKPOSITION = 2,
70 D3DXEVENT_TRACKENABLE = 3,
71 D3DXEVENT_PRIORITYBLEND = 4,
72 D3DXEVENT_FORCE_DWORD = 0x7fffffff,
73} D3DXEVENT_TYPE;
74
75typedef enum _D3DXTRANSITION_TYPE
76{
77 D3DXTRANSITION_LINEAR = 0,
78 D3DXTRANSITION_EASEINEASEOUT = 1,
79 D3DXTRANSITION_FORCE_DWORD = 0x7fffffff,
80} D3DXTRANSITION_TYPE;
81
82
83typedef struct _D3DXMESHDATA
84{
85 D3DXMESHDATATYPE Type;
86
87 union
88 {
89 ID3DXMesh *pMesh;
90 ID3DXPMesh *pPMesh;
91 ID3DXPatchMesh *pPatchMesh;
92 } DUMMYUNIONNAME;
93} D3DXMESHDATA, *LPD3DXMESHDATA;
94
95typedef struct _D3DXMESHCONTAINER
96{
97 char *Name;
98 D3DXMESHDATA MeshData;
99 LPD3DXMATERIAL pMaterials;
100 LPD3DXEFFECTINSTANCE pEffects;
101 DWORD NumMaterials;
102 DWORD *pAdjacency;
103 ID3DXSkinInfo *pSkinInfo;
104 struct _D3DXMESHCONTAINER *pNextMeshContainer;
105} D3DXMESHCONTAINER, *LPD3DXMESHCONTAINER;
106
107typedef struct _D3DXFRAME
108{
109 char *Name;
110 D3DXMATRIX TransformationMatrix;
111 LPD3DXMESHCONTAINER pMeshContainer;
112 struct _D3DXFRAME *pFrameSibling;
113 struct _D3DXFRAME *pFrameFirstChild;
114} D3DXFRAME, *LPD3DXFRAME;
115
116typedef struct _D3DXKEY_VECTOR3
117{
118 FLOAT Time;
119 D3DXVECTOR3 Value;
120} D3DXKEY_VECTOR3, *LPD3DXKEY_VECTOR3;
121
122typedef struct _D3DXKEY_QUATERNION
123{
124 FLOAT Time;
125 D3DXQUATERNION Value;
126} D3DXKEY_QUATERNION, *LPD3DXKEY_QUATERNION;
127
128typedef struct _D3DXKEY_CALLBACK
129{
130 float Time;
131 void *pCallbackData;
132} D3DXKEY_CALLBACK, *LPD3DXKEY_CALLBACK;
133
134typedef struct _D3DXTRACK_DESC
135{
136 D3DXPRIORITY_TYPE Priority;
137 FLOAT Weight;
138 FLOAT Speed;
139 DOUBLE Position;
140 WINBOOL Enable;
141} D3DXTRACK_DESC, *LPD3DXTRACK_DESC;
142
143typedef struct _D3DXEVENT_DESC
144{
145 D3DXEVENT_TYPE Type;
146 UINT Track;
147 DOUBLE StartTime;
148 DOUBLE Duration;
149 D3DXTRANSITION_TYPE Transition;
150 union
151 {
152 FLOAT Weight;
153 FLOAT Speed;
154 DOUBLE Position;
155 WINBOOL Enable;
156 } DUMMYUNIONNAME;
157} D3DXEVENT_DESC, *LPD3DXEVENT_DESC;
158
159typedef DWORD D3DXEVENTHANDLE, *LPD3DXEVENTHANDLE;
160
161typedef interface ID3DXAllocateHierarchy *LPD3DXALLOCATEHIERARCHY;
162typedef interface ID3DXLoadUserData *LPD3DXLOADUSERDATA;
163typedef interface ID3DXSaveUserData *LPD3DXSAVEUSERDATA;
164typedef interface ID3DXAnimationSet *LPD3DXANIMATIONSET;
165typedef interface ID3DXKeyframedAnimationSet *LPD3DXKEYFRAMEDANIMATIONSET;
166typedef interface ID3DXCompressedAnimationSet *LPD3DXCOMPRESSEDANIMATIONSET;
167typedef interface ID3DXAnimationCallbackHandler *LPD3DXANIMATIONCALLBACKHANDLER;
168typedef interface ID3DXAnimationController *LPD3DXANIMATIONCONTROLLER;
169
170#undef INTERFACE
171
172#define INTERFACE ID3DXAllocateHierarchy
173DECLARE_INTERFACE(ID3DXAllocateHierarchy)
174{
175 STDMETHOD(CreateFrame)(THIS_ const char *name, D3DXFRAME **new_frame) PURE;
176 STDMETHOD(CreateMeshContainer)(THIS_ const char *name, const D3DXMESHDATA *mesh_data,
177 const D3DXMATERIAL *materials, const D3DXEFFECTINSTANCE *effect_instances,
178 DWORD num_materials, const DWORD *adjacency, ID3DXSkinInfo *skin_info,
179 D3DXMESHCONTAINER **new_mesh_container) PURE;
180 STDMETHOD(DestroyFrame)(THIS_ LPD3DXFRAME frame) PURE;
181 STDMETHOD(DestroyMeshContainer)(THIS_ LPD3DXMESHCONTAINER mesh_container) PURE;
182};
183#undef INTERFACE
184
185#define INTERFACE ID3DXLoadUserData
186DECLARE_INTERFACE(ID3DXLoadUserData)
187{
188 STDMETHOD(LoadTopLevelData)(ID3DXFileData *child_data) PURE;
189 STDMETHOD(LoadFrameChildData)(D3DXFRAME *frame, ID3DXFileData *child_data) PURE;
190 STDMETHOD(LoadMeshChildData)(D3DXMESHCONTAINER *mesh_container, ID3DXFileData *child_data) PURE;
191};
192#undef INTERFACE
193
194#define INTERFACE ID3DXSaveUserData
195DECLARE_INTERFACE(ID3DXSaveUserData)
196{
197 STDMETHOD(AddFrameChildData)(const D3DXFRAME *frame,
198 ID3DXFileSaveObject *save_obj, ID3DXFileSaveData *frame_data) PURE;
199 STDMETHOD(AddMeshChildData)(const D3DXMESHCONTAINER *mesh_container,
200 ID3DXFileSaveObject *save_obj, ID3DXFileSaveData *mesh_data) PURE;
201 STDMETHOD(AddTopLevelDataObjectsPre)(ID3DXFileSaveObject *save_obj) PURE;
202 STDMETHOD(AddTopLevelDataObjectsPost)(ID3DXFileSaveObject *save_obj) PURE;
203 STDMETHOD(RegisterTemplates)(ID3DXFile *file) PURE;
204 STDMETHOD(SaveTemplates)(ID3DXFileSaveObject *save_obj) PURE;
205};
206#undef INTERFACE
207
208#define INTERFACE ID3DXAnimationSet
209DECLARE_INTERFACE_(ID3DXAnimationSet, IUnknown)
210{
211 /*** IUnknown methods ***/
212 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
213 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
214 STDMETHOD_(ULONG, Release)(THIS) PURE;
215 /*** ID3DXAnimationSet methods ***/
216 STDMETHOD_(const char *, GetName)(THIS) PURE;
217 STDMETHOD_(DOUBLE, GetPeriod)(THIS) PURE;
218 STDMETHOD_(DOUBLE, GetPeriodicPosition)(THIS_ DOUBLE position) PURE;
219 STDMETHOD_(UINT, GetNumAnimations)(THIS) PURE;
220 STDMETHOD(GetAnimationNameByIndex)(THIS_ UINT index, const char **name) PURE;
221 STDMETHOD(GetAnimationIndexByName)(THIS_ const char *name, UINT *index) PURE;
222 STDMETHOD(GetSRT)(THIS_ DOUBLE periodic_position, UINT animation, D3DXVECTOR3 *scale,
223 D3DXQUATERNION *rotation, D3DXVECTOR3 *translation) PURE;
224 STDMETHOD(GetCallback)(THIS_ double position, DWORD flags, double *callback_position,
225 void **callback_data) PURE;
226};
227#undef INTERFACE
228
229#define INTERFACE ID3DXKeyframedAnimationSet
230DECLARE_INTERFACE_(ID3DXKeyframedAnimationSet, ID3DXAnimationSet)
231{
232 /*** IUnknown methods ***/
233 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
234 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
235 STDMETHOD_(ULONG, Release)(THIS) PURE;
236 /*** ID3DXAnimationSet methods ***/
237 STDMETHOD_(const char *, GetName)(THIS) PURE;
238 STDMETHOD_(DOUBLE, GetPeriod)(THIS) PURE;
239 STDMETHOD_(DOUBLE, GetPeriodicPosition)(THIS_ DOUBLE position) PURE;
240 STDMETHOD_(UINT, GetNumAnimations)(THIS) PURE;
241 STDMETHOD(GetAnimationNameByIndex)(THIS_ UINT index, const char **name) PURE;
242 STDMETHOD(GetAnimationIndexByName)(THIS_ const char *name, UINT *index) PURE;
243 STDMETHOD(GetSRT)(THIS_ DOUBLE periodic_position, UINT animation, D3DXVECTOR3 *scale,
244 D3DXQUATERNION *rotation, D3DXVECTOR3 *translation) PURE;
245 STDMETHOD(GetCallback)(THIS_ double position, DWORD flags, double *callback_position,
246 void **callback_data) PURE;
247 /*** ID3DXKeyframedAnimationSet methods ***/
248 STDMETHOD_(D3DXPLAYBACK_TYPE, GetPlaybackType)(THIS) PURE;
249 STDMETHOD_(DOUBLE, GetSourceTicksPerSecond)(THIS) PURE;
250 STDMETHOD_(UINT, GetNumScaleKeys)(THIS_ UINT animation) PURE;
251 STDMETHOD(GetScaleKeys)(THIS_ UINT animation, LPD3DXKEY_VECTOR3 scale_keys) PURE;
252 STDMETHOD(GetScaleKey)(THIS_ UINT animation, UINT key, LPD3DXKEY_VECTOR3 scale_key) PURE;
253 STDMETHOD(SetScaleKey)(THIS_ UINT animation, UINT key, LPD3DXKEY_VECTOR3 scale_key) PURE;
254 STDMETHOD_(UINT, GetNumRotationKeys)(THIS_ UINT animation) PURE;
255 STDMETHOD(GetRotationKeys)(THIS_ UINT animation, LPD3DXKEY_QUATERNION rotation_keys) PURE;
256 STDMETHOD(GetRotationKey)(THIS_ UINT animation, UINT key, LPD3DXKEY_QUATERNION rotation_key) PURE;
257 STDMETHOD(SetRotationKey)(THIS_ UINT animation, UINT key, LPD3DXKEY_QUATERNION rotation_key) PURE;
258 STDMETHOD_(UINT, GetNumTranslationKeys)(THIS_ UINT animation) PURE;
259 STDMETHOD(GetTranslationKeys)(THIS_ UINT animation, LPD3DXKEY_VECTOR3 translation_keys) PURE;
260 STDMETHOD(GetTranslationKey)(THIS_ UINT animation, UINT key, LPD3DXKEY_VECTOR3 translation_key) PURE;
261 STDMETHOD(SetTranslationKey)(THIS_ UINT animation, UINT key, LPD3DXKEY_VECTOR3 translation_key) PURE;
262 STDMETHOD_(UINT, GetNumCallbackKeys)(THIS) PURE;
263 STDMETHOD(GetCallbackKeys)(THIS_ LPD3DXKEY_CALLBACK callback_keys) PURE;
264 STDMETHOD(GetCallbackKey)(THIS_ UINT key, LPD3DXKEY_CALLBACK callback_key) PURE;
265 STDMETHOD(SetCallbackKey)(THIS_ UINT key, LPD3DXKEY_CALLBACK callback_key) PURE;
266 STDMETHOD(UnregisterScaleKey)(THIS_ UINT animation, UINT key) PURE;
267 STDMETHOD(UnregisterRotationKey)(THIS_ UINT animation, UINT key) PURE;
268 STDMETHOD(UnregisterTranslationKey)(THIS_ UINT animation, UINT key) PURE;
269 STDMETHOD(RegisterAnimationSRTKeys)(THIS_ const char *name, UINT num_scale_keys,
270 UINT num_rotation_keys, UINT num_translation_keys, const D3DXKEY_VECTOR3 *scale_keys,
271 const D3DXKEY_QUATERNION *rotation_keys, const D3DXKEY_VECTOR3 *translation_keys,
272 DWORD *animation_index) PURE;
273 STDMETHOD(Compress)(THIS_ DWORD flags, float lossiness, D3DXFRAME *hierarchy,
274 ID3DXBuffer **compressed_data) PURE;
275 STDMETHOD(UnregisterAnimation)(THIS_ UINT index) PURE;
276};
277#undef INTERFACE
278
279#define INTERFACE ID3DXCompressedAnimationSet
280DECLARE_INTERFACE_(ID3DXCompressedAnimationSet, ID3DXAnimationSet)
281{
282 /*** IUnknown methods ***/
283 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
284 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
285 STDMETHOD_(ULONG, Release)(THIS) PURE;
286 /*** ID3DXAnimationSet methods ***/
287 STDMETHOD_(const char *, GetName)(THIS) PURE;
288 STDMETHOD_(DOUBLE, GetPeriod)(THIS) PURE;
289 STDMETHOD_(DOUBLE, GetPeriodicPosition)(THIS_ DOUBLE position) PURE;
290 STDMETHOD_(UINT, GetNumAnimations)(THIS) PURE;
291 STDMETHOD(GetAnimationNameByIndex)(THIS_ UINT index, const char **name) PURE;
292 STDMETHOD(GetAnimationIndexByName)(THIS_ const char *name, UINT *index) PURE;
293 STDMETHOD(GetSRT)(THIS_ DOUBLE periodic_position, UINT animation, D3DXVECTOR3 *scale,
294 D3DXQUATERNION *rotation, D3DXVECTOR3 *translation) PURE;
295 STDMETHOD(GetCallback)(THIS_ double position, DWORD flags, double *callback_position,
296 void **callback_data) PURE;
297 /*** ID3DXCompressedAnimationSet methods ***/
298 STDMETHOD_(D3DXPLAYBACK_TYPE, GetPlaybackType)(THIS) PURE;
299 STDMETHOD_(DOUBLE, GetSourceTicksPerSecond)(THIS) PURE;
300 STDMETHOD(GetCompressedData)(THIS_ ID3DXBuffer **compressed_data) PURE;
301 STDMETHOD_(UINT, GetNumCallbackKeys)(THIS) PURE;
302 STDMETHOD(GetCallbackKeys)(THIS_ LPD3DXKEY_CALLBACK callback_keys) PURE;
303};
304#undef INTERFACE
305
306#define INTERFACE ID3DXAnimationCallbackHandler
307DECLARE_INTERFACE(ID3DXAnimationCallbackHandler)
308{
309 STDMETHOD(HandleCallback)(THIS_ UINT track, void *callback_data) PURE;
310};
311#undef INTERFACE
312
313#define INTERFACE ID3DXAnimationController
314DECLARE_INTERFACE_(ID3DXAnimationController, IUnknown)
315{
316 /*** IUnknown methods ***/
317 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
318 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
319 STDMETHOD_(ULONG, Release)(THIS) PURE;
320 /*** ID3DXAnimationController methods ***/
321 STDMETHOD_(UINT, GetMaxNumAnimationOutputs)(THIS) PURE;
322 STDMETHOD_(UINT, GetMaxNumAnimationSets)(THIS) PURE;
323 STDMETHOD_(UINT, GetMaxNumTracks)(THIS) PURE;
324 STDMETHOD_(UINT, GetMaxNumEvents)(THIS) PURE;
325 STDMETHOD(RegisterAnimationOutput)(THIS_ const char *name, D3DXMATRIX *matrix,
326 D3DXVECTOR3 *scale, D3DXQUATERNION *rotation, D3DXVECTOR3 *translation) PURE;
327 STDMETHOD(RegisterAnimationSet)(THIS_ ID3DXAnimationSet *anim_set) PURE;
328 STDMETHOD(UnregisterAnimationSet)(THIS_ ID3DXAnimationSet *anim_set) PURE;
329 STDMETHOD_(UINT, GetNumAnimationSets)(THIS) PURE;
330 STDMETHOD(GetAnimationSet)(THIS_ UINT index, ID3DXAnimationSet **anim_set) PURE;
331 STDMETHOD(GetAnimationSetByName)(THIS_ const char *name, ID3DXAnimationSet **anim_set) PURE;
332 STDMETHOD(AdvanceTime)(THIS_ double time_delta, ID3DXAnimationCallbackHandler *callback_handler) PURE;
333 STDMETHOD(ResetTime)(THIS) PURE;
334 STDMETHOD_(double, GetTime)(THIS) PURE;
335 STDMETHOD(SetTrackAnimationSet)(THIS_ UINT track, ID3DXAnimationSet *anim_set) PURE;
336 STDMETHOD(GetTrackAnimationSet)(THIS_ UINT track, ID3DXAnimationSet **anim_set) PURE;
337 STDMETHOD(SetTrackPriority)(THIS_ UINT track, D3DXPRIORITY_TYPE priority) PURE;
338 STDMETHOD(SetTrackSpeed)(THIS_ UINT track, float speed) PURE;
339 STDMETHOD(SetTrackWeight)(THIS_ UINT track, float weight) PURE;
340 STDMETHOD(SetTrackPosition)(THIS_ UINT track, double position) PURE;
341 STDMETHOD(SetTrackEnable)(THIS_ UINT track, WINBOOL enable) PURE;
342 STDMETHOD(SetTrackDesc)(THIS_ UINT track, D3DXTRACK_DESC *desc) PURE;
343 STDMETHOD(GetTrackDesc)(THIS_ UINT track, D3DXTRACK_DESC *desc) PURE;
344 STDMETHOD(SetPriorityBlend)(THIS_ float blend_weight) PURE;
345 STDMETHOD_(float, GetPriorityBlend)(THIS) PURE;
346 STDMETHOD_(D3DXEVENTHANDLE, KeyTrackSpeed)(THIS_ UINT track, float new_speed,
347 double start_time, double duration, D3DXTRANSITION_TYPE transition) PURE;
348 STDMETHOD_(D3DXEVENTHANDLE, KeyTrackWeight)(THIS_ UINT track, float new_weight,
349 double start_time, double duration, D3DXTRANSITION_TYPE transition) PURE;
350 STDMETHOD_(D3DXEVENTHANDLE, KeyTrackPosition)(THIS_ UINT track, double new_position, double start_time) PURE;
351 STDMETHOD_(D3DXEVENTHANDLE, KeyTrackEnable)(THIS_ UINT track, WINBOOL new_enable, double start_time) PURE;
352 STDMETHOD_(D3DXEVENTHANDLE, KeyPriorityBlend)(THIS_ float new_blend_weight,
353 double start_time, double duration, D3DXTRANSITION_TYPE transition) PURE;
354 STDMETHOD(UnkeyEvent)(THIS_ D3DXEVENTHANDLE event) PURE;
355 STDMETHOD(UnkeyAllTrackEvents)(THIS_ UINT track) PURE;
356 STDMETHOD(UnkeyAllPriorityBlends)(THIS) PURE;
357 STDMETHOD_(D3DXEVENTHANDLE, GetCurrentTrackEvent)(THIS_ UINT track, D3DXEVENT_TYPE event_type) PURE;
358 STDMETHOD_(D3DXEVENTHANDLE, GetCurrentPriorityBlend)(THIS) PURE;
359 STDMETHOD_(D3DXEVENTHANDLE, GetUpcomingTrackEvent)(THIS_ UINT track, D3DXEVENTHANDLE event) PURE;
360 STDMETHOD_(D3DXEVENTHANDLE, GetUpcomingPriorityBlend)(THIS_ D3DXEVENTHANDLE event) PURE;
361 STDMETHOD(ValidateEvent)(THIS_ D3DXEVENTHANDLE event) PURE;
362 STDMETHOD(GetEventDesc)(THIS_ D3DXEVENTHANDLE event, D3DXEVENT_DESC *desc) PURE;
363 STDMETHOD(CloneAnimationController)(THIS_ UINT max_num_anim_outputs, UINT max_num_anim_sets,
364 UINT max_num_tracks, UINT max_num_events, ID3DXAnimationController **anim_controller) PURE;
365};
366#undef INTERFACE
367
368#ifdef __cplusplus
369extern "C" {
370#endif
371
372HRESULT WINAPI D3DXLoadMeshHierarchyFromXA(const char *filename, DWORD flags, struct IDirect3DDevice9 *device,
373 struct ID3DXAllocateHierarchy *alloc, struct ID3DXLoadUserData *user_data_loader,
374 D3DXFRAME **frame_hierarchy, struct ID3DXAnimationController **animation_controller);
375HRESULT WINAPI D3DXLoadMeshHierarchyFromXW(const WCHAR *filename, DWORD flags, struct IDirect3DDevice9 *device,
376 struct ID3DXAllocateHierarchy *alloc, struct ID3DXLoadUserData *user_data_loader,
377 D3DXFRAME **frame_hierarchy, struct ID3DXAnimationController **animation_controller);
378#define D3DXLoadMeshHierarchyFromX __MINGW_NAME_AW(D3DXLoadMeshHierarchyFromX)
379HRESULT WINAPI D3DXLoadMeshHierarchyFromXInMemory(const void *data, DWORD data_size, DWORD flags,
380 struct IDirect3DDevice9 *device, struct ID3DXAllocateHierarchy *alloc,
381 struct ID3DXLoadUserData *user_data_loader, D3DXFRAME **frame_hierarchy,
382 struct ID3DXAnimationController **animation_controller);
383HRESULT WINAPI D3DXSaveMeshHierarchyToFileA(const char *filename, DWORD format,
384 const D3DXFRAME *frame_root, ID3DXAnimationController *animation_controller,
385 ID3DXSaveUserData *user_data_saver);
386HRESULT WINAPI D3DXSaveMeshHierarchyToFileW(const WCHAR *filename, DWORD format,
387 const D3DXFRAME *frame_root, ID3DXAnimationController *animation_controller,
388 ID3DXSaveUserData *user_data_saver);
389#define D3DXSaveMeshHierarchyToFile __MINGW_NAME_AW(D3DXSaveMeshHierarchyToFile)
390HRESULT WINAPI D3DXFrameDestroy(D3DXFRAME *frame_root, ID3DXAllocateHierarchy *alloc);
391HRESULT WINAPI D3DXFrameAppendChild(D3DXFRAME *parent, const D3DXFRAME *child);
392D3DXFRAME * WINAPI D3DXFrameFind(const D3DXFRAME *root, const char *name);
393HRESULT WINAPI D3DXFrameRegisterNamedMatrices(D3DXFRAME *frame_root, ID3DXAnimationController *animation_controller);
394UINT WINAPI D3DXFrameNumNamedMatrices(const D3DXFRAME *frame_root);
395HRESULT WINAPI D3DXFrameCalculateBoundingSphere(const D3DXFRAME *frame_root, D3DXVECTOR3 *center,
396 FLOAT *radius);
397HRESULT WINAPI D3DXCreateKeyframedAnimationSet(const char *name, double ticks_per_second,
398 D3DXPLAYBACK_TYPE playback_type, UINT animation_count, UINT callback_key_count,
399 const D3DXKEY_CALLBACK *callback_keys, ID3DXKeyframedAnimationSet **animation_set);
400HRESULT WINAPI D3DXCreateCompressedAnimationSet(const char *name, double ticks_per_second,
401 D3DXPLAYBACK_TYPE playback_type, ID3DXBuffer *compressed_data, UINT callback_key_count,
402 const D3DXKEY_CALLBACK *callback_keys, ID3DXCompressedAnimationSet **animation_set);
403HRESULT WINAPI D3DXCreateAnimationController(UINT max_animation_output_count, UINT max_animation_set_count,
404 UINT max_track_count, UINT max_event_count, ID3DXAnimationController **animation_controller);
405
406#ifdef __cplusplus
407}
408#endif
409
410#endif /* __WINE_D3DX9ANIM_H */
Note: See TracBrowser for help on using the repository browser.