include: Add missing defines for d3drmdef.h.
This commit is contained in:
parent
85ced167bd
commit
51b2bde3c8
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2007 Vijay Kiran Kamuju
|
||||
* Copyright 2007,2010 Vijay Kiran Kamuju
|
||||
* Copyright 2007 David ADAM
|
||||
* Copyright 2010 Christian Costa
|
||||
*
|
||||
|
@ -53,6 +53,9 @@ typedef struct _D3DRMBOX {
|
|||
D3DVECTOR max;
|
||||
} D3DRMBOX, *LPD3DRMBOX;
|
||||
|
||||
typedef void (*D3DRMWRAPCALLBACK)
|
||||
(LPD3DVECTOR, int* u, int* v, LPD3DVECTOR a, LPD3DVECTOR b, LPVOID);
|
||||
|
||||
typedef enum _D3DRMLIGHTTYPE {
|
||||
D3DRMLIGHT_AMBIENT,
|
||||
D3DRMLIGHT_POINT,
|
||||
|
@ -61,8 +64,43 @@ typedef enum _D3DRMLIGHTTYPE {
|
|||
D3DRMLIGHT_PARALLELPOINT
|
||||
} D3DRMLIGHTTYPE, *LPD3DRMLIGHTTYPE;
|
||||
|
||||
typedef enum _D3DRMSHADEMODE {
|
||||
D3DRMSHADE_FLAT = 0,
|
||||
D3DRMSHADE_GOURAUD = 1,
|
||||
D3DRMSHADE_PHONG = 2,
|
||||
D3DRMSHADE_MASK = 7,
|
||||
D3DRMSHADE_MAX = 8
|
||||
} D3DRMSHADEMODE, *LPD3DRMSHADEMODE;
|
||||
|
||||
typedef enum _D3DRMLIGHTMODE {
|
||||
D3DRMLIGHT_OFF = 0 * D3DRMSHADE_MAX,
|
||||
D3DRMLIGHT_ON = 1 * D3DRMSHADE_MAX,
|
||||
D3DRMLIGHT_MASK = 7 * D3DRMSHADE_MAX,
|
||||
D3DRMLIGHT_MAX = 8 * D3DRMSHADE_MAX
|
||||
} D3DRMLIGHTMODE, *LPD3DRMLIGHTMODE;
|
||||
|
||||
typedef enum _D3DRMFILLMODE {
|
||||
D3DRMFILL_POINTS = 0 * D3DRMLIGHT_MAX,
|
||||
D3DRMFILL_WIREFRAME = 1 * D3DRMLIGHT_MAX,
|
||||
D3DRMFILL_SOLID = 2 * D3DRMLIGHT_MAX,
|
||||
D3DRMFILL_MASK = 7 * D3DRMLIGHT_MAX,
|
||||
D3DRMFILL_MAX = 8 * D3DRMLIGHT_MAX
|
||||
} D3DRMFILLMODE, *LPD3DRMFILLMODE;
|
||||
|
||||
typedef DWORD D3DRMRENDERQUALITY, *LPD3DRMRENDERQUALITY;
|
||||
|
||||
#define D3DRMRENDER_WIREFRAME (D3DRMSHADE_FLAT+D3DRMLIGHT_OFF+D3DRMFILL_WIREFRAME)
|
||||
#define D3DRMRENDER_UNLITFLAT (D3DRMSHADE_FLAT+D3DRMLIGHT_OFF+D3DRMFILL_SOLID)
|
||||
#define D3DRMRENDER_FLAT (D3DRMSHADE_FLAT+D3DRMLIGHT_ON+D3DRMFILL_SOLID)
|
||||
#define D3DRMRENDER_GOURAUD (D3DRMSHADE_GOURAUD+D3DRMLIGHT_ON+D3DRMFILL_SOLID)
|
||||
#define D3DRMRENDER_PHONG (D3DRMSHADE_PHONG+D3DRMLIGHT_ON+D3DRMFILL_SOLID
|
||||
|
||||
#define D3DRMRENDERMODE_BLENDEDTRANSPARENCY 1
|
||||
#define D3DRMRENDERMODE_SORTEDTRANSPARENCY 2
|
||||
#define D3DRMRENDERMODE_LIGHTINMODELSPACE 8
|
||||
#define D3DRMRENDERMODE_VIEWDEPENDENTSPECULAR 16
|
||||
#define D3DRMRENDERMODE_DISABLESORTEDALPHAZWRITE 32
|
||||
|
||||
typedef enum _D3DRMTEXTUREQUALITY {
|
||||
D3DRMTEXTURE_NEAREST,
|
||||
D3DRMTEXTURE_LINEAR,
|
||||
|
@ -72,12 +110,33 @@ typedef enum _D3DRMTEXTUREQUALITY {
|
|||
D3DRMTEXTURE_LINEARMIPLINEAR
|
||||
} D3DRMTEXTUREQUALITY, *LPD3DRMTEXTUREQUALITY;
|
||||
|
||||
#define D3DRMTEXTURE_FORCERESIDENT 0x00000001
|
||||
#define D3DRMTEXTURE_STATIC 0x00000002
|
||||
#define D3DRMTEXTURE_DOWNSAMPLEPOINT 0x00000004
|
||||
#define D3DRMTEXTURE_DOWNSAMPLEBILINEAR 0x00000008
|
||||
#define D3DRMTEXTURE_DOWNSAMPLEREDUCEDEPTH 0x00000010
|
||||
#define D3DRMTEXTURE_DOWNSAMPLENONE 0x00000020
|
||||
#define D3DRMTEXTURE_CHANGEDPIXELS 0x00000040
|
||||
#define D3DRMTEXTURE_CHANGEDPALETTE 0x00000080
|
||||
#define D3DRMTEXTURE_INVALIDATEONLY 0x00000100
|
||||
|
||||
#define D3DRMSHADOW_TRUEALPHA 0x00000001
|
||||
|
||||
typedef enum _D3DRMCOMBINETYPE {
|
||||
D3DRMCOMBINE_REPLACE,
|
||||
D3DRMCOMBINE_BEFORE,
|
||||
D3DRMCOMBINE_AFTER
|
||||
} D3DRMCOMBINETYPE, *LPD3DRMCOMBINETYPE;
|
||||
|
||||
typedef D3DCOLORMODEL D3DRMCOLORMODEL, *LPD3DRMCOLORMODEL;
|
||||
|
||||
typedef enum _D3DRMPALETTEFLAGS
|
||||
{
|
||||
D3DRMPALETTE_FREE,
|
||||
D3DRMPALETTE_READONLY,
|
||||
D3DRMPALETTE_RESERVED
|
||||
} D3DRMPALETTEFLAGS, *LPD3DRMPALETTEFLAGS;
|
||||
|
||||
typedef struct _D3DRMPALETTEENTRY {
|
||||
unsigned char red;
|
||||
unsigned char green;
|
||||
|
@ -112,6 +171,9 @@ typedef enum _D3DRMWRAPTYPE {
|
|||
D3DRMWRAP_BOX
|
||||
} D3DRMWRAPTYPE, *LPD3DRMWRAPTYPE;
|
||||
|
||||
#define D3DRMWIREFRAME_CULL 1
|
||||
#define D3DRMWIREFRAME_HIDDENLINE 2
|
||||
|
||||
typedef enum _D3DRMPROJECTIONTYPE
|
||||
{
|
||||
D3DRMPROJECT_PERSPECTIVE,
|
||||
|
@ -120,6 +182,9 @@ typedef enum _D3DRMPROJECTIONTYPE
|
|||
D3DRMPROJECT_RIGHTHANDORTHOGRAPHIC
|
||||
} D3DRMPROJECTIONTYPE, *LPD3DRMPROJECTIONTYPE;
|
||||
|
||||
#define D3DRMOPTIONS_LEFTHANDED 0x00000001
|
||||
#define D3DRMOPTIONS_RIGHTHANDED 0x00000002
|
||||
|
||||
typedef enum _D3DRMXOFFORMAT {
|
||||
D3DRMXOF_BINARY,
|
||||
D3DRMXOF_COMPRESSED,
|
||||
|
@ -127,6 +192,13 @@ typedef enum _D3DRMXOFFORMAT {
|
|||
} D3DRMXOFFORMAT, *LPD3DRMXOFFORMAT;
|
||||
|
||||
typedef DWORD D3DRMSAVEOPTIONS;
|
||||
#define D3DRMXOFSAVE_NORMALS 1
|
||||
#define D3DRMXOFSAVE_TEXTURECOORDINATES 2
|
||||
#define D3DRMXOFSAVE_MATERIALS 4
|
||||
#define D3DRMXOFSAVE_TEXTURENAMES 8
|
||||
#define D3DRMXOFSAVE_ALL 15
|
||||
#define D3DRMXOFSAVE_TEMPLATES 16
|
||||
#define D3DRMXOFSAVE_TEXTURETOPOLOGY 32
|
||||
|
||||
typedef enum _D3DRMCOLORSOURCE {
|
||||
D3DRMCOLOR_FROMFACE,
|
||||
|
@ -175,6 +247,96 @@ typedef struct _D3DRMMATERIALOVERRIDE {
|
|||
LPUNKNOWN lpD3DRMTex;
|
||||
} D3DRMMATERIALOVERRIDE, *LPD3DRMMATERIALOVERRIDE;
|
||||
|
||||
#define D3DRMMATERIALOVERRIDE_DIFFUSE_ALPHAONLY 0x00000001
|
||||
#define D3DRMMATERIALOVERRIDE_DIFFUSE_RGBONLY 0x00000002
|
||||
#define D3DRMMATERIALOVERRIDE_DIFFUSE 0x00000003
|
||||
#define D3DRMMATERIALOVERRIDE_AMBIENT 0x00000004
|
||||
#define D3DRMMATERIALOVERRIDE_EMISSIVE 0x00000008
|
||||
#define D3DRMMATERIALOVERRIDE_SPECULAR 0x00000010
|
||||
#define D3DRMMATERIALOVERRIDE_POWER 0x00000020
|
||||
#define D3DRMMATERIALOVERRIDE_TEXTURE 0x00000040
|
||||
#define D3DRMMATERIALOVERRIDE_DIFFUSE_ALPHAMULTIPLY 0x00000080
|
||||
#define D3DRMMATERIALOVERRIDE_ALL 0x000000FF
|
||||
|
||||
#define D3DRMFPTF_ALPHA 0x00000001
|
||||
#define D3DRMFPTF_NOALPHA 0x00000002
|
||||
#define D3DRMFPTF_PALETTIZED 0x00000004
|
||||
#define D3DRMFPTF_NOTPALETTIZED 0x00000008
|
||||
|
||||
#define D3DRMSTATECHANGE_UPDATEONLY 0x000000001
|
||||
#define D3DRMSTATECHANGE_VOLATILE 0x000000002
|
||||
#define D3DRMSTATECHANGE_NONVOLATILE 0x000000004
|
||||
#define D3DRMSTATECHANGE_RENDER 0x000000020
|
||||
#define D3DRMSTATECHANGE_LIGHT 0x000000040
|
||||
|
||||
#define D3DRMDEVICE_NOZBUFFER 0x00000001
|
||||
|
||||
#define D3DRMCALLBACK_PREORDER 0
|
||||
#define D3DRMCALLBACK_POSTORDER 1
|
||||
|
||||
#define D3DRMRAYPICK_ONLYBOUNDINGBOXES 0x01
|
||||
#define D3DRMRAYPICK_IGNOREFURTHERPRIMITIVES 0x02
|
||||
#define D3DRMRAYPICK_INTERPOLATEUV 0x04
|
||||
#define D3DRMRAYPICK_INTERPOLATECOLOR 0x08
|
||||
#define D3DRMRAYPICK_INTERPOLATENORMAL 0x10
|
||||
|
||||
#define D3DRMADDFACES_VERTICESONLY 1
|
||||
|
||||
#define D3DRMGENERATENORMALS_PRECOMPACT 1
|
||||
#define D3DRMGENERATENORMALS_USECREASEANGLE 2
|
||||
|
||||
#define D3DRMMESHBUILDER_DIRECTPARENT 1
|
||||
#define D3DRMMESHBUILDER_ROOTMESH 2
|
||||
|
||||
#define D3DRMMESHBUILDER_RENDERENABLE 0x00000001
|
||||
#define D3DRMMESHBUILDER_PICKENABLE 0x00000002
|
||||
|
||||
#define D3DRMADDMESHBUILDER_DONTCOPYAPPDATA 1
|
||||
#define D3DRMADDMESHBUILDER_FLATTENSUBMESHES 2
|
||||
#define D3DRMADDMESHBUILDER_NOSUBMESHES 4
|
||||
|
||||
#define D3DRMMESHBUILDERAGE_GEOMETRY 0x00000001
|
||||
#define D3DRMMESHBUILDERAGE_MATERIALS 0x00000002
|
||||
#define D3DRMMESHBUILDERAGE_TEXTURES 0x00000004
|
||||
|
||||
#define D3DRMFVF_TYPE 0x00000001
|
||||
#define D3DRMFVF_NORMAL 0x00000002
|
||||
#define D3DRMFVF_COLOR 0x00000004
|
||||
#define D3DRMFVF_TEXTURECOORDS 0x00000008
|
||||
|
||||
#define D3DRMVERTEX_STRIP 0x00000001
|
||||
#define D3DRMVERTEX_FAN 0x00000002
|
||||
#define D3DRMVERTEX_LIST 0x00000004
|
||||
|
||||
#define D3DRMCLEAR_TARGET 0x00000001
|
||||
#define D3DRMCLEAR_ZBUFFER 0x00000002
|
||||
#define D3DRMCLEAR_DIRTYRECTS 0x00000004
|
||||
#define D3DRMCLEAR_ALL (D3DRMCLEAR_TARGET | D3DRMCLEAR_ZBUFFER | D3DRMCLEAR_DIRTYRECTS)
|
||||
|
||||
#define D3DRMFOGMETHOD_VERTEX 0x00000001
|
||||
#define D3DRMFOGMETHOD_TABLE 0x00000002
|
||||
#define D3DRMFOGMETHOD_ANY 0x00000004
|
||||
|
||||
#define D3DRMFRAME_RENDERENABLE 0x00000001
|
||||
#define D3DRMFRAME_PICKENABLE 0x00000002
|
||||
|
||||
typedef DWORD D3DRMANIMATIONOPTIONS;
|
||||
#define D3DRMANIMATION_OPEN 0x00000001
|
||||
#define D3DRMANIMATION_CLOSED 0x00000002
|
||||
#define D3DRMANIMATION_LINEARPOSITION 0x00000004
|
||||
#define D3DRMANIMATION_SPLINEPOSITION 0x00000008
|
||||
#define D3DRMANIMATION_SCALEANDROTATION 0x00000010
|
||||
#define D3DRMANIMATION_POSITION 0x00000020
|
||||
|
||||
typedef DWORD D3DRMINTERPOLATIONOPTIONS;
|
||||
#define D3DRMINTERPOLATION_OPEN 0x0001
|
||||
#define D3DRMINTERPOLATION_CLOSED 0x0002
|
||||
#define D3DRMINTERPOLATION_NEAREST 0x0100
|
||||
#define D3DRMINTERPOLATION_LINEAR 0x0004
|
||||
#define D3DRMINTERPOLATION_SPLINE 0x0008
|
||||
#define D3DRMINTERPOLATION_VERTEXCOLOR 0x0040
|
||||
#define D3DRMINTERPOLATION_SLERPNORMALS 0x0080
|
||||
|
||||
typedef DWORD D3DRMLOADOPTIONS;
|
||||
|
||||
#define D3DRMLOAD_FROMFILE 0x000L
|
||||
|
@ -204,6 +366,15 @@ typedef struct _D3DRMLOADMEMORY {
|
|||
DWORD dSize;
|
||||
} D3DRMLOADMEMORY, *LPD3DRMLOADMEMORY;
|
||||
|
||||
#define D3DRMPMESHSTATUS_VALID 0x01
|
||||
#define D3DRMPMESHSTATUS_INTERRUPTED 0x02
|
||||
#define D3DRMPMESHSTATUS_BASEMESHCOMPLETE 0x04
|
||||
#define D3DRMPMESHSTATUS_COMPLETE 0x08
|
||||
#define D3DRMPMESHSTATUS_RENDERABLE 0x10
|
||||
|
||||
#define D3DRMPMESHEVENT_BASEMESH 0x01
|
||||
#define D3DRMPMESHEVENT_COMPLETE 0x02
|
||||
|
||||
typedef struct _D3DRMPMESHLOADSTATUS {
|
||||
DWORD dwSize;
|
||||
DWORD dwPMeshSize;
|
||||
|
@ -220,7 +391,33 @@ typedef enum _D3DRMUSERVISUALREASON {
|
|||
D3DRMUSERVISUAL_RENDER
|
||||
} D3DRMUSERVISUALREASON, *LPD3DRMUSERVISUALREASON;
|
||||
|
||||
typedef DWORD D3DRMMAPPING;
|
||||
typedef struct _D3DRMANIMATIONKEY
|
||||
{
|
||||
DWORD dwSize;
|
||||
DWORD dwKeyType;
|
||||
D3DVALUE dvTime;
|
||||
DWORD dwID;
|
||||
#if !defined(__cplusplus) || !defined(D3D_OVERLOADS)
|
||||
union
|
||||
{
|
||||
D3DRMQUATERNION dqRotateKey;
|
||||
D3DVECTOR dvScaleKey;
|
||||
D3DVECTOR dvPositionKey;
|
||||
} DUMMYUNIONNAME;
|
||||
#else
|
||||
D3DVALUE dvK[4];
|
||||
#endif
|
||||
} D3DRMANIMATIONKEY;
|
||||
typedef D3DRMANIMATIONKEY *LPD3DRMANIMATIONKEY;
|
||||
|
||||
#define D3DRMANIMATION_ROTATEKEY 0x01
|
||||
#define D3DRMANIMATION_SCALEKEY 0x02
|
||||
#define D3DRMANIMATION_POSITIONKEY 0x03
|
||||
|
||||
typedef DWORD D3DRMMAPPING, D3DRMMAPPINGFLAG, *LPD3DRMMAPPING;
|
||||
static const D3DRMMAPPINGFLAG D3DRMMAP_WRAPU = 1;
|
||||
static const D3DRMMAPPINGFLAG D3DRMMAP_WRAPV = 2;
|
||||
static const D3DRMMAPPINGFLAG D3DRMMAP_PERSPCORRECT = 4;
|
||||
|
||||
typedef struct _D3DRMVERTEX {
|
||||
D3DVECTOR position;
|
||||
|
@ -231,6 +428,7 @@ typedef struct _D3DRMVERTEX {
|
|||
} D3DRMVERTEX, *LPD3DRMVERTEX;
|
||||
|
||||
typedef LONG D3DRMGROUPINDEX;
|
||||
static const D3DRMGROUPINDEX D3DRMGROUP_ALLGROUPS = -1;
|
||||
|
||||
void WINAPI D3DRMMatrixFromQuaternion(D3DRMMATRIX4D, LPD3DRMQUATERNION);
|
||||
|
||||
|
|
Loading…
Reference in New Issue