ReactOS 0.4.16-dev-329-g9223134
animation.c File Reference
#include "d3dx9_private.h"
Include dependency graph for animation.c:

Go to the source code of this file.

Classes

struct  d3dx9_animation_controller
 
struct  d3dx9_keyframed_animation_set
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (d3dx)
 
static struct d3dx9_animation_controllerimpl_from_ID3DXAnimationController (ID3DXAnimationController *iface)
 
static HRESULT WINAPI d3dx9_animation_controller_QueryInterface (ID3DXAnimationController *iface, REFIID riid, void **out)
 
static ULONG WINAPI d3dx9_animation_controller_AddRef (ID3DXAnimationController *iface)
 
static ULONG WINAPI d3dx9_animation_controller_Release (ID3DXAnimationController *iface)
 
static UINT WINAPI d3dx9_animation_controller_GetMaxNumAnimationOutputs (ID3DXAnimationController *iface)
 
static UINT WINAPI d3dx9_animation_controller_GetMaxNumAnimationSets (ID3DXAnimationController *iface)
 
static UINT WINAPI d3dx9_animation_controller_GetMaxNumTracks (ID3DXAnimationController *iface)
 
static UINT WINAPI d3dx9_animation_controller_GetMaxNumEvents (ID3DXAnimationController *iface)
 
static HRESULT WINAPI d3dx9_animation_controller_RegisterAnimationOutput (ID3DXAnimationController *iface, const char *name, D3DXMATRIX *matrix, D3DXVECTOR3 *scale, D3DXQUATERNION *rotation, D3DXVECTOR3 *translation)
 
static HRESULT WINAPI d3dx9_animation_controller_RegisterAnimationSet (ID3DXAnimationController *iface, ID3DXAnimationSet *anim_set)
 
static HRESULT WINAPI d3dx9_animation_controller_UnregisterAnimationSet (ID3DXAnimationController *iface, ID3DXAnimationSet *anim_set)
 
static UINT WINAPI d3dx9_animation_controller_GetNumAnimationSets (ID3DXAnimationController *iface)
 
static HRESULT WINAPI d3dx9_animation_controller_GetAnimationSet (ID3DXAnimationController *iface, UINT index, ID3DXAnimationSet **anim_set)
 
static HRESULT WINAPI d3dx9_animation_controller_GetAnimationSetByName (ID3DXAnimationController *iface, const char *name, ID3DXAnimationSet **anim_set)
 
static HRESULT WINAPI d3dx9_animation_controller_AdvanceTime (ID3DXAnimationController *iface, double time_delta, ID3DXAnimationCallbackHandler *callback_handler)
 
static HRESULT WINAPI d3dx9_animation_controller_Reset (ID3DXAnimationController *iface)
 
static double WINAPI d3dx9_animation_controller_GetTime (ID3DXAnimationController *iface)
 
static HRESULT WINAPI d3dx9_animation_controller_SetTrackAnimationSet (ID3DXAnimationController *iface, UINT track, ID3DXAnimationSet *anim_set)
 
static HRESULT WINAPI d3dx9_animation_controller_GetTrackAnimationSet (ID3DXAnimationController *iface, UINT track, ID3DXAnimationSet **anim_set)
 
static HRESULT WINAPI d3dx9_animation_controller_SetTrackPriority (ID3DXAnimationController *iface, UINT track, D3DXPRIORITY_TYPE priority)
 
static HRESULT WINAPI d3dx9_animation_controller_SetTrackSpeed (ID3DXAnimationController *iface, UINT track, float speed)
 
static HRESULT WINAPI d3dx9_animation_controller_SetTrackWeight (ID3DXAnimationController *iface, UINT track, float weight)
 
static HRESULT WINAPI d3dx9_animation_controller_SetTrackPosition (ID3DXAnimationController *iface, UINT track, double position)
 
static HRESULT WINAPI d3dx9_animation_controller_SetTrackEnable (ID3DXAnimationController *iface, UINT track, BOOL enable)
 
static HRESULT WINAPI d3dx9_animation_controller_SetTrackDesc (ID3DXAnimationController *iface, UINT track, D3DXTRACK_DESC *desc)
 
static HRESULT WINAPI d3dx9_animation_controller_GetTrackDesc (ID3DXAnimationController *iface, UINT track, D3DXTRACK_DESC *desc)
 
static HRESULT WINAPI d3dx9_animation_controller_SetPriorityBlend (ID3DXAnimationController *iface, float blend_weight)
 
static float WINAPI d3dx9_animation_controller_GetPriorityBlend (ID3DXAnimationController *iface)
 
static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_KeyTrackSpeed (ID3DXAnimationController *iface, UINT track, float new_speed, double start_time, double duration, D3DXTRANSITION_TYPE transition)
 
static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_KeyTrackWeight (ID3DXAnimationController *iface, UINT track, float new_weight, double start_time, double duration, D3DXTRANSITION_TYPE transition)
 
static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_KeyTrackPosition (ID3DXAnimationController *iface, UINT track, double new_position, double start_time)
 
static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_KeyTrackEnable (ID3DXAnimationController *iface, UINT track, BOOL new_enable, double start_time)
 
static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_KeyTrackBlend (ID3DXAnimationController *iface, float new_blend_weight, double start_time, double duration, D3DXTRANSITION_TYPE transition)
 
static HRESULT WINAPI d3dx9_animation_controller_UnkeyEvent (ID3DXAnimationController *iface, D3DXEVENTHANDLE event)
 
static HRESULT WINAPI d3dx9_animation_controller_UnkeyAllTrackEvents (ID3DXAnimationController *iface, UINT track)
 
static HRESULT WINAPI d3dx9_animation_controller_UnkeyAllPriorityBlends (ID3DXAnimationController *iface)
 
static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_GetCurrentTrackEvent (ID3DXAnimationController *iface, UINT track, D3DXEVENT_TYPE event_type)
 
static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_GetCurrentPriorityBlend (ID3DXAnimationController *iface)
 
static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_GetUpcomingTrackEvent (ID3DXAnimationController *iface, UINT track, D3DXEVENTHANDLE event)
 
static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_GetUpcomingPriorityBlend (ID3DXAnimationController *iface, D3DXEVENTHANDLE event)
 
static HRESULT WINAPI d3dx9_animation_controller_ValidateEvent (ID3DXAnimationController *iface, D3DXEVENTHANDLE event)
 
static HRESULT WINAPI d3dx9_animation_controller_GetEventDesc (ID3DXAnimationController *iface, D3DXEVENTHANDLE event, D3DXEVENT_DESC *desc)
 
static HRESULT WINAPI d3dx9_animation_controller_CloneAnimationController (ID3DXAnimationController *iface, UINT max_outputs, UINT max_sets, UINT max_tracks, UINT max_events, ID3DXAnimationController **anim_controller)
 
HRESULT WINAPI D3DXCreateAnimationController (UINT max_outputs, UINT max_sets, UINT max_tracks, UINT max_events, ID3DXAnimationController **controller)
 
static struct d3dx9_keyframed_animation_setimpl_from_ID3DXKeyframedAnimationSet (ID3DXKeyframedAnimationSet *iface)
 
static HRESULT WINAPI d3dx9_keyframed_animation_QueryInterface (ID3DXKeyframedAnimationSet *iface, REFIID riid, void **obj)
 
static ULONG WINAPI d3dx9_keyframed_animation_AddRef (ID3DXKeyframedAnimationSet *iface)
 
static ULONG WINAPI d3dx9_keyframed_animation_Release (ID3DXKeyframedAnimationSet *iface)
 
static const char *WINAPI d3dx9_keyframed_animation_GetName (ID3DXKeyframedAnimationSet *iface)
 
static double WINAPI d3dx9_keyframed_animation_GetPeriod (ID3DXKeyframedAnimationSet *iface)
 
static double WINAPI d3dx9_keyframed_animation_GetPeriodicPosition (ID3DXKeyframedAnimationSet *iface, double position)
 
static UINT WINAPI d3dx9_keyframed_animation_GetNumAnimations (ID3DXKeyframedAnimationSet *iface)
 
static HRESULT WINAPI d3dx9_keyframed_animation_GetAnimationNameByIndex (ID3DXKeyframedAnimationSet *iface, UINT index, const char **name)
 
static HRESULT WINAPI d3dx9_keyframed_animation_GetAnimationIndexByName (ID3DXKeyframedAnimationSet *iface, const char *name, UINT *index)
 
static HRESULT WINAPI d3dx9_keyframed_animation_GetSRT (ID3DXKeyframedAnimationSet *iface, double periodic_position, UINT animation, D3DXVECTOR3 *scale, D3DXQUATERNION *rotation, D3DXVECTOR3 *translation)
 
static HRESULT WINAPI d3dx9_keyframed_animation_GetCallback (ID3DXKeyframedAnimationSet *iface, double position, DWORD flags, double *callback_position, void **callback_data)
 
static D3DXPLAYBACK_TYPE WINAPI d3dx9_keyframed_animation_GetPlaybackType (ID3DXKeyframedAnimationSet *iface)
 
static double WINAPI d3dx9_keyframed_animation_GetSourceTicksPerSecond (ID3DXKeyframedAnimationSet *iface)
 
static UINT WINAPI d3dx9_keyframed_animation_GetNumScaleKeys (ID3DXKeyframedAnimationSet *iface, UINT keys)
 
static HRESULT WINAPI d3dx9_keyframed_animation_GetScaleKeys (ID3DXKeyframedAnimationSet *iface, UINT animation, D3DXKEY_VECTOR3 *scale_keys)
 
static HRESULT WINAPI d3dx9_keyframed_animation_GetScaleKey (ID3DXKeyframedAnimationSet *iface, UINT animation, UINT key, D3DXKEY_VECTOR3 *scale_key)
 
static HRESULT WINAPI d3dx9_keyframed_animation_SetScaleKey (ID3DXKeyframedAnimationSet *iface, UINT animation, UINT key, D3DXKEY_VECTOR3 *scale_key)
 
static UINT WINAPI d3dx9_keyframed_animation_GetNumRotationKeys (ID3DXKeyframedAnimationSet *iface, UINT animation)
 
static HRESULT WINAPI d3dx9_keyframed_animation_GetRotationKeys (ID3DXKeyframedAnimationSet *iface, UINT animation, D3DXKEY_QUATERNION *rotation_keys)
 
static HRESULT WINAPI d3dx9_keyframed_animation_GetRotationKey (ID3DXKeyframedAnimationSet *iface, UINT animation, UINT key, D3DXKEY_QUATERNION *rotation_key)
 
static HRESULT WINAPI d3dx9_keyframed_animation_SetRotationKey (ID3DXKeyframedAnimationSet *iface, UINT animation, UINT key, D3DXKEY_QUATERNION *rotation_key)
 
static UINT WINAPI d3dx9_keyframed_animation_GetNumTranslationKeys (ID3DXKeyframedAnimationSet *iface, UINT animation)
 
static HRESULT WINAPI d3dx9_keyframed_animation_GetTranslationKeys (ID3DXKeyframedAnimationSet *iface, UINT animation, D3DXKEY_VECTOR3 *translation_keys)
 
static HRESULT WINAPI d3dx9_keyframed_animation_GetTranslationKey (ID3DXKeyframedAnimationSet *iface, UINT animation, UINT key, D3DXKEY_VECTOR3 *translation_key)
 
static HRESULT WINAPI d3dx9_keyframed_animation_SetTranslationKey (ID3DXKeyframedAnimationSet *iface, UINT animation, UINT key, D3DXKEY_VECTOR3 *translation_key)
 
static UINT WINAPI d3dx9_keyframed_animation_GetNumCallbackKeys (ID3DXKeyframedAnimationSet *iface)
 
static HRESULT WINAPI d3dx9_keyframed_animation_GetCallbackKeys (ID3DXKeyframedAnimationSet *iface, D3DXKEY_CALLBACK *callback_keys)
 
static HRESULT WINAPI d3dx9_keyframed_animation_GetCallbackKey (ID3DXKeyframedAnimationSet *iface, UINT key, D3DXKEY_CALLBACK *callback_key)
 
static HRESULT WINAPI d3dx9_keyframed_animation_SetCallbackKey (ID3DXKeyframedAnimationSet *iface, UINT key, D3DXKEY_CALLBACK *callback_key)
 
static HRESULT WINAPI d3dx9_keyframed_animation_UnregisterScaleKey (ID3DXKeyframedAnimationSet *iface, UINT animation, UINT key)
 
static HRESULT WINAPI d3dx9_keyframed_animation_UnregisterRotationKey (ID3DXKeyframedAnimationSet *iface, UINT animation, UINT key)
 
static HRESULT WINAPI d3dx9_keyframed_animation_UnregisterTranslationKey (ID3DXKeyframedAnimationSet *iface, UINT animation, UINT key)
 
static HRESULT WINAPI d3dx9_keyframed_animation_RegisterAnimationSRTKeys (ID3DXKeyframedAnimationSet *iface, const char *name, UINT scale_keys_count, UINT rotation_keys_count, UINT translation_keys_count, const D3DXKEY_VECTOR3 *scale_keys, const D3DXKEY_QUATERNION *rotation_keys, const D3DXKEY_VECTOR3 *translation_keys, DWORD *animation_index)
 
static HRESULT WINAPI d3dx9_keyframed_animation_Compress (ID3DXKeyframedAnimationSet *iface, DWORD flags, float lossiness, D3DXFRAME *hierarchy, ID3DXBuffer **compressed_data)
 
static HRESULT WINAPI d3dx9_keyframed_animation_UnregisterAnimation (ID3DXKeyframedAnimationSet *iface, UINT index)
 
HRESULT WINAPI D3DXCreateKeyframedAnimationSet (const char *name, double ticks_per_second, D3DXPLAYBACK_TYPE playback_type, UINT animation_count, UINT callback_key_count, const D3DXKEY_CALLBACK *callback_keys, ID3DXKeyframedAnimationSet **animation_set)
 

Variables

static const struct ID3DXAnimationControllerVtbl d3dx9_animation_controller_vtbl
 
static const struct ID3DXKeyframedAnimationSetVtbl d3dx9_keyframed_animation_vtbl
 

Function Documentation

◆ d3dx9_animation_controller_AddRef()

static ULONG WINAPI d3dx9_animation_controller_AddRef ( ID3DXAnimationController *  iface)
static

Definition at line 63 of file animation.c.

64{
66 ULONG refcount = InterlockedIncrement(&animation->ref);
67
68 TRACE("%p increasing refcount to %u.\n", animation, refcount);
69
70 return refcount;
71}
static struct d3dx9_animation_controller * impl_from_ID3DXAnimationController(ID3DXAnimationController *iface)
Definition: animation.c:41
#define InterlockedIncrement
Definition: armddk.h:53
#define TRACE(s)
Definition: solgame.cpp:4
uint32_t ULONG
Definition: typedefs.h:59

◆ d3dx9_animation_controller_AdvanceTime()

static HRESULT WINAPI d3dx9_animation_controller_AdvanceTime ( ID3DXAnimationController *  iface,
double  time_delta,
ID3DXAnimationCallbackHandler *  callback_handler 
)
static

Definition at line 172 of file animation.c.

174{
175 FIXME("iface %p, time_delta %.16e, callback_handler %p stub.\n", iface, time_delta, callback_handler);
176
177 return E_NOTIMPL;
178}
#define FIXME(fmt,...)
Definition: precomp.h:53
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_CloneAnimationController()

static HRESULT WINAPI d3dx9_animation_controller_CloneAnimationController ( ID3DXAnimationController *  iface,
UINT  max_outputs,
UINT  max_sets,
UINT  max_tracks,
UINT  max_events,
ID3DXAnimationController **  anim_controller 
)
static

Definition at line 393 of file animation.c.

395{
396 FIXME("iface %p, max_outputs %u, max_sets %u, max_tracks %u, max_events %u, anim_controller %p stub.\n",
397 iface, max_outputs, max_sets, max_tracks, max_events, anim_controller);
398
399 return E_NOTIMPL;
400}

◆ d3dx9_animation_controller_GetAnimationSet()

static HRESULT WINAPI d3dx9_animation_controller_GetAnimationSet ( ID3DXAnimationController *  iface,
UINT  index,
ID3DXAnimationSet **  anim_set 
)
static

Definition at line 156 of file animation.c.

158{
159 FIXME("iface %p, index %u, anim_set %p stub.\n", iface, index, anim_set);
160
161 return E_NOTIMPL;
162}
GLuint index
Definition: glext.h:6031

◆ d3dx9_animation_controller_GetAnimationSetByName()

static HRESULT WINAPI d3dx9_animation_controller_GetAnimationSetByName ( ID3DXAnimationController *  iface,
const char name,
ID3DXAnimationSet **  anim_set 
)
static

Definition at line 164 of file animation.c.

166{
167 FIXME("iface %p, name %s, anim_set %p stub.\n", iface, debugstr_a(name), anim_set);
168
169 return E_NOTIMPL;
170}
#define debugstr_a
Definition: kernel32.h:31
Definition: name.c:39

◆ d3dx9_animation_controller_GetCurrentPriorityBlend()

static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_GetCurrentPriorityBlend ( ID3DXAnimationController *  iface)
static

Definition at line 355 of file animation.c.

356{
357 FIXME("iface %p stub.\n", iface);
358
359 return 0;
360}

◆ d3dx9_animation_controller_GetCurrentTrackEvent()

static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_GetCurrentTrackEvent ( ID3DXAnimationController *  iface,
UINT  track,
D3DXEVENT_TYPE  event_type 
)
static

Definition at line 347 of file animation.c.

349{
350 FIXME("iface %p, track %u, event_type %u stub.\n", iface, track, event_type);
351
352 return 0;
353}

◆ d3dx9_animation_controller_GetEventDesc()

static HRESULT WINAPI d3dx9_animation_controller_GetEventDesc ( ID3DXAnimationController *  iface,
D3DXEVENTHANDLE  event,
D3DXEVENT_DESC desc 
)
static

Definition at line 385 of file animation.c.

387{
388 FIXME("iface %p, event %u, desc %p stub.\n", iface, event, desc);
389
390 return E_NOTIMPL;
391}
struct _cl_event * event
Definition: glext.h:7739
static const WCHAR desc[]
Definition: protectdata.c:36

◆ d3dx9_animation_controller_GetMaxNumAnimationOutputs()

static UINT WINAPI d3dx9_animation_controller_GetMaxNumAnimationOutputs ( ID3DXAnimationController *  iface)
static

Definition at line 88 of file animation.c.

89{
91
92 TRACE("iface %p.\n", iface);
93
94 return animation->max_outputs;
95}

◆ d3dx9_animation_controller_GetMaxNumAnimationSets()

static UINT WINAPI d3dx9_animation_controller_GetMaxNumAnimationSets ( ID3DXAnimationController *  iface)
static

Definition at line 97 of file animation.c.

98{
100
101 TRACE("iface %p.\n", iface);
102
103 return animation->max_sets;
104}

◆ d3dx9_animation_controller_GetMaxNumEvents()

static UINT WINAPI d3dx9_animation_controller_GetMaxNumEvents ( ID3DXAnimationController *  iface)
static

Definition at line 115 of file animation.c.

116{
118
119 TRACE("iface %p.\n", iface);
120
121 return animation->max_events;
122}

◆ d3dx9_animation_controller_GetMaxNumTracks()

static UINT WINAPI d3dx9_animation_controller_GetMaxNumTracks ( ID3DXAnimationController *  iface)
static

Definition at line 106 of file animation.c.

107{
109
110 TRACE("iface %p.\n", iface);
111
112 return animation->max_tracks;
113}

◆ d3dx9_animation_controller_GetNumAnimationSets()

static UINT WINAPI d3dx9_animation_controller_GetNumAnimationSets ( ID3DXAnimationController *  iface)
static

Definition at line 149 of file animation.c.

150{
151 FIXME("iface %p stub.\n", iface);
152
153 return 0;
154}

◆ d3dx9_animation_controller_GetPriorityBlend()

static float WINAPI d3dx9_animation_controller_GetPriorityBlend ( ID3DXAnimationController *  iface)
static

Definition at line 274 of file animation.c.

275{
276 FIXME("iface %p stub.\n", iface);
277
278 return 0.0f;
279}

◆ d3dx9_animation_controller_GetTime()

static double WINAPI d3dx9_animation_controller_GetTime ( ID3DXAnimationController *  iface)
static

Definition at line 187 of file animation.c.

188{
189 FIXME("iface %p stub.\n", iface);
190
191 return 0.0;
192}

◆ d3dx9_animation_controller_GetTrackAnimationSet()

static HRESULT WINAPI d3dx9_animation_controller_GetTrackAnimationSet ( ID3DXAnimationController *  iface,
UINT  track,
ID3DXAnimationSet **  anim_set 
)
static

Definition at line 202 of file animation.c.

204{
205 FIXME("iface %p, track %u, anim_set %p stub.\n", iface, track, anim_set);
206
207 return E_NOTIMPL;
208}

◆ d3dx9_animation_controller_GetTrackDesc()

static HRESULT WINAPI d3dx9_animation_controller_GetTrackDesc ( ID3DXAnimationController *  iface,
UINT  track,
D3DXTRACK_DESC desc 
)
static

Definition at line 258 of file animation.c.

260{
261 FIXME("iface %p, track %u, desc %p stub.\n", iface, track, desc);
262
263 return E_NOTIMPL;
264}

◆ d3dx9_animation_controller_GetUpcomingPriorityBlend()

static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_GetUpcomingPriorityBlend ( ID3DXAnimationController *  iface,
D3DXEVENTHANDLE  event 
)
static

Definition at line 370 of file animation.c.

372{
373 FIXME("iface %p, event %u stub.\n", iface, event);
374
375 return 0;
376}

◆ d3dx9_animation_controller_GetUpcomingTrackEvent()

static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_GetUpcomingTrackEvent ( ID3DXAnimationController *  iface,
UINT  track,
D3DXEVENTHANDLE  event 
)
static

Definition at line 362 of file animation.c.

364{
365 FIXME("iface %p, track %u, event %u stub.\n", iface, track, event);
366
367 return 0;
368}

◆ d3dx9_animation_controller_KeyTrackBlend()

static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_KeyTrackBlend ( ID3DXAnimationController *  iface,
float  new_blend_weight,
double  start_time,
double  duration,
D3DXTRANSITION_TYPE  transition 
)
static

Definition at line 317 of file animation.c.

319{
320 FIXME("iface %p, new_blend_weight %.8e, start_time %.16e, duration %.16e, transition %u stub.\n", iface,
321 new_blend_weight, start_time, duration, transition);
322
323 return 0;
324}

◆ d3dx9_animation_controller_KeyTrackEnable()

static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_KeyTrackEnable ( ID3DXAnimationController *  iface,
UINT  track,
BOOL  new_enable,
double  start_time 
)
static

Definition at line 308 of file animation.c.

310{
311 FIXME("iface %p, track %u, new_enable %#x, start_time %.16e stub.\n", iface,
312 track, new_enable, start_time);
313
314 return 0;
315}

◆ d3dx9_animation_controller_KeyTrackPosition()

static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_KeyTrackPosition ( ID3DXAnimationController *  iface,
UINT  track,
double  new_position,
double  start_time 
)
static

Definition at line 299 of file animation.c.

301{
302 FIXME("iface %p, track %u, new_position %.16e, start_time %.16e stub.\n", iface,
303 track, new_position, start_time);
304
305 return 0;
306}

◆ d3dx9_animation_controller_KeyTrackSpeed()

static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_KeyTrackSpeed ( ID3DXAnimationController *  iface,
UINT  track,
float  new_speed,
double  start_time,
double  duration,
D3DXTRANSITION_TYPE  transition 
)
static

Definition at line 281 of file animation.c.

283{
284 FIXME("iface %p, track %u, new_speed %.8e, start_time %.16e, duration %.16e, transition %u stub.\n", iface,
285 track, new_speed, start_time, duration, transition);
286
287 return 0;
288}

◆ d3dx9_animation_controller_KeyTrackWeight()

static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_KeyTrackWeight ( ID3DXAnimationController *  iface,
UINT  track,
float  new_weight,
double  start_time,
double  duration,
D3DXTRANSITION_TYPE  transition 
)
static

Definition at line 290 of file animation.c.

292{
293 FIXME("iface %p, track %u, new_weight %.8e, start_time %.16e, duration %.16e, transition %u stub.\n", iface,
294 track, new_weight, start_time, duration, transition);
295
296 return 0;
297}

◆ d3dx9_animation_controller_QueryInterface()

static HRESULT WINAPI d3dx9_animation_controller_QueryInterface ( ID3DXAnimationController *  iface,
REFIID  riid,
void **  out 
)
static

Definition at line 46 of file animation.c.

47{
48 TRACE("iface %p, riid %s, out %p.\n", iface, debugstr_guid(riid), out);
49
51 IsEqualGUID(riid, &IID_ID3DXAnimationController))
52 {
53 iface->lpVtbl->AddRef(iface);
54 *out = iface;
55 return D3D_OK;
56 }
57
58 WARN("%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid(riid));
59 *out = NULL;
60 return E_NOINTERFACE;
61}
#define WARN(fmt,...)
Definition: precomp.h:61
const GUID IID_IUnknown
#define D3D_OK
Definition: d3d.h:106
#define NULL
Definition: types.h:112
REFIID riid
Definition: atlbase.h:39
#define debugstr_guid
Definition: kernel32.h:35
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
static FILE * out
Definition: regtests2xml.c:44
#define E_NOINTERFACE
Definition: winerror.h:2364

◆ d3dx9_animation_controller_RegisterAnimationOutput()

static HRESULT WINAPI d3dx9_animation_controller_RegisterAnimationOutput ( ID3DXAnimationController *  iface,
const char name,
D3DXMATRIX matrix,
D3DXVECTOR3 scale,
D3DXQUATERNION rotation,
D3DXVECTOR3 translation 
)
static

Definition at line 124 of file animation.c.

126{
127 FIXME("iface %p, name %s, matrix %p, scale %p, rotation %p, translation %p stub.\n", iface, debugstr_a(name),
128 matrix, scale, rotation, translation);
129
130 return E_NOTIMPL;
131}
GLenum GLenum GLenum GLenum GLenum scale
Definition: glext.h:9032
GLuint GLenum matrix
Definition: glext.h:9407

◆ d3dx9_animation_controller_RegisterAnimationSet()

static HRESULT WINAPI d3dx9_animation_controller_RegisterAnimationSet ( ID3DXAnimationController *  iface,
ID3DXAnimationSet *  anim_set 
)
static

Definition at line 133 of file animation.c.

135{
136 FIXME("iface %p, anim_set %p stub.\n", iface, anim_set);
137
138 return E_NOTIMPL;
139}

◆ d3dx9_animation_controller_Release()

static ULONG WINAPI d3dx9_animation_controller_Release ( ID3DXAnimationController *  iface)
static

Definition at line 73 of file animation.c.

74{
76 ULONG refcount = InterlockedDecrement(&animation->ref);
77
78 TRACE("%p decreasing refcount to %u.\n", animation, refcount);
79
80 if (!refcount)
81 {
82 HeapFree(GetProcessHeap(), 0, animation);
83 }
84
85 return refcount;
86}
#define InterlockedDecrement
Definition: armddk.h:52
#define GetProcessHeap()
Definition: compat.h:736
#define HeapFree(x, y, z)
Definition: compat.h:735

◆ d3dx9_animation_controller_Reset()

static HRESULT WINAPI d3dx9_animation_controller_Reset ( ID3DXAnimationController *  iface)
static

Definition at line 180 of file animation.c.

181{
182 FIXME("iface %p stub.\n", iface);
183
184 return E_NOTIMPL;
185}

◆ d3dx9_animation_controller_SetPriorityBlend()

static HRESULT WINAPI d3dx9_animation_controller_SetPriorityBlend ( ID3DXAnimationController *  iface,
float  blend_weight 
)
static

Definition at line 266 of file animation.c.

268{
269 FIXME("iface %p, blend_weight %.8e stub.\n", iface, blend_weight);
270
271 return E_NOTIMPL;
272}

◆ d3dx9_animation_controller_SetTrackAnimationSet()

static HRESULT WINAPI d3dx9_animation_controller_SetTrackAnimationSet ( ID3DXAnimationController *  iface,
UINT  track,
ID3DXAnimationSet *  anim_set 
)
static

Definition at line 194 of file animation.c.

196{
197 FIXME("iface %p, track %u, anim_set %p stub.\n", iface, track, anim_set);
198
199 return E_NOTIMPL;
200}

◆ d3dx9_animation_controller_SetTrackDesc()

static HRESULT WINAPI d3dx9_animation_controller_SetTrackDesc ( ID3DXAnimationController *  iface,
UINT  track,
D3DXTRACK_DESC desc 
)
static

Definition at line 250 of file animation.c.

252{
253 FIXME("iface %p, track %u, desc %p stub.\n", iface, track, desc);
254
255 return E_NOTIMPL;
256}

◆ d3dx9_animation_controller_SetTrackEnable()

static HRESULT WINAPI d3dx9_animation_controller_SetTrackEnable ( ID3DXAnimationController *  iface,
UINT  track,
BOOL  enable 
)
static

Definition at line 242 of file animation.c.

244{
245 FIXME("iface %p, track %u, enable %#x stub.\n", iface, track, enable);
246
247 return E_NOTIMPL;
248}
GLboolean enable
Definition: glext.h:11120

◆ d3dx9_animation_controller_SetTrackPosition()

static HRESULT WINAPI d3dx9_animation_controller_SetTrackPosition ( ID3DXAnimationController *  iface,
UINT  track,
double  position 
)
static

Definition at line 234 of file animation.c.

236{
237 FIXME("iface %p, track %u, position %.16e stub.\n", iface, track, position);
238
239 return E_NOTIMPL;
240}

◆ d3dx9_animation_controller_SetTrackPriority()

static HRESULT WINAPI d3dx9_animation_controller_SetTrackPriority ( ID3DXAnimationController *  iface,
UINT  track,
D3DXPRIORITY_TYPE  priority 
)
static

Definition at line 210 of file animation.c.

212{
213 FIXME("iface %p, track %u, priority %u stub.\n", iface, track, priority);
214
215 return E_NOTIMPL;
216}
static int priority
Definition: timer.c:163

◆ d3dx9_animation_controller_SetTrackSpeed()

static HRESULT WINAPI d3dx9_animation_controller_SetTrackSpeed ( ID3DXAnimationController *  iface,
UINT  track,
float  speed 
)
static

Definition at line 218 of file animation.c.

220{
221 FIXME("iface %p, track %u, speed %.8e stub.\n", iface, track, speed);
222
223 return E_NOTIMPL;
224}

◆ d3dx9_animation_controller_SetTrackWeight()

static HRESULT WINAPI d3dx9_animation_controller_SetTrackWeight ( ID3DXAnimationController *  iface,
UINT  track,
float  weight 
)
static

Definition at line 226 of file animation.c.

228{
229 FIXME("iface %p, track %u, weight %.8e stub.\n", iface, track, weight);
230
231 return E_NOTIMPL;
232}
weight
Definition: sortkey.c:157

◆ d3dx9_animation_controller_UnkeyAllPriorityBlends()

static HRESULT WINAPI d3dx9_animation_controller_UnkeyAllPriorityBlends ( ID3DXAnimationController *  iface)
static

Definition at line 340 of file animation.c.

341{
342 FIXME("iface %p stub.\n", iface);
343
344 return E_NOTIMPL;
345}

◆ d3dx9_animation_controller_UnkeyAllTrackEvents()

static HRESULT WINAPI d3dx9_animation_controller_UnkeyAllTrackEvents ( ID3DXAnimationController *  iface,
UINT  track 
)
static

Definition at line 333 of file animation.c.

334{
335 FIXME("iface %p, track %u stub.\n", iface, track);
336
337 return E_NOTIMPL;
338}

◆ d3dx9_animation_controller_UnkeyEvent()

static HRESULT WINAPI d3dx9_animation_controller_UnkeyEvent ( ID3DXAnimationController *  iface,
D3DXEVENTHANDLE  event 
)
static

Definition at line 326 of file animation.c.

327{
328 FIXME("iface %p, event %u stub.\n", iface, event);
329
330 return E_NOTIMPL;
331}

◆ d3dx9_animation_controller_UnregisterAnimationSet()

static HRESULT WINAPI d3dx9_animation_controller_UnregisterAnimationSet ( ID3DXAnimationController *  iface,
ID3DXAnimationSet *  anim_set 
)
static

Definition at line 141 of file animation.c.

143{
144 FIXME("iface %p, anim_set %p stub.\n", iface, anim_set);
145
146 return E_NOTIMPL;
147}

◆ d3dx9_animation_controller_ValidateEvent()

static HRESULT WINAPI d3dx9_animation_controller_ValidateEvent ( ID3DXAnimationController *  iface,
D3DXEVENTHANDLE  event 
)
static

Definition at line 378 of file animation.c.

379{
380 FIXME("iface %p, event %u stub.\n", iface, event);
381
382 return E_NOTIMPL;
383}

◆ d3dx9_keyframed_animation_AddRef()

static ULONG WINAPI d3dx9_keyframed_animation_AddRef ( ID3DXKeyframedAnimationSet *  iface)
static

Definition at line 512 of file animation.c.

513{
515 ULONG refcount = InterlockedIncrement(&set->ref);
516
517 TRACE("%p increasing refcount to %u.\n", set, refcount);
518
519 return refcount;
520}
static struct d3dx9_keyframed_animation_set * impl_from_ID3DXKeyframedAnimationSet(ID3DXKeyframedAnimationSet *iface)
Definition: animation.c:488
Definition: _set.h:50

◆ d3dx9_keyframed_animation_Compress()

static HRESULT WINAPI d3dx9_keyframed_animation_Compress ( ID3DXKeyframedAnimationSet *  iface,
DWORD  flags,
float  lossiness,
D3DXFRAME hierarchy,
ID3DXBuffer **  compressed_data 
)
static

Definition at line 805 of file animation.c.

807{
809
810 FIXME("set %p, flags %#x, lossiness %.8e, hierarchy %p, compressed_data %p stub.\n",
811 set, flags, lossiness, hierarchy, compressed_data);
812 return E_NOTIMPL;
813}
GLbitfield flags
Definition: glext.h:7161
static const h_entry hierarchy[]
Definition: dialog.c:66

◆ d3dx9_keyframed_animation_GetAnimationIndexByName()

static HRESULT WINAPI d3dx9_keyframed_animation_GetAnimationIndexByName ( ID3DXKeyframedAnimationSet *  iface,
const char name,
UINT index 
)
static

Definition at line 579 of file animation.c.

581{
583
584 FIXME("set %p, name %s, index %p stub.\n", set, debugstr_a(name), index);
585 return E_NOTIMPL;
586}

◆ d3dx9_keyframed_animation_GetAnimationNameByIndex()

static HRESULT WINAPI d3dx9_keyframed_animation_GetAnimationNameByIndex ( ID3DXKeyframedAnimationSet *  iface,
UINT  index,
const char **  name 
)
static

Definition at line 570 of file animation.c.

572{
574
575 FIXME("set %p, index %u, name %p stub.\n", set, index, name);
576 return E_NOTIMPL;
577}

◆ d3dx9_keyframed_animation_GetCallback()

static HRESULT WINAPI d3dx9_keyframed_animation_GetCallback ( ID3DXKeyframedAnimationSet *  iface,
double  position,
DWORD  flags,
double callback_position,
void **  callback_data 
)
static

Definition at line 598 of file animation.c.

600{
602
603 FIXME("set %p, position %.16e, flags %#x, callback_position %p, callback_data %p stub.\n",
604 set, position, flags, callback_position, callback_data);
605 return E_NOTIMPL;
606}

◆ d3dx9_keyframed_animation_GetCallbackKey()

static HRESULT WINAPI d3dx9_keyframed_animation_GetCallbackKey ( ID3DXKeyframedAnimationSet *  iface,
UINT  key,
D3DXKEY_CALLBACK callback_key 
)
static

Definition at line 746 of file animation.c.

748{
750
751 FIXME("set %p, key %u, callback_key %p stub.\n", set, key, callback_key);
752 return E_NOTIMPL;
753}
Definition: copy.c:22

◆ d3dx9_keyframed_animation_GetCallbackKeys()

static HRESULT WINAPI d3dx9_keyframed_animation_GetCallbackKeys ( ID3DXKeyframedAnimationSet *  iface,
D3DXKEY_CALLBACK callback_keys 
)
static

Definition at line 737 of file animation.c.

739{
741
742 FIXME("set %p, callback_keys %p stub.\n", set, callback_keys);
743 return E_NOTIMPL;
744}
const D3DXKEY_CALLBACK * callback_keys
Definition: animation.c:485

◆ d3dx9_keyframed_animation_GetName()

static const char *WINAPI d3dx9_keyframed_animation_GetName ( ID3DXKeyframedAnimationSet *  iface)
static

Definition at line 538 of file animation.c.

539{
541
542 TRACE("set %p.\n", set);
543 return set->name;
544}

◆ d3dx9_keyframed_animation_GetNumAnimations()

static UINT WINAPI d3dx9_keyframed_animation_GetNumAnimations ( ID3DXKeyframedAnimationSet *  iface)
static

Definition at line 562 of file animation.c.

563{
565
566 FIXME("set %p stub.\n", set);
567 return 0;
568}

◆ d3dx9_keyframed_animation_GetNumCallbackKeys()

static UINT WINAPI d3dx9_keyframed_animation_GetNumCallbackKeys ( ID3DXKeyframedAnimationSet *  iface)
static

Definition at line 729 of file animation.c.

730{
732
733 FIXME("set %p stub.\n", set);
734 return E_NOTIMPL;
735}

◆ d3dx9_keyframed_animation_GetNumRotationKeys()

static UINT WINAPI d3dx9_keyframed_animation_GetNumRotationKeys ( ID3DXKeyframedAnimationSet *  iface,
UINT  animation 
)
static

Definition at line 659 of file animation.c.

660{
662
663 FIXME("set %p, animation %u stub.\n", set, animation);
664 return E_NOTIMPL;
665}

◆ d3dx9_keyframed_animation_GetNumScaleKeys()

static UINT WINAPI d3dx9_keyframed_animation_GetNumScaleKeys ( ID3DXKeyframedAnimationSet *  iface,
UINT  keys 
)
static

Definition at line 624 of file animation.c.

625{
627
628 FIXME("set %p, keys %u stub.\n", set, keys);
629 return 0;
630}

◆ d3dx9_keyframed_animation_GetNumTranslationKeys()

static UINT WINAPI d3dx9_keyframed_animation_GetNumTranslationKeys ( ID3DXKeyframedAnimationSet *  iface,
UINT  animation 
)
static

Definition at line 694 of file animation.c.

695{
697
698 FIXME("set %p, animation %u stub.\n", set, animation);
699 return E_NOTIMPL;
700}

◆ d3dx9_keyframed_animation_GetPeriod()

static double WINAPI d3dx9_keyframed_animation_GetPeriod ( ID3DXKeyframedAnimationSet *  iface)
static

Definition at line 546 of file animation.c.

547{
549
550 FIXME("set %p stub.\n", set);
551 return 0.0;
552}

◆ d3dx9_keyframed_animation_GetPeriodicPosition()

static double WINAPI d3dx9_keyframed_animation_GetPeriodicPosition ( ID3DXKeyframedAnimationSet *  iface,
double  position 
)
static

Definition at line 554 of file animation.c.

555{
557
558 FIXME("set %p, position %.16e stub.\n", set, position);
559 return 0.0;
560}

◆ d3dx9_keyframed_animation_GetPlaybackType()

static D3DXPLAYBACK_TYPE WINAPI d3dx9_keyframed_animation_GetPlaybackType ( ID3DXKeyframedAnimationSet *  iface)
static

Definition at line 608 of file animation.c.

609{
611
612 TRACE("set %p.\n", set);
613 return set->playback_type;
614}

◆ d3dx9_keyframed_animation_GetRotationKey()

static HRESULT WINAPI d3dx9_keyframed_animation_GetRotationKey ( ID3DXKeyframedAnimationSet *  iface,
UINT  animation,
UINT  key,
D3DXKEY_QUATERNION rotation_key 
)
static

Definition at line 676 of file animation.c.

678{
680
681 FIXME("set %p, animation %u, key %u, rotation_key %p stub.\n", set, animation, key, rotation_key);
682 return E_NOTIMPL;
683}

◆ d3dx9_keyframed_animation_GetRotationKeys()

static HRESULT WINAPI d3dx9_keyframed_animation_GetRotationKeys ( ID3DXKeyframedAnimationSet *  iface,
UINT  animation,
D3DXKEY_QUATERNION rotation_keys 
)
static

Definition at line 667 of file animation.c.

669{
671
672 FIXME("set %p, animation %u, rotation_keys %p stub.\n", set, animation, rotation_keys);
673 return E_NOTIMPL;
674}

◆ d3dx9_keyframed_animation_GetScaleKey()

static HRESULT WINAPI d3dx9_keyframed_animation_GetScaleKey ( ID3DXKeyframedAnimationSet *  iface,
UINT  animation,
UINT  key,
D3DXKEY_VECTOR3 scale_key 
)
static

Definition at line 641 of file animation.c.

643{
645
646 FIXME("set %p, animation %u, key %u, scale_key %p stub.\n", set, animation, key, scale_key);
647 return E_NOTIMPL;
648}

◆ d3dx9_keyframed_animation_GetScaleKeys()

static HRESULT WINAPI d3dx9_keyframed_animation_GetScaleKeys ( ID3DXKeyframedAnimationSet *  iface,
UINT  animation,
D3DXKEY_VECTOR3 scale_keys 
)
static

Definition at line 632 of file animation.c.

634{
636
637 FIXME("set %p, animation %u, scale_keys %p stub.\n", set, animation, scale_keys);
638 return E_NOTIMPL;
639}

◆ d3dx9_keyframed_animation_GetSourceTicksPerSecond()

static double WINAPI d3dx9_keyframed_animation_GetSourceTicksPerSecond ( ID3DXKeyframedAnimationSet *  iface)
static

Definition at line 616 of file animation.c.

617{
619
620 TRACE("set %p.\n", set);
621 return set->ticks_per_second;
622}

◆ d3dx9_keyframed_animation_GetSRT()

static HRESULT WINAPI d3dx9_keyframed_animation_GetSRT ( ID3DXKeyframedAnimationSet *  iface,
double  periodic_position,
UINT  animation,
D3DXVECTOR3 scale,
D3DXQUATERNION rotation,
D3DXVECTOR3 translation 
)
static

Definition at line 588 of file animation.c.

590{
592
593 FIXME("set %p, periodic_position %.16e, animation %u, scale %p, rotation %p, translation %p stub.\n",
594 set, periodic_position, animation, scale, rotation, translation);
595 return E_NOTIMPL;
596}

◆ d3dx9_keyframed_animation_GetTranslationKey()

static HRESULT WINAPI d3dx9_keyframed_animation_GetTranslationKey ( ID3DXKeyframedAnimationSet *  iface,
UINT  animation,
UINT  key,
D3DXKEY_VECTOR3 translation_key 
)
static

Definition at line 711 of file animation.c.

713{
715
716 FIXME("set %p, animation %u, key %u, translation_key %p stub.\n", set, animation, key, translation_key);
717 return E_NOTIMPL;
718}

◆ d3dx9_keyframed_animation_GetTranslationKeys()

static HRESULT WINAPI d3dx9_keyframed_animation_GetTranslationKeys ( ID3DXKeyframedAnimationSet *  iface,
UINT  animation,
D3DXKEY_VECTOR3 translation_keys 
)
static

Definition at line 702 of file animation.c.

704{
706
707 FIXME("set %p, animation %u, translation_keys %p stub.\n", set, animation, translation_keys);
708 return E_NOTIMPL;
709}

◆ d3dx9_keyframed_animation_QueryInterface()

static HRESULT WINAPI d3dx9_keyframed_animation_QueryInterface ( ID3DXKeyframedAnimationSet *  iface,
REFIID  riid,
void **  obj 
)
static

Definition at line 493 of file animation.c.

495{
496 TRACE("iface %p, riid %s, out %p.\n", iface, debugstr_guid(riid), obj);
497
499 || IsEqualGUID(riid, &IID_ID3DXAnimationSet)
500 || IsEqualGUID(riid, &IID_ID3DXKeyframedAnimationSet))
501 {
502 iface->lpVtbl->AddRef(iface);
503 *obj = iface;
504 return D3D_OK;
505 }
506
507 WARN("%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid(riid));
508 *obj = NULL;
509 return E_NOINTERFACE;
510}

◆ d3dx9_keyframed_animation_RegisterAnimationSRTKeys()

static HRESULT WINAPI d3dx9_keyframed_animation_RegisterAnimationSRTKeys ( ID3DXKeyframedAnimationSet *  iface,
const char name,
UINT  scale_keys_count,
UINT  rotation_keys_count,
UINT  translation_keys_count,
const D3DXKEY_VECTOR3 scale_keys,
const D3DXKEY_QUATERNION rotation_keys,
const D3DXKEY_VECTOR3 translation_keys,
DWORD animation_index 
)
static

Definition at line 791 of file animation.c.

795{
797
798 FIXME("set %p, name %s, scale_keys_count %u, rotation_keys_count %u, translation_keys_count %u, "
799 "scale_keys %p, rotation_keys %p, translation_keys %p, animation_index %p stub.\n",
800 set, debugstr_a(name), scale_keys_count, rotation_keys_count, translation_keys_count,
801 scale_keys, rotation_keys, translation_keys, animation_index);
802 return E_NOTIMPL;
803}

◆ d3dx9_keyframed_animation_Release()

static ULONG WINAPI d3dx9_keyframed_animation_Release ( ID3DXKeyframedAnimationSet *  iface)
static

Definition at line 522 of file animation.c.

523{
525 ULONG refcount = InterlockedDecrement(&set->ref);
526
527 TRACE("%p decreasing refcount to %u.\n", set, refcount);
528
529 if (!refcount)
530 {
531 heap_free((char *)set->name);
532 heap_free(set);
533 }
534
535 return refcount;
536}
static BOOL heap_free(void *mem)
Definition: appwiz.h:76

◆ d3dx9_keyframed_animation_SetCallbackKey()

static HRESULT WINAPI d3dx9_keyframed_animation_SetCallbackKey ( ID3DXKeyframedAnimationSet *  iface,
UINT  key,
D3DXKEY_CALLBACK callback_key 
)
static

Definition at line 755 of file animation.c.

757{
759
760 FIXME("set %p, key %u, callback_key %p stub.\n", set, key, callback_key);
761 return E_NOTIMPL;
762}

◆ d3dx9_keyframed_animation_SetRotationKey()

static HRESULT WINAPI d3dx9_keyframed_animation_SetRotationKey ( ID3DXKeyframedAnimationSet *  iface,
UINT  animation,
UINT  key,
D3DXKEY_QUATERNION rotation_key 
)
static

Definition at line 685 of file animation.c.

687{
689
690 FIXME("set %p, animation %u, key %u, rotation_key %p stub.\n", set, animation, key, rotation_key);
691 return E_NOTIMPL;
692}

◆ d3dx9_keyframed_animation_SetScaleKey()

static HRESULT WINAPI d3dx9_keyframed_animation_SetScaleKey ( ID3DXKeyframedAnimationSet *  iface,
UINT  animation,
UINT  key,
D3DXKEY_VECTOR3 scale_key 
)
static

Definition at line 650 of file animation.c.

652{
654
655 FIXME("set %p, animation %u, key %u, scale_key %p stub.\n", set, animation, key, scale_key);
656 return E_NOTIMPL;
657}

◆ d3dx9_keyframed_animation_SetTranslationKey()

static HRESULT WINAPI d3dx9_keyframed_animation_SetTranslationKey ( ID3DXKeyframedAnimationSet *  iface,
UINT  animation,
UINT  key,
D3DXKEY_VECTOR3 translation_key 
)
static

Definition at line 720 of file animation.c.

722{
724
725 FIXME("set %p, animation %u, key %u, translation_key %p stub.\n", set, animation, key, translation_key);
726 return E_NOTIMPL;
727}

◆ d3dx9_keyframed_animation_UnregisterAnimation()

static HRESULT WINAPI d3dx9_keyframed_animation_UnregisterAnimation ( ID3DXKeyframedAnimationSet *  iface,
UINT  index 
)
static

Definition at line 815 of file animation.c.

816{
818
819 FIXME("set %p, index %u stub.\n", set, index);
820 return E_NOTIMPL;
821}

◆ d3dx9_keyframed_animation_UnregisterRotationKey()

static HRESULT WINAPI d3dx9_keyframed_animation_UnregisterRotationKey ( ID3DXKeyframedAnimationSet *  iface,
UINT  animation,
UINT  key 
)
static

Definition at line 773 of file animation.c.

775{
777
778 FIXME("set %p, animation %u, key %u stub.\n", set, animation, key);
779 return E_NOTIMPL;
780}

◆ d3dx9_keyframed_animation_UnregisterScaleKey()

static HRESULT WINAPI d3dx9_keyframed_animation_UnregisterScaleKey ( ID3DXKeyframedAnimationSet *  iface,
UINT  animation,
UINT  key 
)
static

Definition at line 764 of file animation.c.

766{
768
769 FIXME("set %p, animation %u, key %u stub.\n", set, animation, key);
770 return E_NOTIMPL;
771}

◆ d3dx9_keyframed_animation_UnregisterTranslationKey()

static HRESULT WINAPI d3dx9_keyframed_animation_UnregisterTranslationKey ( ID3DXKeyframedAnimationSet *  iface,
UINT  animation,
UINT  key 
)
static

Definition at line 782 of file animation.c.

784{
786
787 FIXME("set %p, animation %u, key %u stub.\n", set, animation, key);
788 return E_NOTIMPL;
789}

◆ D3DXCreateAnimationController()

HRESULT WINAPI D3DXCreateAnimationController ( UINT  max_outputs,
UINT  max_sets,
UINT  max_tracks,
UINT  max_events,
ID3DXAnimationController **  controller 
)

Definition at line 448 of file animation.c.

450{
452
453 TRACE("max_outputs %u, max_sets %u, max_tracks %u, max_events %u, controller %p.\n",
455
456 if (!max_outputs || !max_sets || !max_tracks || !max_events || !controller)
457 return D3D_OK;
458
459 object = HeapAlloc(GetProcessHeap(), 0, sizeof(*object));
460 if (!object)
461 return E_OUTOFMEMORY;
462
463 object->ID3DXAnimationController_iface.lpVtbl = &d3dx9_animation_controller_vtbl;
464 object->ref = 1;
465 object->max_outputs = max_outputs;
466 object->max_sets = max_sets;
467 object->max_tracks = max_tracks;
468 object->max_events = max_events;
469
470 *controller = &object->ID3DXAnimationController_iface;
471
472 return D3D_OK;
473}
static const struct ID3DXAnimationControllerVtbl d3dx9_animation_controller_vtbl
Definition: animation.c:402
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define HeapAlloc
Definition: compat.h:733

Referenced by D3DXCreateAnimationControllerTest().

◆ D3DXCreateKeyframedAnimationSet()

HRESULT WINAPI D3DXCreateKeyframedAnimationSet ( const char name,
double  ticks_per_second,
D3DXPLAYBACK_TYPE  playback_type,
UINT  animation_count,
UINT  callback_key_count,
const D3DXKEY_CALLBACK callback_keys,
ID3DXKeyframedAnimationSet **  animation_set 
)

Definition at line 862 of file animation.c.

865{
867 char *string;
868
869 TRACE("name %s, ticks_per_second %.16e, playback_type %u, animation_count %u, "
870 "callback_key_count %u, callback_keys %p, animation_set %p.\n",
872 callback_key_count, callback_keys, animation_set);
873
874 if (!animation_count)
875 return D3DERR_INVALIDCALL;
876
877 if (!(object = heap_alloc(sizeof(*object))))
878 return E_OUTOFMEMORY;
879
880 object->ID3DXKeyframedAnimationSet_iface.lpVtbl = &d3dx9_keyframed_animation_vtbl;
881 object->ref = 1;
882 if (!(string = heap_alloc(strlen(name) + 1)))
883 {
884 heap_free(object);
885 return E_OUTOFMEMORY;
886 }
887 strcpy(string, name);
888 object->name = string;
889 object->ticks_per_second = ticks_per_second;
890 object->playback_type = playback_type;
891 object->animation_count = animation_count;
892 object->callback_key_count = callback_key_count;
893 object->callback_keys = callback_keys;
894
895 *animation_set = &object->ID3DXKeyframedAnimationSet_iface;
896
897 return D3D_OK;
898}
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
char * strcpy(char *DstString, const char *SrcString)
Definition: utclib.c:388
static const struct ID3DXKeyframedAnimationSetVtbl d3dx9_keyframed_animation_vtbl
Definition: animation.c:823
static void * heap_alloc(size_t len)
Definition: appwiz.h:66
#define D3DERR_INVALIDCALL
char string[160]
Definition: util.h:11
D3DXPLAYBACK_TYPE playback_type
Definition: animation.c:482
unsigned int callback_key_count
Definition: animation.c:484

Referenced by D3DXCreateKeyframedAnimationSetTest().

◆ impl_from_ID3DXAnimationController()

static struct d3dx9_animation_controller * impl_from_ID3DXAnimationController ( ID3DXAnimationController *  iface)
inlinestatic

◆ impl_from_ID3DXKeyframedAnimationSet()

static struct d3dx9_keyframed_animation_set * impl_from_ID3DXKeyframedAnimationSet ( ID3DXKeyframedAnimationSet *  iface)
inlinestatic

Definition at line 488 of file animation.c.

489{
490 return CONTAINING_RECORD(iface, struct d3dx9_keyframed_animation_set, ID3DXKeyframedAnimationSet_iface);
491}

Referenced by d3dx9_keyframed_animation_AddRef(), d3dx9_keyframed_animation_Compress(), d3dx9_keyframed_animation_GetAnimationIndexByName(), d3dx9_keyframed_animation_GetAnimationNameByIndex(), d3dx9_keyframed_animation_GetCallback(), d3dx9_keyframed_animation_GetCallbackKey(), d3dx9_keyframed_animation_GetCallbackKeys(), d3dx9_keyframed_animation_GetName(), d3dx9_keyframed_animation_GetNumAnimations(), d3dx9_keyframed_animation_GetNumCallbackKeys(), d3dx9_keyframed_animation_GetNumRotationKeys(), d3dx9_keyframed_animation_GetNumScaleKeys(), d3dx9_keyframed_animation_GetNumTranslationKeys(), d3dx9_keyframed_animation_GetPeriod(), d3dx9_keyframed_animation_GetPeriodicPosition(), d3dx9_keyframed_animation_GetPlaybackType(), d3dx9_keyframed_animation_GetRotationKey(), d3dx9_keyframed_animation_GetRotationKeys(), d3dx9_keyframed_animation_GetScaleKey(), d3dx9_keyframed_animation_GetScaleKeys(), d3dx9_keyframed_animation_GetSourceTicksPerSecond(), d3dx9_keyframed_animation_GetSRT(), d3dx9_keyframed_animation_GetTranslationKey(), d3dx9_keyframed_animation_GetTranslationKeys(), d3dx9_keyframed_animation_RegisterAnimationSRTKeys(), d3dx9_keyframed_animation_Release(), d3dx9_keyframed_animation_SetCallbackKey(), d3dx9_keyframed_animation_SetRotationKey(), d3dx9_keyframed_animation_SetScaleKey(), d3dx9_keyframed_animation_SetTranslationKey(), d3dx9_keyframed_animation_UnregisterAnimation(), d3dx9_keyframed_animation_UnregisterRotationKey(), d3dx9_keyframed_animation_UnregisterScaleKey(), and d3dx9_keyframed_animation_UnregisterTranslationKey().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( d3dx  )

Variable Documentation

◆ d3dx9_animation_controller_vtbl

const struct ID3DXAnimationControllerVtbl d3dx9_animation_controller_vtbl
static

Definition at line 402 of file animation.c.

Referenced by D3DXCreateAnimationController().

◆ d3dx9_keyframed_animation_vtbl

const struct ID3DXKeyframedAnimationSetVtbl d3dx9_keyframed_animation_vtbl
static

Definition at line 823 of file animation.c.

Referenced by D3DXCreateKeyframedAnimationSet().