ReactOS  0.4.14-dev-854-gb9426a3
animation.c File Reference
#include "config.h"
#include "wine/port.h"
#include "d3dx9_private.h"
Include dependency graph for animation.c:

Go to the source code of this file.

Classes

struct  d3dx9_animation_controller
 

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)
 
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
 

Function Documentation

◆ d3dx9_animation_controller_AddRef()

static ULONG WINAPI d3dx9_animation_controller_AddRef ( ID3DXAnimationController *  iface)
static

Definition at line 61 of file animation.c.

62 {
64  ULONG refcount = InterlockedIncrement(&animation->ref);
65 
66  TRACE("%p increasing refcount to %u.\n", animation, refcount);
67 
68  return refcount;
69 }
static struct d3dx9_animation_controller * impl_from_ID3DXAnimationController(ID3DXAnimationController *iface)
Definition: animation.c:39
#define TRACE(s)
Definition: solgame.cpp:4
#define InterlockedIncrement
Definition: armddk.h:53
unsigned int ULONG
Definition: retypes.h:1

◆ d3dx9_animation_controller_AdvanceTime()

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

Definition at line 170 of file animation.c.

172 {
173  FIXME("iface %p, time_delta %.16e, callback_handler %p stub.\n", iface, time_delta, callback_handler);
174 
175  return E_NOTIMPL;
176 }
#define FIXME(fmt,...)
Definition: debug.h:110
#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 391 of file animation.c.

393 {
394  FIXME("iface %p, max_outputs %u, max_sets %u, max_tracks %u, max_events %u, anim_controller %p stub.\n",
395  iface, max_outputs, max_sets, max_tracks, max_events, anim_controller);
396 
397  return E_NOTIMPL;
398 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_GetAnimationSet()

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

Definition at line 154 of file animation.c.

156 {
157  FIXME("iface %p, index %u, anim_set %p stub.\n", iface, index, anim_set);
158 
159  return E_NOTIMPL;
160 }
#define FIXME(fmt,...)
Definition: debug.h:110
GLuint index
Definition: glext.h:6031
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_GetAnimationSetByName()

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

Definition at line 162 of file animation.c.

164 {
165  FIXME("iface %p, name %s, anim_set %p stub.\n", iface, debugstr_a(name), anim_set);
166 
167  return E_NOTIMPL;
168 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define debugstr_a
Definition: kernel32.h:31
#define E_NOTIMPL
Definition: ddrawi.h:99
Definition: name.c:38

◆ d3dx9_animation_controller_GetCurrentPriorityBlend()

static D3DXEVENTHANDLE WINAPI d3dx9_animation_controller_GetCurrentPriorityBlend ( ID3DXAnimationController *  iface)
static

Definition at line 353 of file animation.c.

354 {
355  FIXME("iface %p stub.\n", iface);
356 
357  return 0;
358 }
#define FIXME(fmt,...)
Definition: debug.h:110

◆ d3dx9_animation_controller_GetCurrentTrackEvent()

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

Definition at line 345 of file animation.c.

347 {
348  FIXME("iface %p, track %u, event_type %u stub.\n", iface, track, event_type);
349 
350  return 0;
351 }
#define FIXME(fmt,...)
Definition: debug.h:110

◆ d3dx9_animation_controller_GetEventDesc()

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

Definition at line 383 of file animation.c.

385 {
386  FIXME("iface %p, event %u, desc %p stub.\n", iface, event, desc);
387 
388  return E_NOTIMPL;
389 }
static const WCHAR desc[]
Definition: protectdata.c:36
#define FIXME(fmt,...)
Definition: debug.h:110
struct _cl_event * event
Definition: glext.h:7739
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_GetMaxNumAnimationOutputs()

static UINT WINAPI d3dx9_animation_controller_GetMaxNumAnimationOutputs ( ID3DXAnimationController *  iface)
static

Definition at line 86 of file animation.c.

87 {
89 
90  TRACE("iface %p.\n", iface);
91 
92  return animation->max_outputs;
93 }
static struct d3dx9_animation_controller * impl_from_ID3DXAnimationController(ID3DXAnimationController *iface)
Definition: animation.c:39
#define TRACE(s)
Definition: solgame.cpp:4

◆ d3dx9_animation_controller_GetMaxNumAnimationSets()

static UINT WINAPI d3dx9_animation_controller_GetMaxNumAnimationSets ( ID3DXAnimationController *  iface)
static

Definition at line 95 of file animation.c.

96 {
98 
99  TRACE("iface %p.\n", iface);
100 
101  return animation->max_sets;
102 }
static struct d3dx9_animation_controller * impl_from_ID3DXAnimationController(ID3DXAnimationController *iface)
Definition: animation.c:39
#define TRACE(s)
Definition: solgame.cpp:4

◆ d3dx9_animation_controller_GetMaxNumEvents()

static UINT WINAPI d3dx9_animation_controller_GetMaxNumEvents ( ID3DXAnimationController *  iface)
static

Definition at line 113 of file animation.c.

114 {
116 
117  TRACE("iface %p.\n", iface);
118 
119  return animation->max_events;
120 }
static struct d3dx9_animation_controller * impl_from_ID3DXAnimationController(ID3DXAnimationController *iface)
Definition: animation.c:39
#define TRACE(s)
Definition: solgame.cpp:4

◆ d3dx9_animation_controller_GetMaxNumTracks()

static UINT WINAPI d3dx9_animation_controller_GetMaxNumTracks ( ID3DXAnimationController *  iface)
static

Definition at line 104 of file animation.c.

105 {
107 
108  TRACE("iface %p.\n", iface);
109 
110  return animation->max_tracks;
111 }
static struct d3dx9_animation_controller * impl_from_ID3DXAnimationController(ID3DXAnimationController *iface)
Definition: animation.c:39
#define TRACE(s)
Definition: solgame.cpp:4

◆ d3dx9_animation_controller_GetNumAnimationSets()

static UINT WINAPI d3dx9_animation_controller_GetNumAnimationSets ( ID3DXAnimationController *  iface)
static

Definition at line 147 of file animation.c.

148 {
149  FIXME("iface %p stub.\n", iface);
150 
151  return 0;
152 }
#define FIXME(fmt,...)
Definition: debug.h:110

◆ d3dx9_animation_controller_GetPriorityBlend()

static float WINAPI d3dx9_animation_controller_GetPriorityBlend ( ID3DXAnimationController *  iface)
static

Definition at line 272 of file animation.c.

273 {
274  FIXME("iface %p stub.\n", iface);
275 
276  return 0.0f;
277 }
#define FIXME(fmt,...)
Definition: debug.h:110

◆ d3dx9_animation_controller_GetTime()

static double WINAPI d3dx9_animation_controller_GetTime ( ID3DXAnimationController *  iface)
static

Definition at line 185 of file animation.c.

186 {
187  FIXME("iface %p stub.\n", iface);
188 
189  return 0.0;
190 }
#define FIXME(fmt,...)
Definition: debug.h:110

◆ d3dx9_animation_controller_GetTrackAnimationSet()

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

Definition at line 200 of file animation.c.

202 {
203  FIXME("iface %p, track %u, anim_set %p stub.\n", iface, track, anim_set);
204 
205  return E_NOTIMPL;
206 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_GetTrackDesc()

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

Definition at line 256 of file animation.c.

258 {
259  FIXME("iface %p, track %u, desc %p stub.\n", iface, track, desc);
260 
261  return E_NOTIMPL;
262 }
static const WCHAR desc[]
Definition: protectdata.c:36
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_GetUpcomingPriorityBlend()

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

Definition at line 368 of file animation.c.

370 {
371  FIXME("iface %p, event %u stub.\n", iface, event);
372 
373  return 0;
374 }
#define FIXME(fmt,...)
Definition: debug.h:110
struct _cl_event * event
Definition: glext.h:7739

◆ d3dx9_animation_controller_GetUpcomingTrackEvent()

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

Definition at line 360 of file animation.c.

362 {
363  FIXME("iface %p, track %u, event %u stub.\n", iface, track, event);
364 
365  return 0;
366 }
#define FIXME(fmt,...)
Definition: debug.h:110
struct _cl_event * event
Definition: glext.h:7739

◆ 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 315 of file animation.c.

317 {
318  FIXME("iface %p, new_blend_weight %.8e, start_time %.16e, duration %.16e, transition %u stub.\n", iface,
319  new_blend_weight, start_time, duration, transition);
320 
321  return 0;
322 }
#define FIXME(fmt,...)
Definition: debug.h:110

◆ 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 306 of file animation.c.

308 {
309  FIXME("iface %p, track %u, new_enable %#x, start_time %.16e stub.\n", iface,
310  track, new_enable, start_time);
311 
312  return 0;
313 }
#define FIXME(fmt,...)
Definition: debug.h:110

◆ 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 297 of file animation.c.

299 {
300  FIXME("iface %p, track %u, new_position %.16e, start_time %.16e stub.\n", iface,
301  track, new_position, start_time);
302 
303  return 0;
304 }
#define FIXME(fmt,...)
Definition: debug.h:110

◆ 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 279 of file animation.c.

281 {
282  FIXME("iface %p, track %u, new_speed %.8e, start_time %.16e, duration %.16e, transition %u stub.\n", iface,
283  track, new_speed, start_time, duration, transition);
284 
285  return 0;
286 }
#define FIXME(fmt,...)
Definition: debug.h:110

◆ 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 288 of file animation.c.

290 {
291  FIXME("iface %p, track %u, new_weight %.8e, start_time %.16e, duration %.16e, transition %u stub.\n", iface,
292  track, new_weight, start_time, duration, transition);
293 
294  return 0;
295 }
#define FIXME(fmt,...)
Definition: debug.h:110

◆ d3dx9_animation_controller_QueryInterface()

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

Definition at line 44 of file animation.c.

45 {
46  TRACE("iface %p, riid %s, out %p.\n", iface, debugstr_guid(riid), out);
47 
48  if (IsEqualGUID(riid, &IID_IUnknown) ||
49  IsEqualGUID(riid, &IID_ID3DXAnimationController))
50  {
51  iface->lpVtbl->AddRef(iface);
52  *out = iface;
53  return D3D_OK;
54  }
55 
56  WARN("%s not implemented, returning E_NOINTERFACE.\n", debugstr_guid(riid));
57  *out = NULL;
58  return E_NOINTERFACE;
59 }
#define E_NOINTERFACE
Definition: winerror.h:2364
REFIID riid
Definition: precomp.h:44
#define WARN(fmt,...)
Definition: debug.h:111
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
const GUID IID_IUnknown
static FILE * out
Definition: regtests2xml.c:44
#define D3D_OK
Definition: d3d.h:106
BOOL WINAPI IsEqualGUID(REFGUID rguid1, REFGUID rguid2)
Definition: compobj.c:4112

◆ 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 122 of file animation.c.

124 {
125  FIXME("iface %p, name %s, matrix %p, scale %p, rotation %p, translation %p stub.\n", iface, debugstr_a(name),
126  matrix, scale, rotation, translation);
127 
128  return E_NOTIMPL;
129 }
GLuint GLenum matrix
Definition: glext.h:9407
GLenum GLenum GLenum GLenum GLenum scale
Definition: glext.h:9032
#define FIXME(fmt,...)
Definition: debug.h:110
#define debugstr_a
Definition: kernel32.h:31
#define E_NOTIMPL
Definition: ddrawi.h:99
Definition: name.c:38

◆ d3dx9_animation_controller_RegisterAnimationSet()

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

Definition at line 131 of file animation.c.

133 {
134  FIXME("iface %p, anim_set %p stub.\n", iface, anim_set);
135 
136  return E_NOTIMPL;
137 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_Release()

static ULONG WINAPI d3dx9_animation_controller_Release ( ID3DXAnimationController *  iface)
static

Definition at line 71 of file animation.c.

72 {
74  ULONG refcount = InterlockedDecrement(&animation->ref);
75 
76  TRACE("%p decreasing refcount to %u.\n", animation, refcount);
77 
78  if (!refcount)
79  {
80  HeapFree(GetProcessHeap(), 0, animation);
81  }
82 
83  return refcount;
84 }
static struct d3dx9_animation_controller * impl_from_ID3DXAnimationController(ID3DXAnimationController *iface)
Definition: animation.c:39
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:403
#define InterlockedDecrement
Definition: armddk.h:52
unsigned int ULONG
Definition: retypes.h:1
#define HeapFree(x, y, z)
Definition: compat.h:402

◆ d3dx9_animation_controller_Reset()

static HRESULT WINAPI d3dx9_animation_controller_Reset ( ID3DXAnimationController *  iface)
static

Definition at line 178 of file animation.c.

179 {
180  FIXME("iface %p stub.\n", iface);
181 
182  return E_NOTIMPL;
183 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_SetPriorityBlend()

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

Definition at line 264 of file animation.c.

266 {
267  FIXME("iface %p, blend_weight %.8e stub.\n", iface, blend_weight);
268 
269  return E_NOTIMPL;
270 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_SetTrackAnimationSet()

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

Definition at line 192 of file animation.c.

194 {
195  FIXME("iface %p, track %u, anim_set %p stub.\n", iface, track, anim_set);
196 
197  return E_NOTIMPL;
198 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_SetTrackDesc()

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

Definition at line 248 of file animation.c.

250 {
251  FIXME("iface %p, track %u, desc %p stub.\n", iface, track, desc);
252 
253  return E_NOTIMPL;
254 }
static const WCHAR desc[]
Definition: protectdata.c:36
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_SetTrackEnable()

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

Definition at line 240 of file animation.c.

242 {
243  FIXME("iface %p, track %u, enable %#x stub.\n", iface, track, enable);
244 
245  return E_NOTIMPL;
246 }
#define FIXME(fmt,...)
Definition: debug.h:110
GLboolean enable
Definition: glext.h:11120
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_SetTrackPosition()

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

Definition at line 232 of file animation.c.

234 {
235  FIXME("iface %p, track %u, position %.16e stub.\n", iface, track, position);
236 
237  return E_NOTIMPL;
238 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_SetTrackPriority()

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

Definition at line 208 of file animation.c.

210 {
211  FIXME("iface %p, track %u, priority %u stub.\n", iface, track, priority);
212 
213  return E_NOTIMPL;
214 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99
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 216 of file animation.c.

218 {
219  FIXME("iface %p, track %u, speed %.8e stub.\n", iface, track, speed);
220 
221  return E_NOTIMPL;
222 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_SetTrackWeight()

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

Definition at line 224 of file animation.c.

226 {
227  FIXME("iface %p, track %u, weight %.8e stub.\n", iface, track, weight);
228 
229  return E_NOTIMPL;
230 }
#define FIXME(fmt,...)
Definition: debug.h:110
weight
Definition: sortkey.c:156
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_UnkeyAllPriorityBlends()

static HRESULT WINAPI d3dx9_animation_controller_UnkeyAllPriorityBlends ( ID3DXAnimationController *  iface)
static

Definition at line 338 of file animation.c.

339 {
340  FIXME("iface %p stub.\n", iface);
341 
342  return E_NOTIMPL;
343 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_UnkeyAllTrackEvents()

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

Definition at line 331 of file animation.c.

332 {
333  FIXME("iface %p, track %u stub.\n", iface, track);
334 
335  return E_NOTIMPL;
336 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_UnkeyEvent()

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

Definition at line 324 of file animation.c.

325 {
326  FIXME("iface %p, event %u stub.\n", iface, event);
327 
328  return E_NOTIMPL;
329 }
#define FIXME(fmt,...)
Definition: debug.h:110
struct _cl_event * event
Definition: glext.h:7739
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_UnregisterAnimationSet()

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

Definition at line 139 of file animation.c.

141 {
142  FIXME("iface %p, anim_set %p stub.\n", iface, anim_set);
143 
144  return E_NOTIMPL;
145 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ d3dx9_animation_controller_ValidateEvent()

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

Definition at line 376 of file animation.c.

377 {
378  FIXME("iface %p, event %u stub.\n", iface, event);
379 
380  return E_NOTIMPL;
381 }
#define FIXME(fmt,...)
Definition: debug.h:110
struct _cl_event * event
Definition: glext.h:7739
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ D3DXCreateAnimationController()

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

Definition at line 446 of file animation.c.

448 {
450 
451  TRACE("max_outputs %u, max_sets %u, max_tracks %u, max_events %u, controller %p.\n",
452  max_outputs, max_sets, max_tracks, max_events, controller);
453 
454  if (!max_outputs || !max_sets || !max_tracks || !max_events || !controller)
455  return D3D_OK;
456 
457  object = HeapAlloc(GetProcessHeap(), 0, sizeof(*object));
458  if (!object)
459  return E_OUTOFMEMORY;
460 
461  object->ID3DXAnimationController_iface.lpVtbl = &d3dx9_animation_controller_vtbl;
462  object->ref = 1;
463  object->max_outputs = max_outputs;
464  object->max_sets = max_sets;
465  object->max_tracks = max_tracks;
466  object->max_events = max_events;
467 
468  *controller = &object->ID3DXAnimationController_iface;
469 
470  return D3D_OK;
471 }
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:403
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define D3D_OK
Definition: d3d.h:106
static const struct ID3DXAnimationControllerVtbl d3dx9_animation_controller_vtbl
Definition: animation.c:400
void * object
Definition: jmemsys.h:48

◆ 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 473 of file animation.c.

476 {
477  FIXME("name %s, ticks_per_second %.16e, playback_type %u, animation_count %u, "
478  "callback_key_count %u, callback_keys %p, animation_set %p stub.\n",
479  debugstr_a(name), ticks_per_second, playback_type, animation_count,
480  callback_key_count, callback_keys, animation_set);
481 
482  return E_NOTIMPL;
483 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define debugstr_a
Definition: kernel32.h:31
#define E_NOTIMPL
Definition: ddrawi.h:99
Definition: name.c:38

◆ impl_from_ID3DXAnimationController()

static struct d3dx9_animation_controller* impl_from_ID3DXAnimationController ( ID3DXAnimationController *  iface)
inlinestatic

Definition at line 39 of file animation.c.

40 {
42 }
PFLT_MESSAGE_WAITER_QUEUE CONTAINING_RECORD(Csq, DEVICE_EXTENSION, IrpQueue)) -> WaiterQ.mLock) _IRQL_raises_(DISPATCH_LEVEL) VOID NTAPI FltpAcquireMessageWaiterLock(_In_ PIO_CSQ Csq, _Out_ PKIRQL Irql)
Definition: Messaging.c:560
ID3DXAnimationController ID3DXAnimationController_iface
Definition: animation.c:30

Referenced by d3dx9_animation_controller_AddRef(), d3dx9_animation_controller_GetMaxNumAnimationOutputs(), d3dx9_animation_controller_GetMaxNumAnimationSets(), d3dx9_animation_controller_GetMaxNumEvents(), d3dx9_animation_controller_GetMaxNumTracks(), and d3dx9_animation_controller_Release().

◆ 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 400 of file animation.c.

Referenced by D3DXCreateAnimationController().