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