21#ifndef __D3DRMDEFS_H__
22#define __D3DRMDEFS_H__
27#if defined(__cplusplus)
91#define D3DRMRENDER_WIREFRAME (D3DRMSHADE_FLAT+D3DRMLIGHT_OFF+D3DRMFILL_WIREFRAME)
92#define D3DRMRENDER_UNLITFLAT (D3DRMSHADE_FLAT+D3DRMLIGHT_OFF+D3DRMFILL_SOLID)
93#define D3DRMRENDER_FLAT (D3DRMSHADE_FLAT+D3DRMLIGHT_ON+D3DRMFILL_SOLID)
94#define D3DRMRENDER_GOURAUD (D3DRMSHADE_GOURAUD+D3DRMLIGHT_ON+D3DRMFILL_SOLID)
95#define D3DRMRENDER_PHONG (D3DRMSHADE_PHONG+D3DRMLIGHT_ON+D3DRMFILL_SOLID)
97#define D3DRMRENDERMODE_BLENDEDTRANSPARENCY 1
98#define D3DRMRENDERMODE_SORTEDTRANSPARENCY 2
99#define D3DRMRENDERMODE_LIGHTINMODELSPACE 8
100#define D3DRMRENDERMODE_VIEWDEPENDENTSPECULAR 16
101#define D3DRMRENDERMODE_DISABLESORTEDALPHAZWRITE 32
112#define D3DRMTEXTURE_FORCERESIDENT 0x00000001
113#define D3DRMTEXTURE_STATIC 0x00000002
114#define D3DRMTEXTURE_DOWNSAMPLEPOINT 0x00000004
115#define D3DRMTEXTURE_DOWNSAMPLEBILINEAR 0x00000008
116#define D3DRMTEXTURE_DOWNSAMPLEREDUCEDEPTH 0x00000010
117#define D3DRMTEXTURE_DOWNSAMPLENONE 0x00000020
118#define D3DRMTEXTURE_CHANGEDPIXELS 0x00000040
119#define D3DRMTEXTURE_CHANGEDPALETTE 0x00000080
120#define D3DRMTEXTURE_INVALIDATEONLY 0x00000100
122#define D3DRMSHADOW_TRUEALPHA 0x00000001
173#define D3DRMWIREFRAME_CULL 1
174#define D3DRMWIREFRAME_HIDDENLINE 2
184#define D3DRMOPTIONS_LEFTHANDED 0x00000001
185#define D3DRMOPTIONS_RIGHTHANDED 0x00000002
194#define D3DRMXOFSAVE_NORMALS 1
195#define D3DRMXOFSAVE_TEXTURECOORDINATES 2
196#define D3DRMXOFSAVE_MATERIALS 4
197#define D3DRMXOFSAVE_TEXTURENAMES 8
198#define D3DRMXOFSAVE_ALL 15
199#define D3DRMXOFSAVE_TEMPLATES 16
200#define D3DRMXOFSAVE_TEXTURETOPOLOGY 32
249#define D3DRMMATERIALOVERRIDE_DIFFUSE_ALPHAONLY 0x00000001
250#define D3DRMMATERIALOVERRIDE_DIFFUSE_RGBONLY 0x00000002
251#define D3DRMMATERIALOVERRIDE_DIFFUSE 0x00000003
252#define D3DRMMATERIALOVERRIDE_AMBIENT 0x00000004
253#define D3DRMMATERIALOVERRIDE_EMISSIVE 0x00000008
254#define D3DRMMATERIALOVERRIDE_SPECULAR 0x00000010
255#define D3DRMMATERIALOVERRIDE_POWER 0x00000020
256#define D3DRMMATERIALOVERRIDE_TEXTURE 0x00000040
257#define D3DRMMATERIALOVERRIDE_DIFFUSE_ALPHAMULTIPLY 0x00000080
258#define D3DRMMATERIALOVERRIDE_ALL 0x000000FF
260#define D3DRMFPTF_ALPHA 0x00000001
261#define D3DRMFPTF_NOALPHA 0x00000002
262#define D3DRMFPTF_PALETTIZED 0x00000004
263#define D3DRMFPTF_NOTPALETTIZED 0x00000008
265#define D3DRMSTATECHANGE_UPDATEONLY 0x000000001
266#define D3DRMSTATECHANGE_VOLATILE 0x000000002
267#define D3DRMSTATECHANGE_NONVOLATILE 0x000000004
268#define D3DRMSTATECHANGE_RENDER 0x000000020
269#define D3DRMSTATECHANGE_LIGHT 0x000000040
271#define D3DRMDEVICE_NOZBUFFER 0x00000001
273#define D3DRMCALLBACK_PREORDER 0
274#define D3DRMCALLBACK_POSTORDER 1
276#define D3DRMRAYPICK_ONLYBOUNDINGBOXES 0x01
277#define D3DRMRAYPICK_IGNOREFURTHERPRIMITIVES 0x02
278#define D3DRMRAYPICK_INTERPOLATEUV 0x04
279#define D3DRMRAYPICK_INTERPOLATECOLOR 0x08
280#define D3DRMRAYPICK_INTERPOLATENORMAL 0x10
282#define D3DRMADDFACES_VERTICESONLY 1
284#define D3DRMGENERATENORMALS_PRECOMPACT 1
285#define D3DRMGENERATENORMALS_USECREASEANGLE 2
287#define D3DRMMESHBUILDER_DIRECTPARENT 1
288#define D3DRMMESHBUILDER_ROOTMESH 2
290#define D3DRMMESHBUILDER_RENDERENABLE 0x00000001
291#define D3DRMMESHBUILDER_PICKENABLE 0x00000002
293#define D3DRMADDMESHBUILDER_DONTCOPYAPPDATA 1
294#define D3DRMADDMESHBUILDER_FLATTENSUBMESHES 2
295#define D3DRMADDMESHBUILDER_NOSUBMESHES 4
297#define D3DRMMESHBUILDERAGE_GEOMETRY 0x00000001
298#define D3DRMMESHBUILDERAGE_MATERIALS 0x00000002
299#define D3DRMMESHBUILDERAGE_TEXTURES 0x00000004
301#define D3DRMFVF_TYPE 0x00000001
302#define D3DRMFVF_NORMAL 0x00000002
303#define D3DRMFVF_COLOR 0x00000004
304#define D3DRMFVF_TEXTURECOORDS 0x00000008
306#define D3DRMVERTEX_STRIP 0x00000001
307#define D3DRMVERTEX_FAN 0x00000002
308#define D3DRMVERTEX_LIST 0x00000004
310#define D3DRMCLEAR_TARGET 0x00000001
311#define D3DRMCLEAR_ZBUFFER 0x00000002
312#define D3DRMCLEAR_DIRTYRECTS 0x00000004
313#define D3DRMCLEAR_ALL (D3DRMCLEAR_TARGET | D3DRMCLEAR_ZBUFFER | D3DRMCLEAR_DIRTYRECTS)
315#define D3DRMFOGMETHOD_VERTEX 0x00000001
316#define D3DRMFOGMETHOD_TABLE 0x00000002
317#define D3DRMFOGMETHOD_ANY 0x00000004
319#define D3DRMFRAME_RENDERENABLE 0x00000001
320#define D3DRMFRAME_PICKENABLE 0x00000002
323#define D3DRMANIMATION_OPEN 0x00000001
324#define D3DRMANIMATION_CLOSED 0x00000002
325#define D3DRMANIMATION_LINEARPOSITION 0x00000004
326#define D3DRMANIMATION_SPLINEPOSITION 0x00000008
327#define D3DRMANIMATION_SCALEANDROTATION 0x00000010
328#define D3DRMANIMATION_POSITION 0x00000020
331#define D3DRMINTERPOLATION_OPEN 0x0001
332#define D3DRMINTERPOLATION_CLOSED 0x0002
333#define D3DRMINTERPOLATION_NEAREST 0x0100
334#define D3DRMINTERPOLATION_LINEAR 0x0004
335#define D3DRMINTERPOLATION_SPLINE 0x0008
336#define D3DRMINTERPOLATION_VERTEXCOLOR 0x0040
337#define D3DRMINTERPOLATION_SLERPNORMALS 0x0080
341#define D3DRMLOAD_FROMFILE 0x000L
342#define D3DRMLOAD_FROMRESOURCE 0x001L
343#define D3DRMLOAD_FROMMEMORY 0x002L
344#define D3DRMLOAD_FROMSTREAM 0x004L
345#define D3DRMLOAD_FROMURL 0x008L
347#define D3DRMLOAD_BYNAME 0x010L
348#define D3DRMLOAD_BYPOSITION 0x020L
349#define D3DRMLOAD_BYGUID 0x040L
350#define D3DRMLOAD_FIRST 0x080L
352#define D3DRMLOAD_INSTANCEBYREFERENCE 0x100L
353#define D3DRMLOAD_INSTANCEBYCOPYING 0x200L
355#define D3DRMLOAD_ASYNCHRONOUS 0x400L
370#define D3DRMPMESHSTATUS_VALID 0x01
371#define D3DRMPMESHSTATUS_INTERRUPTED 0x02
372#define D3DRMPMESHSTATUS_BASEMESHCOMPLETE 0x04
373#define D3DRMPMESHSTATUS_COMPLETE 0x08
374#define D3DRMPMESHSTATUS_RENDERABLE 0x10
376#define D3DRMPMESHEVENT_BASEMESH 0x01
377#define D3DRMPMESHEVENT_COMPLETE 0x02
401#if !defined(__cplusplus) || !defined(D3D_OVERLOADS)
414#define D3DRMANIMATION_ROTATEKEY 0x01
415#define D3DRMANIMATION_SCALEKEY 0x02
416#define D3DRMANIMATION_POSITIONKEY 0x03
446#define D3DRMVectorNormalise D3DRMVectorNormalize
462#if defined(__cplusplus)
D3DVECTOR *WINAPI D3DRMVectorRandom(D3DVECTOR *ret)
struct _D3DRMPMESHLOADSTATUS D3DRMPMESHLOADSTATUS
DWORD D3DRMANIMATIONOPTIONS
D3DVECTOR *WINAPI D3DRMVectorCrossProduct(D3DVECTOR *ret, D3DVECTOR *x, D3DVECTOR *y)
struct _D3DRMIMAGE * LPD3DRMIMAGE
enum _D3DRMMATERIALMODE D3DRMMATERIALMODE
DWORD D3DRMINTERPOLATIONOPTIONS
D3DRMQUATERNION *WINAPI D3DRMQuaternionMultiply(D3DRMQUATERNION *ret, D3DRMQUATERNION *x, D3DRMQUATERNION *y)
void WINAPI D3DRMMatrixFromQuaternion(D3DRMMATRIX4D m, D3DRMQUATERNION *q)
enum _D3DRMWRAPTYPE D3DRMWRAPTYPE
D3DVALUE WINAPI D3DRMColorGetGreen(D3DCOLOR)
enum _D3DRMZBUFFERMODE * LPD3DRMZBUFFERMODE
struct _D3DRMRAY * LPD3DRMRAY
struct _D3DRMLOADRESOURCE D3DRMLOADRESOURCE
DWORD * LPD3DRMRENDERQUALITY
struct _D3DRMRAY D3DRMRAY
enum _D3DRMMATERIALMODE * LPD3DRMMATERIALMODE
@ D3DRMLIGHT_PARALLELPOINT
enum _D3DRMCOLORSOURCE * LPD3DRMCOLORSOURCE
D3DVALUE WINAPI D3DRMVectorModulus(D3DVECTOR *x)
enum _D3DRMLIGHTTYPE * LPD3DRMLIGHTTYPE
D3DVECTOR *WINAPI D3DRMVectorAdd(D3DVECTOR *ret, D3DVECTOR *x, D3DVECTOR *y)
struct _D3DRMQUATERNION * LPD3DRMQUATERNION
enum _D3DRMFOGMODE * LPD3DRMFOGMODE
D3DVALUE WINAPI D3DRMColorGetRed(D3DCOLOR)
D3DVALUE D3DRMMATRIX4D[4][4]
@ D3DRMPROJECT_ORTHOGRAPHIC
@ D3DRMPROJECT_RIGHTHANDORTHOGRAPHIC
@ D3DRMPROJECT_PERSPECTIVE
@ D3DRMPROJECT_RIGHTHANDPERSPECTIVE
enum _D3DRMWRAPTYPE * LPD3DRMWRAPTYPE
enum _D3DRMLIGHTTYPE D3DRMLIGHTTYPE
static const D3DRMMAPPINGFLAG D3DRMMAP_WRAPV
enum _D3DRMZBUFFERMODE D3DRMZBUFFERMODE
enum _D3DRMFILLMODE D3DRMFILLMODE
D3DVALUE WINAPI D3DRMColorGetBlue(D3DCOLOR)
D3DVALUE WINAPI D3DRMVectorDotProduct(D3DVECTOR *x, D3DVECTOR *y)
D3DCOLOR WINAPI D3DRMCreateColorRGB(D3DVALUE, D3DVALUE, D3DVALUE)
static const D3DRMMAPPINGFLAG D3DRMMAP_PERSPCORRECT
D3DCOLOR WINAPI D3DRMCreateColorRGBA(D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE)
struct _D3DRMPALETTEENTRY * LPD3DRMPALETTEENTRY
D3DCOLORMODEL D3DRMCOLORMODEL
struct _D3DRMMATERIALOVERRIDE D3DRMMATERIALOVERRIDE
struct _D3DRMPMESHLOADSTATUS * LPD3DRMPMESHLOADSTATUS
struct _D3DRMMATERIALOVERRIDE * LPD3DRMMATERIALOVERRIDE
static const D3DRMMAPPINGFLAG D3DRMMAP_WRAPU
D3DVALUE WINAPI D3DRMColorGetAlpha(D3DCOLOR)
struct _D3DRMIMAGE D3DRMIMAGE
D3DRMANIMATIONKEY * LPD3DRMANIMATIONKEY
enum _D3DRMFOGMODE D3DRMFOGMODE
@ D3DRMFOG_EXPONENTIALSQUARED
enum _D3DRMFRAMECONSTRAINT D3DRMFRAMECONSTRAINT
struct _D3DRMLOADRESOURCE * LPD3DRMLOADRESOURCE
struct _D3DRMVERTEX * LPD3DRMVERTEX
D3DCOLORMODEL * LPD3DRMCOLORMODEL
enum _D3DRMUSERVISUALREASON D3DRMUSERVISUALREASON
enum _D3DRMPALETTEFLAGS D3DRMPALETTEFLAGS
enum _D3DRMUSERVISUALREASON * LPD3DRMUSERVISUALREASON
enum _D3DRMPROJECTIONTYPE D3DRMPROJECTIONTYPE
enum _D3DRMCOMBINETYPE D3DRMCOMBINETYPE
struct _D3DRMBOX * LPD3DRMBOX
enum _D3DRMPALETTEFLAGS * LPD3DRMPALETTEFLAGS
@ D3DRMZBUFFER_FROMPARENT
struct _D3DRMQUATERNION D3DRMQUATERNION
struct _D3DRMLOADMEMORY D3DRMLOADMEMORY
enum _D3DRMXOFFORMAT * LPD3DRMXOFFORMAT
enum _D3DRMLIGHTMODE * LPD3DRMLIGHTMODE
enum _D3DRMFILLMODE * LPD3DRMFILLMODE
enum _D3DRMSORTMODE D3DRMSORTMODE
struct _D3DRMBOX D3DRMBOX
enum _D3DRMLIGHTMODE D3DRMLIGHTMODE
D3DVECTOR *WINAPI D3DRMVectorSubtract(D3DVECTOR *ret, D3DVECTOR *x, D3DVECTOR *y)
enum _D3DRMTEXTUREQUALITY D3DRMTEXTUREQUALITY
struct _D3DRMVECTOR4D * LPD3DRMVECTOR4D
enum _D3DRMSORTMODE * LPD3DRMSORTMODE
struct _D3DRMLOADMEMORY * LPD3DRMLOADMEMORY
enum _D3DRMPROJECTIONTYPE * LPD3DRMPROJECTIONTYPE
enum _D3DRMXOFFORMAT D3DRMXOFFORMAT
void(* D3DRMWRAPCALLBACK)(D3DVECTOR *vec, int *u, int *v, D3DVECTOR *a, D3DVECTOR *b, void *ctx)
enum _D3DRMCOLORSOURCE D3DRMCOLORSOURCE
D3DVECTOR *WINAPI D3DRMVectorNormalize(D3DVECTOR *x)
enum _D3DRMCOMBINETYPE * LPD3DRMCOMBINETYPE
enum _D3DRMSHADEMODE D3DRMSHADEMODE
struct _D3DRMVECTOR4D D3DRMVECTOR4D
struct _D3DRMVERTEX D3DRMVERTEX
enum _D3DRMFRAMECONSTRAINT * LPD3DRMFRAMECONSTRAINT
D3DRMQUATERNION *WINAPI D3DRMQuaternionSlerp(D3DRMQUATERNION *ret, D3DRMQUATERNION *x, D3DRMQUATERNION *y, D3DVALUE alpha)
struct _D3DRMPALETTEENTRY D3DRMPALETTEENTRY
enum _D3DRMSHADEMODE * LPD3DRMSHADEMODE
static const D3DRMGROUPINDEX D3DRMGROUP_ALLGROUPS
@ D3DRMTEXTURE_MIPNEAREST
@ D3DRMTEXTURE_LINEARMIPLINEAR
@ D3DRMTEXTURE_LINEARMIPNEAREST
@ D3DRMMATERIAL_FROMPARENT
@ D3DRMMATERIAL_FROMFRAME
enum _D3DRMTEXTUREQUALITY * LPD3DRMTEXTUREQUALITY
D3DVECTOR *WINAPI D3DRMVectorReflect(D3DVECTOR *ret, D3DVECTOR *ray, D3DVECTOR *normal)
D3DVECTOR *WINAPI D3DRMVectorScale(D3DVECTOR *ret, D3DVECTOR *x, D3DVALUE scale)
D3DVECTOR *WINAPI D3DRMVectorRotate(D3DVECTOR *ret, D3DVECTOR *x, D3DVECTOR *axis, D3DVALUE theta)
D3DRMQUATERNION *WINAPI D3DRMQuaternionFromRotation(D3DRMQUATERNION *x, D3DVECTOR *axis, D3DVALUE theta)
struct _D3DRMANIMATIONKEY D3DRMANIMATIONKEY
GLint GLint GLint GLint GLint x
GLclampf GLclampf GLclampf alpha
GLint GLint GLint GLint GLint GLint y
GLdouble GLdouble GLdouble GLdouble q
GLenum GLenum GLenum GLenum GLenum scale
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
D3DRMQUATERNION dqRotateKey
union _D3DRMANIMATIONKEY::@2755 DUMMYUNIONNAME
D3DRMPALETTEENTRY * palette