ReactOS 0.4.16-dev-297-gc569aee
d3drmdef.h File Reference
#include <stddef.h>
#include <d3dtypes.h>
Include dependency graph for d3drmdef.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _D3DRMVECTOR4D
 
struct  _D3DRMQUATERNION
 
struct  _D3DRMRAY
 
struct  _D3DRMBOX
 
struct  _D3DRMPALETTEENTRY
 
struct  _D3DRMIMAGE
 
struct  _D3DRMMATERIALOVERRIDE
 
struct  _D3DRMLOADRESOURCE
 
struct  _D3DRMLOADMEMORY
 
struct  _D3DRMPMESHLOADSTATUS
 
struct  _D3DRMANIMATIONKEY
 
struct  _D3DRMVERTEX
 

Macros

#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
 
#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
 
#define D3DRMWIREFRAME_CULL   1
 
#define D3DRMWIREFRAME_HIDDENLINE   2
 
#define D3DRMOPTIONS_LEFTHANDED   0x00000001
 
#define D3DRMOPTIONS_RIGHTHANDED   0x00000002
 
#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
 
#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
 
#define D3DRMANIMATION_OPEN   0x00000001
 
#define D3DRMANIMATION_CLOSED   0x00000002
 
#define D3DRMANIMATION_LINEARPOSITION   0x00000004
 
#define D3DRMANIMATION_SPLINEPOSITION   0x00000008
 
#define D3DRMANIMATION_SCALEANDROTATION   0x00000010
 
#define D3DRMANIMATION_POSITION   0x00000020
 
#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
 
#define D3DRMLOAD_FROMFILE   0x000L
 
#define D3DRMLOAD_FROMRESOURCE   0x001L
 
#define D3DRMLOAD_FROMMEMORY   0x002L
 
#define D3DRMLOAD_FROMSTREAM   0x004L
 
#define D3DRMLOAD_FROMURL   0x008L
 
#define D3DRMLOAD_BYNAME   0x010L
 
#define D3DRMLOAD_BYPOSITION   0x020L
 
#define D3DRMLOAD_BYGUID   0x040L
 
#define D3DRMLOAD_FIRST   0x080L
 
#define D3DRMLOAD_INSTANCEBYREFERENCE   0x100L
 
#define D3DRMLOAD_INSTANCEBYCOPYING   0x200L
 
#define D3DRMLOAD_ASYNCHRONOUS   0x400L
 
#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
 
#define D3DRMANIMATION_ROTATEKEY   0x01
 
#define D3DRMANIMATION_SCALEKEY   0x02
 
#define D3DRMANIMATION_POSITIONKEY   0x03
 
#define D3DRMVectorNormalise   D3DRMVectorNormalize
 

Typedefs

typedef struct _D3DRMVECTOR4D D3DRMVECTOR4D
 
typedef struct _D3DRMVECTOR4DLPD3DRMVECTOR4D
 
typedef D3DVALUE D3DRMMATRIX4D[4][4]
 
typedef struct _D3DRMQUATERNION D3DRMQUATERNION
 
typedef struct _D3DRMQUATERNIONLPD3DRMQUATERNION
 
typedef struct _D3DRMRAY D3DRMRAY
 
typedef struct _D3DRMRAYLPD3DRMRAY
 
typedef struct _D3DRMBOX D3DRMBOX
 
typedef struct _D3DRMBOXLPD3DRMBOX
 
typedef void(* D3DRMWRAPCALLBACK) (D3DVECTOR *vec, int *u, int *v, D3DVECTOR *a, D3DVECTOR *b, void *ctx)
 
typedef enum _D3DRMLIGHTTYPE D3DRMLIGHTTYPE
 
typedef enum _D3DRMLIGHTTYPELPD3DRMLIGHTTYPE
 
typedef enum _D3DRMSHADEMODE D3DRMSHADEMODE
 
typedef enum _D3DRMSHADEMODELPD3DRMSHADEMODE
 
typedef enum _D3DRMLIGHTMODE D3DRMLIGHTMODE
 
typedef enum _D3DRMLIGHTMODELPD3DRMLIGHTMODE
 
typedef enum _D3DRMFILLMODE D3DRMFILLMODE
 
typedef enum _D3DRMFILLMODELPD3DRMFILLMODE
 
typedef DWORD D3DRMRENDERQUALITY
 
typedef DWORDLPD3DRMRENDERQUALITY
 
typedef enum _D3DRMTEXTUREQUALITY D3DRMTEXTUREQUALITY
 
typedef enum _D3DRMTEXTUREQUALITYLPD3DRMTEXTUREQUALITY
 
typedef enum _D3DRMCOMBINETYPE D3DRMCOMBINETYPE
 
typedef enum _D3DRMCOMBINETYPELPD3DRMCOMBINETYPE
 
typedef D3DCOLORMODEL D3DRMCOLORMODEL
 
typedef D3DCOLORMODELLPD3DRMCOLORMODEL
 
typedef enum _D3DRMPALETTEFLAGS D3DRMPALETTEFLAGS
 
typedef enum _D3DRMPALETTEFLAGSLPD3DRMPALETTEFLAGS
 
typedef struct _D3DRMPALETTEENTRY D3DRMPALETTEENTRY
 
typedef struct _D3DRMPALETTEENTRYLPD3DRMPALETTEENTRY
 
typedef struct _D3DRMIMAGE D3DRMIMAGE
 
typedef struct _D3DRMIMAGELPD3DRMIMAGE
 
typedef enum _D3DRMWRAPTYPE D3DRMWRAPTYPE
 
typedef enum _D3DRMWRAPTYPELPD3DRMWRAPTYPE
 
typedef enum _D3DRMPROJECTIONTYPE D3DRMPROJECTIONTYPE
 
typedef enum _D3DRMPROJECTIONTYPELPD3DRMPROJECTIONTYPE
 
typedef enum _D3DRMXOFFORMAT D3DRMXOFFORMAT
 
typedef enum _D3DRMXOFFORMATLPD3DRMXOFFORMAT
 
typedef DWORD D3DRMSAVEOPTIONS
 
typedef enum _D3DRMCOLORSOURCE D3DRMCOLORSOURCE
 
typedef enum _D3DRMCOLORSOURCELPD3DRMCOLORSOURCE
 
typedef enum _D3DRMFRAMECONSTRAINT D3DRMFRAMECONSTRAINT
 
typedef enum _D3DRMFRAMECONSTRAINTLPD3DRMFRAMECONSTRAINT
 
typedef enum _D3DRMMATERIALMODE D3DRMMATERIALMODE
 
typedef enum _D3DRMMATERIALMODELPD3DRMMATERIALMODE
 
typedef enum _D3DRMFOGMODE D3DRMFOGMODE
 
typedef enum _D3DRMFOGMODELPD3DRMFOGMODE
 
typedef enum _D3DRMZBUFFERMODE D3DRMZBUFFERMODE
 
typedef enum _D3DRMZBUFFERMODELPD3DRMZBUFFERMODE
 
typedef enum _D3DRMSORTMODE D3DRMSORTMODE
 
typedef enum _D3DRMSORTMODELPD3DRMSORTMODE
 
typedef struct _D3DRMMATERIALOVERRIDE D3DRMMATERIALOVERRIDE
 
typedef struct _D3DRMMATERIALOVERRIDELPD3DRMMATERIALOVERRIDE
 
typedef DWORD D3DRMANIMATIONOPTIONS
 
typedef DWORD D3DRMINTERPOLATIONOPTIONS
 
typedef DWORD D3DRMLOADOPTIONS
 
typedef struct _D3DRMLOADRESOURCE D3DRMLOADRESOURCE
 
typedef struct _D3DRMLOADRESOURCELPD3DRMLOADRESOURCE
 
typedef struct _D3DRMLOADMEMORY D3DRMLOADMEMORY
 
typedef struct _D3DRMLOADMEMORYLPD3DRMLOADMEMORY
 
typedef struct _D3DRMPMESHLOADSTATUS D3DRMPMESHLOADSTATUS
 
typedef struct _D3DRMPMESHLOADSTATUSLPD3DRMPMESHLOADSTATUS
 
typedef enum _D3DRMUSERVISUALREASON D3DRMUSERVISUALREASON
 
typedef enum _D3DRMUSERVISUALREASONLPD3DRMUSERVISUALREASON
 
typedef struct _D3DRMANIMATIONKEY D3DRMANIMATIONKEY
 
typedef D3DRMANIMATIONKEYLPD3DRMANIMATIONKEY
 
typedef DWORD D3DRMMAPPING
 
typedef DWORD D3DRMMAPPINGFLAG
 
typedef DWORDLPD3DRMMAPPING
 
typedef struct _D3DRMVERTEX D3DRMVERTEX
 
typedef struct _D3DRMVERTEXLPD3DRMVERTEX
 
typedef LONG D3DRMGROUPINDEX
 

Enumerations

enum  _D3DRMLIGHTTYPE {
  D3DRMLIGHT_AMBIENT , D3DRMLIGHT_POINT , D3DRMLIGHT_SPOT , D3DRMLIGHT_DIRECTIONAL ,
  D3DRMLIGHT_PARALLELPOINT
}
 
enum  _D3DRMSHADEMODE {
  D3DRMSHADE_FLAT = 0 , D3DRMSHADE_GOURAUD = 1 , D3DRMSHADE_PHONG = 2 , D3DRMSHADE_MASK = 7 ,
  D3DRMSHADE_MAX = 8
}
 
enum  _D3DRMLIGHTMODE { D3DRMLIGHT_OFF = 0 * D3DRMSHADE_MAX , D3DRMLIGHT_ON = 1 * D3DRMSHADE_MAX , D3DRMLIGHT_MASK = 7 * D3DRMSHADE_MAX , D3DRMLIGHT_MAX = 8 * D3DRMSHADE_MAX }
 
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
}
 
enum  _D3DRMTEXTUREQUALITY {
  D3DRMTEXTURE_NEAREST , D3DRMTEXTURE_LINEAR , D3DRMTEXTURE_MIPNEAREST , D3DRMTEXTURE_MIPLINEAR ,
  D3DRMTEXTURE_LINEARMIPNEAREST , D3DRMTEXTURE_LINEARMIPLINEAR
}
 
enum  _D3DRMCOMBINETYPE { D3DRMCOMBINE_REPLACE , D3DRMCOMBINE_BEFORE , D3DRMCOMBINE_AFTER }
 
enum  _D3DRMPALETTEFLAGS { D3DRMPALETTE_FREE , D3DRMPALETTE_READONLY , D3DRMPALETTE_RESERVED }
 
enum  _D3DRMWRAPTYPE {
  D3DRMWRAP_FLAT , D3DRMWRAP_CYLINDER , D3DRMWRAP_SPHERE , D3DRMWRAP_CHROME ,
  D3DRMWRAP_SHEET , D3DRMWRAP_BOX
}
 
enum  _D3DRMPROJECTIONTYPE { D3DRMPROJECT_PERSPECTIVE , D3DRMPROJECT_ORTHOGRAPHIC , D3DRMPROJECT_RIGHTHANDPERSPECTIVE , D3DRMPROJECT_RIGHTHANDORTHOGRAPHIC }
 
enum  _D3DRMXOFFORMAT { D3DRMXOF_BINARY , D3DRMXOF_COMPRESSED , D3DRMXOF_TEXT }
 
enum  _D3DRMCOLORSOURCE { D3DRMCOLOR_FROMFACE , D3DRMCOLOR_FROMVERTEX }
 
enum  _D3DRMFRAMECONSTRAINT { D3DRMCONSTRAIN_Z , D3DRMCONSTRAIN_Y , D3DRMCONSTRAIN_X }
 
enum  _D3DRMMATERIALMODE { D3DRMMATERIAL_FROMMESH , D3DRMMATERIAL_FROMPARENT , D3DRMMATERIAL_FROMFRAME }
 
enum  _D3DRMFOGMODE { D3DRMFOG_LINEAR , D3DRMFOG_EXPONENTIAL , D3DRMFOG_EXPONENTIALSQUARED }
 
enum  _D3DRMZBUFFERMODE { D3DRMZBUFFER_FROMPARENT , D3DRMZBUFFER_ENABLE , D3DRMZBUFFER_DISABLE }
 
enum  _D3DRMSORTMODE { D3DRMSORT_FROMPARENT , D3DRMSORT_NONE , D3DRMSORT_FRONTTOBACK , D3DRMSORT_BACKTOFRONT }
 
enum  _D3DRMUSERVISUALREASON { D3DRMUSERVISUAL_CANSEE , D3DRMUSERVISUAL_RENDER }
 

Functions

void WINAPI D3DRMMatrixFromQuaternion (D3DRMMATRIX4D m, D3DRMQUATERNION *q)
 
D3DRMQUATERNION *WINAPI D3DRMQuaternionFromRotation (D3DRMQUATERNION *x, D3DVECTOR *axis, D3DVALUE theta)
 
D3DRMQUATERNION *WINAPI D3DRMQuaternionMultiply (D3DRMQUATERNION *ret, D3DRMQUATERNION *x, D3DRMQUATERNION *y)
 
D3DRMQUATERNION *WINAPI D3DRMQuaternionSlerp (D3DRMQUATERNION *ret, D3DRMQUATERNION *x, D3DRMQUATERNION *y, D3DVALUE alpha)
 
D3DVECTOR *WINAPI D3DRMVectorAdd (D3DVECTOR *ret, D3DVECTOR *x, D3DVECTOR *y)
 
D3DVECTOR *WINAPI D3DRMVectorCrossProduct (D3DVECTOR *ret, D3DVECTOR *x, D3DVECTOR *y)
 
D3DVALUE WINAPI D3DRMVectorDotProduct (D3DVECTOR *x, D3DVECTOR *y)
 
D3DVECTOR *WINAPI D3DRMVectorNormalize (D3DVECTOR *x)
 
D3DVALUE WINAPI D3DRMVectorModulus (D3DVECTOR *x)
 
D3DVECTOR *WINAPI D3DRMVectorRandom (D3DVECTOR *ret)
 
D3DVECTOR *WINAPI D3DRMVectorRotate (D3DVECTOR *ret, D3DVECTOR *x, D3DVECTOR *axis, D3DVALUE theta)
 
D3DVECTOR *WINAPI D3DRMVectorReflect (D3DVECTOR *ret, D3DVECTOR *ray, D3DVECTOR *normal)
 
D3DVECTOR *WINAPI D3DRMVectorScale (D3DVECTOR *ret, D3DVECTOR *x, D3DVALUE scale)
 
D3DVECTOR *WINAPI D3DRMVectorSubtract (D3DVECTOR *ret, D3DVECTOR *x, D3DVECTOR *y)
 
D3DCOLOR WINAPI D3DRMCreateColorRGB (D3DVALUE, D3DVALUE, D3DVALUE)
 
D3DCOLOR WINAPI D3DRMCreateColorRGBA (D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE)
 
D3DVALUE WINAPI D3DRMColorGetAlpha (D3DCOLOR)
 
D3DVALUE WINAPI D3DRMColorGetBlue (D3DCOLOR)
 
D3DVALUE WINAPI D3DRMColorGetGreen (D3DCOLOR)
 
D3DVALUE WINAPI D3DRMColorGetRed (D3DCOLOR)
 

Variables

static const D3DRMMAPPINGFLAG D3DRMMAP_WRAPU = 1
 
static const D3DRMMAPPINGFLAG D3DRMMAP_WRAPV = 2
 
static const D3DRMMAPPINGFLAG D3DRMMAP_PERSPCORRECT = 4
 
static const D3DRMGROUPINDEX D3DRMGROUP_ALLGROUPS = -1
 

Macro Definition Documentation

◆ D3DRMADDFACES_VERTICESONLY

#define D3DRMADDFACES_VERTICESONLY   1

Definition at line 282 of file d3drmdef.h.

◆ D3DRMADDMESHBUILDER_DONTCOPYAPPDATA

#define D3DRMADDMESHBUILDER_DONTCOPYAPPDATA   1

Definition at line 293 of file d3drmdef.h.

◆ D3DRMADDMESHBUILDER_FLATTENSUBMESHES

#define D3DRMADDMESHBUILDER_FLATTENSUBMESHES   2

Definition at line 294 of file d3drmdef.h.

◆ D3DRMADDMESHBUILDER_NOSUBMESHES

#define D3DRMADDMESHBUILDER_NOSUBMESHES   4

Definition at line 295 of file d3drmdef.h.

◆ D3DRMANIMATION_CLOSED

#define D3DRMANIMATION_CLOSED   0x00000002

Definition at line 324 of file d3drmdef.h.

◆ D3DRMANIMATION_LINEARPOSITION

#define D3DRMANIMATION_LINEARPOSITION   0x00000004

Definition at line 325 of file d3drmdef.h.

◆ D3DRMANIMATION_OPEN

#define D3DRMANIMATION_OPEN   0x00000001

Definition at line 323 of file d3drmdef.h.

◆ D3DRMANIMATION_POSITION

#define D3DRMANIMATION_POSITION   0x00000020

Definition at line 328 of file d3drmdef.h.

◆ D3DRMANIMATION_POSITIONKEY

#define D3DRMANIMATION_POSITIONKEY   0x03

Definition at line 416 of file d3drmdef.h.

◆ D3DRMANIMATION_ROTATEKEY

#define D3DRMANIMATION_ROTATEKEY   0x01

Definition at line 414 of file d3drmdef.h.

◆ D3DRMANIMATION_SCALEANDROTATION

#define D3DRMANIMATION_SCALEANDROTATION   0x00000010

Definition at line 327 of file d3drmdef.h.

◆ D3DRMANIMATION_SCALEKEY

#define D3DRMANIMATION_SCALEKEY   0x02

Definition at line 415 of file d3drmdef.h.

◆ D3DRMANIMATION_SPLINEPOSITION

#define D3DRMANIMATION_SPLINEPOSITION   0x00000008

Definition at line 326 of file d3drmdef.h.

◆ D3DRMCALLBACK_POSTORDER

#define D3DRMCALLBACK_POSTORDER   1

Definition at line 274 of file d3drmdef.h.

◆ D3DRMCALLBACK_PREORDER

#define D3DRMCALLBACK_PREORDER   0

Definition at line 273 of file d3drmdef.h.

◆ D3DRMCLEAR_ALL

Definition at line 313 of file d3drmdef.h.

◆ D3DRMCLEAR_DIRTYRECTS

#define D3DRMCLEAR_DIRTYRECTS   0x00000004

Definition at line 312 of file d3drmdef.h.

◆ D3DRMCLEAR_TARGET

#define D3DRMCLEAR_TARGET   0x00000001

Definition at line 310 of file d3drmdef.h.

◆ D3DRMCLEAR_ZBUFFER

#define D3DRMCLEAR_ZBUFFER   0x00000002

Definition at line 311 of file d3drmdef.h.

◆ D3DRMDEVICE_NOZBUFFER

#define D3DRMDEVICE_NOZBUFFER   0x00000001

Definition at line 271 of file d3drmdef.h.

◆ D3DRMFOGMETHOD_ANY

#define D3DRMFOGMETHOD_ANY   0x00000004

Definition at line 317 of file d3drmdef.h.

◆ D3DRMFOGMETHOD_TABLE

#define D3DRMFOGMETHOD_TABLE   0x00000002

Definition at line 316 of file d3drmdef.h.

◆ D3DRMFOGMETHOD_VERTEX

#define D3DRMFOGMETHOD_VERTEX   0x00000001

Definition at line 315 of file d3drmdef.h.

◆ D3DRMFPTF_ALPHA

#define D3DRMFPTF_ALPHA   0x00000001

Definition at line 260 of file d3drmdef.h.

◆ D3DRMFPTF_NOALPHA

#define D3DRMFPTF_NOALPHA   0x00000002

Definition at line 261 of file d3drmdef.h.

◆ D3DRMFPTF_NOTPALETTIZED

#define D3DRMFPTF_NOTPALETTIZED   0x00000008

Definition at line 263 of file d3drmdef.h.

◆ D3DRMFPTF_PALETTIZED

#define D3DRMFPTF_PALETTIZED   0x00000004

Definition at line 262 of file d3drmdef.h.

◆ D3DRMFRAME_PICKENABLE

#define D3DRMFRAME_PICKENABLE   0x00000002

Definition at line 320 of file d3drmdef.h.

◆ D3DRMFRAME_RENDERENABLE

#define D3DRMFRAME_RENDERENABLE   0x00000001

Definition at line 319 of file d3drmdef.h.

◆ D3DRMFVF_COLOR

#define D3DRMFVF_COLOR   0x00000004

Definition at line 303 of file d3drmdef.h.

◆ D3DRMFVF_NORMAL

#define D3DRMFVF_NORMAL   0x00000002

Definition at line 302 of file d3drmdef.h.

◆ D3DRMFVF_TEXTURECOORDS

#define D3DRMFVF_TEXTURECOORDS   0x00000008

Definition at line 304 of file d3drmdef.h.

◆ D3DRMFVF_TYPE

#define D3DRMFVF_TYPE   0x00000001

Definition at line 301 of file d3drmdef.h.

◆ D3DRMGENERATENORMALS_PRECOMPACT

#define D3DRMGENERATENORMALS_PRECOMPACT   1

Definition at line 284 of file d3drmdef.h.

◆ D3DRMGENERATENORMALS_USECREASEANGLE

#define D3DRMGENERATENORMALS_USECREASEANGLE   2

Definition at line 285 of file d3drmdef.h.

◆ D3DRMINTERPOLATION_CLOSED

#define D3DRMINTERPOLATION_CLOSED   0x0002

Definition at line 332 of file d3drmdef.h.

◆ D3DRMINTERPOLATION_LINEAR

#define D3DRMINTERPOLATION_LINEAR   0x0004

Definition at line 334 of file d3drmdef.h.

◆ D3DRMINTERPOLATION_NEAREST

#define D3DRMINTERPOLATION_NEAREST   0x0100

Definition at line 333 of file d3drmdef.h.

◆ D3DRMINTERPOLATION_OPEN

#define D3DRMINTERPOLATION_OPEN   0x0001

Definition at line 331 of file d3drmdef.h.

◆ D3DRMINTERPOLATION_SLERPNORMALS

#define D3DRMINTERPOLATION_SLERPNORMALS   0x0080

Definition at line 337 of file d3drmdef.h.

◆ D3DRMINTERPOLATION_SPLINE

#define D3DRMINTERPOLATION_SPLINE   0x0008

Definition at line 335 of file d3drmdef.h.

◆ D3DRMINTERPOLATION_VERTEXCOLOR

#define D3DRMINTERPOLATION_VERTEXCOLOR   0x0040

Definition at line 336 of file d3drmdef.h.

◆ D3DRMLOAD_ASYNCHRONOUS

#define D3DRMLOAD_ASYNCHRONOUS   0x400L

Definition at line 355 of file d3drmdef.h.

◆ D3DRMLOAD_BYGUID

#define D3DRMLOAD_BYGUID   0x040L

Definition at line 349 of file d3drmdef.h.

◆ D3DRMLOAD_BYNAME

#define D3DRMLOAD_BYNAME   0x010L

Definition at line 347 of file d3drmdef.h.

◆ D3DRMLOAD_BYPOSITION

#define D3DRMLOAD_BYPOSITION   0x020L

Definition at line 348 of file d3drmdef.h.

◆ D3DRMLOAD_FIRST

#define D3DRMLOAD_FIRST   0x080L

Definition at line 350 of file d3drmdef.h.

◆ D3DRMLOAD_FROMFILE

#define D3DRMLOAD_FROMFILE   0x000L

Definition at line 341 of file d3drmdef.h.

◆ D3DRMLOAD_FROMMEMORY

#define D3DRMLOAD_FROMMEMORY   0x002L

Definition at line 343 of file d3drmdef.h.

◆ D3DRMLOAD_FROMRESOURCE

#define D3DRMLOAD_FROMRESOURCE   0x001L

Definition at line 342 of file d3drmdef.h.

◆ D3DRMLOAD_FROMSTREAM

#define D3DRMLOAD_FROMSTREAM   0x004L

Definition at line 344 of file d3drmdef.h.

◆ D3DRMLOAD_FROMURL

#define D3DRMLOAD_FROMURL   0x008L

Definition at line 345 of file d3drmdef.h.

◆ D3DRMLOAD_INSTANCEBYCOPYING

#define D3DRMLOAD_INSTANCEBYCOPYING   0x200L

Definition at line 353 of file d3drmdef.h.

◆ D3DRMLOAD_INSTANCEBYREFERENCE

#define D3DRMLOAD_INSTANCEBYREFERENCE   0x100L

Definition at line 352 of file d3drmdef.h.

◆ D3DRMMATERIALOVERRIDE_ALL

#define D3DRMMATERIALOVERRIDE_ALL   0x000000FF

Definition at line 258 of file d3drmdef.h.

◆ D3DRMMATERIALOVERRIDE_AMBIENT

#define D3DRMMATERIALOVERRIDE_AMBIENT   0x00000004

Definition at line 252 of file d3drmdef.h.

◆ D3DRMMATERIALOVERRIDE_DIFFUSE

#define D3DRMMATERIALOVERRIDE_DIFFUSE   0x00000003

Definition at line 251 of file d3drmdef.h.

◆ D3DRMMATERIALOVERRIDE_DIFFUSE_ALPHAMULTIPLY

#define D3DRMMATERIALOVERRIDE_DIFFUSE_ALPHAMULTIPLY   0x00000080

Definition at line 257 of file d3drmdef.h.

◆ D3DRMMATERIALOVERRIDE_DIFFUSE_ALPHAONLY

#define D3DRMMATERIALOVERRIDE_DIFFUSE_ALPHAONLY   0x00000001

Definition at line 249 of file d3drmdef.h.

◆ D3DRMMATERIALOVERRIDE_DIFFUSE_RGBONLY

#define D3DRMMATERIALOVERRIDE_DIFFUSE_RGBONLY   0x00000002

Definition at line 250 of file d3drmdef.h.

◆ D3DRMMATERIALOVERRIDE_EMISSIVE

#define D3DRMMATERIALOVERRIDE_EMISSIVE   0x00000008

Definition at line 253 of file d3drmdef.h.

◆ D3DRMMATERIALOVERRIDE_POWER

#define D3DRMMATERIALOVERRIDE_POWER   0x00000020

Definition at line 255 of file d3drmdef.h.

◆ D3DRMMATERIALOVERRIDE_SPECULAR

#define D3DRMMATERIALOVERRIDE_SPECULAR   0x00000010

Definition at line 254 of file d3drmdef.h.

◆ D3DRMMATERIALOVERRIDE_TEXTURE

#define D3DRMMATERIALOVERRIDE_TEXTURE   0x00000040

Definition at line 256 of file d3drmdef.h.

◆ D3DRMMESHBUILDER_DIRECTPARENT

#define D3DRMMESHBUILDER_DIRECTPARENT   1

Definition at line 287 of file d3drmdef.h.

◆ D3DRMMESHBUILDER_PICKENABLE

#define D3DRMMESHBUILDER_PICKENABLE   0x00000002

Definition at line 291 of file d3drmdef.h.

◆ D3DRMMESHBUILDER_RENDERENABLE

#define D3DRMMESHBUILDER_RENDERENABLE   0x00000001

Definition at line 290 of file d3drmdef.h.

◆ D3DRMMESHBUILDER_ROOTMESH

#define D3DRMMESHBUILDER_ROOTMESH   2

Definition at line 288 of file d3drmdef.h.

◆ D3DRMMESHBUILDERAGE_GEOMETRY

#define D3DRMMESHBUILDERAGE_GEOMETRY   0x00000001

Definition at line 297 of file d3drmdef.h.

◆ D3DRMMESHBUILDERAGE_MATERIALS

#define D3DRMMESHBUILDERAGE_MATERIALS   0x00000002

Definition at line 298 of file d3drmdef.h.

◆ D3DRMMESHBUILDERAGE_TEXTURES

#define D3DRMMESHBUILDERAGE_TEXTURES   0x00000004

Definition at line 299 of file d3drmdef.h.

◆ D3DRMOPTIONS_LEFTHANDED

#define D3DRMOPTIONS_LEFTHANDED   0x00000001

Definition at line 184 of file d3drmdef.h.

◆ D3DRMOPTIONS_RIGHTHANDED

#define D3DRMOPTIONS_RIGHTHANDED   0x00000002

Definition at line 185 of file d3drmdef.h.

◆ D3DRMPMESHEVENT_BASEMESH

#define D3DRMPMESHEVENT_BASEMESH   0x01

Definition at line 376 of file d3drmdef.h.

◆ D3DRMPMESHEVENT_COMPLETE

#define D3DRMPMESHEVENT_COMPLETE   0x02

Definition at line 377 of file d3drmdef.h.

◆ D3DRMPMESHSTATUS_BASEMESHCOMPLETE

#define D3DRMPMESHSTATUS_BASEMESHCOMPLETE   0x04

Definition at line 372 of file d3drmdef.h.

◆ D3DRMPMESHSTATUS_COMPLETE

#define D3DRMPMESHSTATUS_COMPLETE   0x08

Definition at line 373 of file d3drmdef.h.

◆ D3DRMPMESHSTATUS_INTERRUPTED

#define D3DRMPMESHSTATUS_INTERRUPTED   0x02

Definition at line 371 of file d3drmdef.h.

◆ D3DRMPMESHSTATUS_RENDERABLE

#define D3DRMPMESHSTATUS_RENDERABLE   0x10

Definition at line 374 of file d3drmdef.h.

◆ D3DRMPMESHSTATUS_VALID

#define D3DRMPMESHSTATUS_VALID   0x01

Definition at line 370 of file d3drmdef.h.

◆ D3DRMRAYPICK_IGNOREFURTHERPRIMITIVES

#define D3DRMRAYPICK_IGNOREFURTHERPRIMITIVES   0x02

Definition at line 277 of file d3drmdef.h.

◆ D3DRMRAYPICK_INTERPOLATECOLOR

#define D3DRMRAYPICK_INTERPOLATECOLOR   0x08

Definition at line 279 of file d3drmdef.h.

◆ D3DRMRAYPICK_INTERPOLATENORMAL

#define D3DRMRAYPICK_INTERPOLATENORMAL   0x10

Definition at line 280 of file d3drmdef.h.

◆ D3DRMRAYPICK_INTERPOLATEUV

#define D3DRMRAYPICK_INTERPOLATEUV   0x04

Definition at line 278 of file d3drmdef.h.

◆ D3DRMRAYPICK_ONLYBOUNDINGBOXES

#define D3DRMRAYPICK_ONLYBOUNDINGBOXES   0x01

Definition at line 276 of file d3drmdef.h.

◆ D3DRMRENDER_FLAT

Definition at line 93 of file d3drmdef.h.

◆ D3DRMRENDER_GOURAUD

Definition at line 94 of file d3drmdef.h.

◆ D3DRMRENDER_PHONG

Definition at line 95 of file d3drmdef.h.

◆ D3DRMRENDER_UNLITFLAT

#define D3DRMRENDER_UNLITFLAT   (D3DRMSHADE_FLAT+D3DRMLIGHT_OFF+D3DRMFILL_SOLID)

Definition at line 92 of file d3drmdef.h.

◆ D3DRMRENDER_WIREFRAME

Definition at line 91 of file d3drmdef.h.

◆ D3DRMRENDERMODE_BLENDEDTRANSPARENCY

#define D3DRMRENDERMODE_BLENDEDTRANSPARENCY   1

Definition at line 97 of file d3drmdef.h.

◆ D3DRMRENDERMODE_DISABLESORTEDALPHAZWRITE

#define D3DRMRENDERMODE_DISABLESORTEDALPHAZWRITE   32

Definition at line 101 of file d3drmdef.h.

◆ D3DRMRENDERMODE_LIGHTINMODELSPACE

#define D3DRMRENDERMODE_LIGHTINMODELSPACE   8

Definition at line 99 of file d3drmdef.h.

◆ D3DRMRENDERMODE_SORTEDTRANSPARENCY

#define D3DRMRENDERMODE_SORTEDTRANSPARENCY   2

Definition at line 98 of file d3drmdef.h.

◆ D3DRMRENDERMODE_VIEWDEPENDENTSPECULAR

#define D3DRMRENDERMODE_VIEWDEPENDENTSPECULAR   16

Definition at line 100 of file d3drmdef.h.

◆ D3DRMSHADOW_TRUEALPHA

#define D3DRMSHADOW_TRUEALPHA   0x00000001

Definition at line 122 of file d3drmdef.h.

◆ D3DRMSTATECHANGE_LIGHT

#define D3DRMSTATECHANGE_LIGHT   0x000000040

Definition at line 269 of file d3drmdef.h.

◆ D3DRMSTATECHANGE_NONVOLATILE

#define D3DRMSTATECHANGE_NONVOLATILE   0x000000004

Definition at line 267 of file d3drmdef.h.

◆ D3DRMSTATECHANGE_RENDER

#define D3DRMSTATECHANGE_RENDER   0x000000020

Definition at line 268 of file d3drmdef.h.

◆ D3DRMSTATECHANGE_UPDATEONLY

#define D3DRMSTATECHANGE_UPDATEONLY   0x000000001

Definition at line 265 of file d3drmdef.h.

◆ D3DRMSTATECHANGE_VOLATILE

#define D3DRMSTATECHANGE_VOLATILE   0x000000002

Definition at line 266 of file d3drmdef.h.

◆ D3DRMTEXTURE_CHANGEDPALETTE

#define D3DRMTEXTURE_CHANGEDPALETTE   0x00000080

Definition at line 119 of file d3drmdef.h.

◆ D3DRMTEXTURE_CHANGEDPIXELS

#define D3DRMTEXTURE_CHANGEDPIXELS   0x00000040

Definition at line 118 of file d3drmdef.h.

◆ D3DRMTEXTURE_DOWNSAMPLEBILINEAR

#define D3DRMTEXTURE_DOWNSAMPLEBILINEAR   0x00000008

Definition at line 115 of file d3drmdef.h.

◆ D3DRMTEXTURE_DOWNSAMPLENONE

#define D3DRMTEXTURE_DOWNSAMPLENONE   0x00000020

Definition at line 117 of file d3drmdef.h.

◆ D3DRMTEXTURE_DOWNSAMPLEPOINT

#define D3DRMTEXTURE_DOWNSAMPLEPOINT   0x00000004

Definition at line 114 of file d3drmdef.h.

◆ D3DRMTEXTURE_DOWNSAMPLEREDUCEDEPTH

#define D3DRMTEXTURE_DOWNSAMPLEREDUCEDEPTH   0x00000010

Definition at line 116 of file d3drmdef.h.

◆ D3DRMTEXTURE_FORCERESIDENT

#define D3DRMTEXTURE_FORCERESIDENT   0x00000001

Definition at line 112 of file d3drmdef.h.

◆ D3DRMTEXTURE_INVALIDATEONLY

#define D3DRMTEXTURE_INVALIDATEONLY   0x00000100

Definition at line 120 of file d3drmdef.h.

◆ D3DRMTEXTURE_STATIC

#define D3DRMTEXTURE_STATIC   0x00000002

Definition at line 113 of file d3drmdef.h.

◆ D3DRMVectorNormalise

#define D3DRMVectorNormalise   D3DRMVectorNormalize

Definition at line 446 of file d3drmdef.h.

◆ D3DRMVERTEX_FAN

#define D3DRMVERTEX_FAN   0x00000002

Definition at line 307 of file d3drmdef.h.

◆ D3DRMVERTEX_LIST

#define D3DRMVERTEX_LIST   0x00000004

Definition at line 308 of file d3drmdef.h.

◆ D3DRMVERTEX_STRIP

#define D3DRMVERTEX_STRIP   0x00000001

Definition at line 306 of file d3drmdef.h.

◆ D3DRMWIREFRAME_CULL

#define D3DRMWIREFRAME_CULL   1

Definition at line 173 of file d3drmdef.h.

◆ D3DRMWIREFRAME_HIDDENLINE

#define D3DRMWIREFRAME_HIDDENLINE   2

Definition at line 174 of file d3drmdef.h.

◆ D3DRMXOFSAVE_ALL

#define D3DRMXOFSAVE_ALL   15

Definition at line 198 of file d3drmdef.h.

◆ D3DRMXOFSAVE_MATERIALS

#define D3DRMXOFSAVE_MATERIALS   4

Definition at line 196 of file d3drmdef.h.

◆ D3DRMXOFSAVE_NORMALS

#define D3DRMXOFSAVE_NORMALS   1

Definition at line 194 of file d3drmdef.h.

◆ D3DRMXOFSAVE_TEMPLATES

#define D3DRMXOFSAVE_TEMPLATES   16

Definition at line 199 of file d3drmdef.h.

◆ D3DRMXOFSAVE_TEXTURECOORDINATES

#define D3DRMXOFSAVE_TEXTURECOORDINATES   2

Definition at line 195 of file d3drmdef.h.

◆ D3DRMXOFSAVE_TEXTURENAMES

#define D3DRMXOFSAVE_TEXTURENAMES   8

Definition at line 197 of file d3drmdef.h.

◆ D3DRMXOFSAVE_TEXTURETOPOLOGY

#define D3DRMXOFSAVE_TEXTURETOPOLOGY   32

Definition at line 200 of file d3drmdef.h.

Typedef Documentation

◆ D3DRMANIMATIONKEY

◆ D3DRMANIMATIONOPTIONS

Definition at line 322 of file d3drmdef.h.

◆ D3DRMBOX

◆ D3DRMCOLORMODEL

Definition at line 130 of file d3drmdef.h.

◆ D3DRMCOLORSOURCE

◆ D3DRMCOMBINETYPE

◆ D3DRMFILLMODE

◆ D3DRMFOGMODE

◆ D3DRMFRAMECONSTRAINT

◆ D3DRMGROUPINDEX

Definition at line 431 of file d3drmdef.h.

◆ D3DRMIMAGE

◆ D3DRMINTERPOLATIONOPTIONS

Definition at line 330 of file d3drmdef.h.

◆ D3DRMLIGHTMODE

◆ D3DRMLIGHTTYPE

◆ D3DRMLOADMEMORY

◆ D3DRMLOADOPTIONS

Definition at line 339 of file d3drmdef.h.

◆ D3DRMLOADRESOURCE

◆ D3DRMMAPPING

Definition at line 418 of file d3drmdef.h.

◆ D3DRMMAPPINGFLAG

Definition at line 418 of file d3drmdef.h.

◆ D3DRMMATERIALMODE

◆ D3DRMMATERIALOVERRIDE

◆ D3DRMMATRIX4D

typedef D3DVALUE D3DRMMATRIX4D[4][4]

Definition at line 39 of file d3drmdef.h.

◆ D3DRMPALETTEENTRY

◆ D3DRMPALETTEFLAGS

◆ D3DRMPMESHLOADSTATUS

◆ D3DRMPROJECTIONTYPE

◆ D3DRMQUATERNION

◆ D3DRMRAY

◆ D3DRMRENDERQUALITY

Definition at line 89 of file d3drmdef.h.

◆ D3DRMSAVEOPTIONS

Definition at line 193 of file d3drmdef.h.

◆ D3DRMSHADEMODE

◆ D3DRMSORTMODE

◆ D3DRMTEXTUREQUALITY

◆ D3DRMUSERVISUALREASON

◆ D3DRMVECTOR4D

◆ D3DRMVERTEX

◆ D3DRMWRAPCALLBACK

typedef void(* D3DRMWRAPCALLBACK) (D3DVECTOR *vec, int *u, int *v, D3DVECTOR *a, D3DVECTOR *b, void *ctx)

Definition at line 56 of file d3drmdef.h.

◆ D3DRMWRAPTYPE

◆ D3DRMXOFFORMAT

◆ D3DRMZBUFFERMODE

◆ LPD3DRMANIMATIONKEY

Definition at line 412 of file d3drmdef.h.

◆ LPD3DRMBOX

◆ LPD3DRMCOLORMODEL

Definition at line 130 of file d3drmdef.h.

◆ LPD3DRMCOLORSOURCE

◆ LPD3DRMCOMBINETYPE

◆ LPD3DRMFILLMODE

◆ LPD3DRMFOGMODE

◆ LPD3DRMFRAMECONSTRAINT

◆ LPD3DRMIMAGE

◆ LPD3DRMLIGHTMODE

◆ LPD3DRMLIGHTTYPE

◆ LPD3DRMLOADMEMORY

◆ LPD3DRMLOADRESOURCE

◆ LPD3DRMMAPPING

typedef DWORD * LPD3DRMMAPPING

Definition at line 418 of file d3drmdef.h.

◆ LPD3DRMMATERIALMODE

◆ LPD3DRMMATERIALOVERRIDE

◆ LPD3DRMPALETTEENTRY

◆ LPD3DRMPALETTEFLAGS

◆ LPD3DRMPMESHLOADSTATUS

◆ LPD3DRMPROJECTIONTYPE

◆ LPD3DRMQUATERNION

◆ LPD3DRMRAY

◆ LPD3DRMRENDERQUALITY

Definition at line 89 of file d3drmdef.h.

◆ LPD3DRMSHADEMODE

◆ LPD3DRMSORTMODE

◆ LPD3DRMTEXTUREQUALITY

◆ LPD3DRMUSERVISUALREASON

◆ LPD3DRMVECTOR4D

◆ LPD3DRMVERTEX

◆ LPD3DRMWRAPTYPE

◆ LPD3DRMXOFFORMAT

◆ LPD3DRMZBUFFERMODE

Enumeration Type Documentation

◆ _D3DRMCOLORSOURCE

Enumerator
D3DRMCOLOR_FROMFACE 
D3DRMCOLOR_FROMVERTEX 

Definition at line 202 of file d3drmdef.h.

202 {
enum _D3DRMCOLORSOURCE * LPD3DRMCOLORSOURCE
@ D3DRMCOLOR_FROMVERTEX
Definition: d3drmdef.h:204
@ D3DRMCOLOR_FROMFACE
Definition: d3drmdef.h:203
enum _D3DRMCOLORSOURCE D3DRMCOLORSOURCE

◆ _D3DRMCOMBINETYPE

Enumerator
D3DRMCOMBINE_REPLACE 
D3DRMCOMBINE_BEFORE 
D3DRMCOMBINE_AFTER 

Definition at line 124 of file d3drmdef.h.

124 {
@ D3DRMCOMBINE_BEFORE
Definition: d3drmdef.h:126
@ D3DRMCOMBINE_AFTER
Definition: d3drmdef.h:127
@ D3DRMCOMBINE_REPLACE
Definition: d3drmdef.h:125
enum _D3DRMCOMBINETYPE D3DRMCOMBINETYPE
enum _D3DRMCOMBINETYPE * LPD3DRMCOMBINETYPE

◆ _D3DRMFILLMODE

Enumerator
D3DRMFILL_POINTS 
D3DRMFILL_WIREFRAME 
D3DRMFILL_SOLID 
D3DRMFILL_MASK 
D3DRMFILL_MAX 

Definition at line 81 of file d3drmdef.h.

81 {
@ D3DRMFILL_MAX
Definition: d3drmdef.h:86
@ D3DRMFILL_SOLID
Definition: d3drmdef.h:84
@ D3DRMFILL_WIREFRAME
Definition: d3drmdef.h:83
@ D3DRMFILL_MASK
Definition: d3drmdef.h:85
@ D3DRMFILL_POINTS
Definition: d3drmdef.h:82
enum _D3DRMFILLMODE D3DRMFILLMODE
@ D3DRMLIGHT_MAX
Definition: d3drmdef.h:78
enum _D3DRMFILLMODE * LPD3DRMFILLMODE

◆ _D3DRMFOGMODE

Enumerator
D3DRMFOG_LINEAR 
D3DRMFOG_EXPONENTIAL 
D3DRMFOG_EXPONENTIALSQUARED 

Definition at line 219 of file d3drmdef.h.

219 {
enum _D3DRMFOGMODE * LPD3DRMFOGMODE
enum _D3DRMFOGMODE D3DRMFOGMODE
@ D3DRMFOG_EXPONENTIALSQUARED
Definition: d3drmdef.h:222
@ D3DRMFOG_EXPONENTIAL
Definition: d3drmdef.h:221
@ D3DRMFOG_LINEAR
Definition: d3drmdef.h:220

◆ _D3DRMFRAMECONSTRAINT

Enumerator
D3DRMCONSTRAIN_Z 
D3DRMCONSTRAIN_Y 
D3DRMCONSTRAIN_X 

Definition at line 207 of file d3drmdef.h.

207 {
@ D3DRMCONSTRAIN_Y
Definition: d3drmdef.h:209
@ D3DRMCONSTRAIN_X
Definition: d3drmdef.h:210
@ D3DRMCONSTRAIN_Z
Definition: d3drmdef.h:208
enum _D3DRMFRAMECONSTRAINT D3DRMFRAMECONSTRAINT
enum _D3DRMFRAMECONSTRAINT * LPD3DRMFRAMECONSTRAINT

◆ _D3DRMLIGHTMODE

Enumerator
D3DRMLIGHT_OFF 
D3DRMLIGHT_ON 
D3DRMLIGHT_MASK 
D3DRMLIGHT_MAX 

Definition at line 74 of file d3drmdef.h.

74 {
@ D3DRMSHADE_MAX
Definition: d3drmdef.h:71
@ D3DRMLIGHT_ON
Definition: d3drmdef.h:76
@ D3DRMLIGHT_OFF
Definition: d3drmdef.h:75
@ D3DRMLIGHT_MASK
Definition: d3drmdef.h:77
enum _D3DRMLIGHTMODE * LPD3DRMLIGHTMODE
enum _D3DRMLIGHTMODE D3DRMLIGHTMODE

◆ _D3DRMLIGHTTYPE

Enumerator
D3DRMLIGHT_AMBIENT 
D3DRMLIGHT_POINT 
D3DRMLIGHT_SPOT 
D3DRMLIGHT_DIRECTIONAL 
D3DRMLIGHT_PARALLELPOINT 

Definition at line 58 of file d3drmdef.h.

58 {
@ D3DRMLIGHT_DIRECTIONAL
Definition: d3drmdef.h:62
@ D3DRMLIGHT_SPOT
Definition: d3drmdef.h:61
@ D3DRMLIGHT_PARALLELPOINT
Definition: d3drmdef.h:63
@ D3DRMLIGHT_AMBIENT
Definition: d3drmdef.h:59
@ D3DRMLIGHT_POINT
Definition: d3drmdef.h:60
enum _D3DRMLIGHTTYPE * LPD3DRMLIGHTTYPE
enum _D3DRMLIGHTTYPE D3DRMLIGHTTYPE

◆ _D3DRMMATERIALMODE

Enumerator
D3DRMMATERIAL_FROMMESH 
D3DRMMATERIAL_FROMPARENT 
D3DRMMATERIAL_FROMFRAME 

Definition at line 213 of file d3drmdef.h.

213 {
enum _D3DRMMATERIALMODE D3DRMMATERIALMODE
enum _D3DRMMATERIALMODE * LPD3DRMMATERIALMODE
@ D3DRMMATERIAL_FROMPARENT
Definition: d3drmdef.h:215
@ D3DRMMATERIAL_FROMMESH
Definition: d3drmdef.h:214
@ D3DRMMATERIAL_FROMFRAME
Definition: d3drmdef.h:216

◆ _D3DRMPALETTEFLAGS

Enumerator
D3DRMPALETTE_FREE 
D3DRMPALETTE_READONLY 
D3DRMPALETTE_RESERVED 

Definition at line 132 of file d3drmdef.h.

133{
enum _D3DRMPALETTEFLAGS D3DRMPALETTEFLAGS
enum _D3DRMPALETTEFLAGS * LPD3DRMPALETTEFLAGS
@ D3DRMPALETTE_RESERVED
Definition: d3drmdef.h:136
@ D3DRMPALETTE_READONLY
Definition: d3drmdef.h:135
@ D3DRMPALETTE_FREE
Definition: d3drmdef.h:134

◆ _D3DRMPROJECTIONTYPE

Enumerator
D3DRMPROJECT_PERSPECTIVE 
D3DRMPROJECT_ORTHOGRAPHIC 
D3DRMPROJECT_RIGHTHANDPERSPECTIVE 
D3DRMPROJECT_RIGHTHANDORTHOGRAPHIC 

Definition at line 176 of file d3drmdef.h.

177{
@ D3DRMPROJECT_ORTHOGRAPHIC
Definition: d3drmdef.h:179
@ D3DRMPROJECT_RIGHTHANDORTHOGRAPHIC
Definition: d3drmdef.h:181
@ D3DRMPROJECT_PERSPECTIVE
Definition: d3drmdef.h:178
@ D3DRMPROJECT_RIGHTHANDPERSPECTIVE
Definition: d3drmdef.h:180
enum _D3DRMPROJECTIONTYPE D3DRMPROJECTIONTYPE
enum _D3DRMPROJECTIONTYPE * LPD3DRMPROJECTIONTYPE

◆ _D3DRMSHADEMODE

Enumerator
D3DRMSHADE_FLAT 
D3DRMSHADE_GOURAUD 
D3DRMSHADE_PHONG 
D3DRMSHADE_MASK 
D3DRMSHADE_MAX 

Definition at line 66 of file d3drmdef.h.

66 {
@ D3DRMSHADE_FLAT
Definition: d3drmdef.h:67
@ D3DRMSHADE_MASK
Definition: d3drmdef.h:70
@ D3DRMSHADE_GOURAUD
Definition: d3drmdef.h:68
@ D3DRMSHADE_PHONG
Definition: d3drmdef.h:69
enum _D3DRMSHADEMODE D3DRMSHADEMODE
enum _D3DRMSHADEMODE * LPD3DRMSHADEMODE

◆ _D3DRMSORTMODE

Enumerator
D3DRMSORT_FROMPARENT 
D3DRMSORT_NONE 
D3DRMSORT_FRONTTOBACK 
D3DRMSORT_BACKTOFRONT 

Definition at line 231 of file d3drmdef.h.

231 {
@ D3DRMSORT_FROMPARENT
Definition: d3drmdef.h:232
@ D3DRMSORT_NONE
Definition: d3drmdef.h:233
@ D3DRMSORT_BACKTOFRONT
Definition: d3drmdef.h:235
@ D3DRMSORT_FRONTTOBACK
Definition: d3drmdef.h:234
enum _D3DRMSORTMODE D3DRMSORTMODE
enum _D3DRMSORTMODE * LPD3DRMSORTMODE

◆ _D3DRMTEXTUREQUALITY

Enumerator
D3DRMTEXTURE_NEAREST 
D3DRMTEXTURE_LINEAR 
D3DRMTEXTURE_MIPNEAREST 
D3DRMTEXTURE_MIPLINEAR 
D3DRMTEXTURE_LINEARMIPNEAREST 
D3DRMTEXTURE_LINEARMIPLINEAR 

Definition at line 103 of file d3drmdef.h.

103 {
enum _D3DRMTEXTUREQUALITY D3DRMTEXTUREQUALITY
@ D3DRMTEXTURE_MIPLINEAR
Definition: d3drmdef.h:107
@ D3DRMTEXTURE_MIPNEAREST
Definition: d3drmdef.h:106
@ D3DRMTEXTURE_NEAREST
Definition: d3drmdef.h:104
@ D3DRMTEXTURE_LINEAR
Definition: d3drmdef.h:105
@ D3DRMTEXTURE_LINEARMIPLINEAR
Definition: d3drmdef.h:109
@ D3DRMTEXTURE_LINEARMIPNEAREST
Definition: d3drmdef.h:108
enum _D3DRMTEXTUREQUALITY * LPD3DRMTEXTUREQUALITY

◆ _D3DRMUSERVISUALREASON

Enumerator
D3DRMUSERVISUAL_CANSEE 
D3DRMUSERVISUAL_RENDER 

Definition at line 390 of file d3drmdef.h.

390 {
@ D3DRMUSERVISUAL_CANSEE
Definition: d3drmdef.h:391
@ D3DRMUSERVISUAL_RENDER
Definition: d3drmdef.h:392
enum _D3DRMUSERVISUALREASON D3DRMUSERVISUALREASON
enum _D3DRMUSERVISUALREASON * LPD3DRMUSERVISUALREASON

◆ _D3DRMWRAPTYPE

Enumerator
D3DRMWRAP_FLAT 
D3DRMWRAP_CYLINDER 
D3DRMWRAP_SPHERE 
D3DRMWRAP_CHROME 
D3DRMWRAP_SHEET 
D3DRMWRAP_BOX 

Definition at line 164 of file d3drmdef.h.

164 {
enum _D3DRMWRAPTYPE D3DRMWRAPTYPE
enum _D3DRMWRAPTYPE * LPD3DRMWRAPTYPE
@ D3DRMWRAP_SPHERE
Definition: d3drmdef.h:167
@ D3DRMWRAP_SHEET
Definition: d3drmdef.h:169
@ D3DRMWRAP_BOX
Definition: d3drmdef.h:170
@ D3DRMWRAP_FLAT
Definition: d3drmdef.h:165
@ D3DRMWRAP_CHROME
Definition: d3drmdef.h:168
@ D3DRMWRAP_CYLINDER
Definition: d3drmdef.h:166

◆ _D3DRMXOFFORMAT

Enumerator
D3DRMXOF_BINARY 
D3DRMXOF_COMPRESSED 
D3DRMXOF_TEXT 

Definition at line 187 of file d3drmdef.h.

187 {
@ D3DRMXOF_TEXT
Definition: d3drmdef.h:190
@ D3DRMXOF_COMPRESSED
Definition: d3drmdef.h:189
@ D3DRMXOF_BINARY
Definition: d3drmdef.h:188
enum _D3DRMXOFFORMAT * LPD3DRMXOFFORMAT
enum _D3DRMXOFFORMAT D3DRMXOFFORMAT

◆ _D3DRMZBUFFERMODE

Enumerator
D3DRMZBUFFER_FROMPARENT 
D3DRMZBUFFER_ENABLE 
D3DRMZBUFFER_DISABLE 

Definition at line 225 of file d3drmdef.h.

225 {
enum _D3DRMZBUFFERMODE * LPD3DRMZBUFFERMODE
enum _D3DRMZBUFFERMODE D3DRMZBUFFERMODE
@ D3DRMZBUFFER_ENABLE
Definition: d3drmdef.h:227
@ D3DRMZBUFFER_DISABLE
Definition: d3drmdef.h:228
@ D3DRMZBUFFER_FROMPARENT
Definition: d3drmdef.h:226

Function Documentation

◆ D3DRMColorGetAlpha()

D3DVALUE WINAPI D3DRMColorGetAlpha ( D3DCOLOR  color)

Definition at line 38 of file math.c.

39{
40 return (RGBA_GETALPHA(color)/255.0);
41}
#define RGBA_GETALPHA(rgb)
Definition: d3dtypes.h:57
GLuint color
Definition: glext.h:6243

Referenced by ColorTest().

◆ D3DRMColorGetBlue()

D3DVALUE WINAPI D3DRMColorGetBlue ( D3DCOLOR  color)

Definition at line 44 of file math.c.

45{
46 return (RGBA_GETBLUE(color)/255.0);
47}
#define RGBA_GETBLUE(rgb)
Definition: d3dtypes.h:60

Referenced by ColorTest().

◆ D3DRMColorGetGreen()

D3DVALUE WINAPI D3DRMColorGetGreen ( D3DCOLOR  color)

Definition at line 50 of file math.c.

51{
52 return (RGBA_GETGREEN(color)/255.0);
53}
#define RGBA_GETGREEN(rgb)
Definition: d3dtypes.h:59

Referenced by ColorTest().

◆ D3DRMColorGetRed()

D3DVALUE WINAPI D3DRMColorGetRed ( D3DCOLOR  color)

Definition at line 56 of file math.c.

57{
58 return (RGBA_GETRED(color)/255.0);
59}
#define RGBA_GETRED(rgb)
Definition: d3dtypes.h:58

Referenced by ColorTest().

◆ D3DRMCreateColorRGB()

D3DCOLOR WINAPI D3DRMCreateColorRGB ( D3DVALUE  red,
D3DVALUE  green,
D3DVALUE  blue 
)

Definition at line 23 of file math.c.

24{
25 return D3DRMCreateColorRGBA(red, green, blue, 1.0f);
26}
D3DCOLOR WINAPI D3DRMCreateColorRGBA(D3DVALUE red, D3DVALUE green, D3DVALUE blue, D3DVALUE alpha)
Definition: math.c:28
GLclampf green
Definition: gl.h:1740
GLclampf GLclampf blue
Definition: gl.h:1740
#define red
Definition: linetest.c:67

Referenced by ColorTest().

◆ D3DRMCreateColorRGBA()

D3DCOLOR WINAPI D3DRMCreateColorRGBA ( D3DVALUE  red,
D3DVALUE  green,
D3DVALUE  blue,
D3DVALUE  alpha 
)

Definition at line 28 of file math.c.

29{
31
33
34 return color;
35}
static void d3drm_set_color(D3DCOLOR *color, float r, float g, float b, float a)
GLclampf GLclampf GLclampf alpha
Definition: gl.h:1740

Referenced by ColorTest(), and D3DRMCreateColorRGB().

◆ D3DRMMatrixFromQuaternion()

void WINAPI D3DRMMatrixFromQuaternion ( D3DRMMATRIX4D  m,
D3DRMQUATERNION q 
)

Definition at line 78 of file math.c.

79{
80 D3DVALUE w,x,y,z;
81 w = q->s;
82 x = q->v.u1.x;
83 y = q->v.u2.y;
84 z = q->v.u3.z;
85 m[0][0] = 1.0-2.0*(y*y+z*z);
86 m[1][1] = 1.0-2.0*(x*x+z*z);
87 m[2][2] = 1.0-2.0*(x*x+y*y);
88 m[1][0] = 2.0*(x*y+z*w);
89 m[0][1] = 2.0*(x*y-z*w);
90 m[2][0] = 2.0*(x*z-y*w);
91 m[0][2] = 2.0*(x*z+y*w);
92 m[2][1] = 2.0*(y*z+x*w);
93 m[1][2] = 2.0*(y*z-x*w);
94 m[3][0] = 0.0;
95 m[3][1] = 0.0;
96 m[3][2] = 0.0;
97 m[0][3] = 0.0;
98 m[1][3] = 0.0;
99 m[2][3] = 0.0;
100 m[3][3] = 1.0;
101}
float D3DVALUE
Definition: d3dtypes.h:89
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLdouble GLdouble GLdouble GLdouble q
Definition: gl.h:2063
GLubyte GLubyte GLubyte GLubyte w
Definition: glext.h:6102
GLdouble GLdouble z
Definition: glext.h:5874
const GLfloat * m
Definition: glext.h:10848

Referenced by MatrixTest().

◆ D3DRMQuaternionFromRotation()

D3DRMQUATERNION *WINAPI D3DRMQuaternionFromRotation ( D3DRMQUATERNION x,
D3DVECTOR axis,
D3DVALUE  theta 
)

Definition at line 104 of file math.c.

105{
106 q->s = cos(theta/2.0);
107 D3DRMVectorScale(&q->v, D3DRMVectorNormalize(v), sin(theta/2.0));
108 return q;
109}
_STLP_DECLSPEC complex< float > _STLP_CALL cos(const complex< float > &)
_STLP_DECLSPEC complex< float > _STLP_CALL sin(const complex< float > &)
D3DVECTOR *WINAPI D3DRMVectorScale(D3DVECTOR *d, D3DVECTOR *s, D3DVALUE factor)
Definition: math.c:253
D3DVECTOR *WINAPI D3DRMVectorNormalize(D3DVECTOR *u)
Definition: math.c:196
const GLdouble * v
Definition: gl.h:2040

Referenced by QuaternionTest(), and test_animation().

◆ D3DRMQuaternionMultiply()

D3DRMQUATERNION *WINAPI D3DRMQuaternionMultiply ( D3DRMQUATERNION ret,
D3DRMQUATERNION x,
D3DRMQUATERNION y 
)

Definition at line 62 of file math.c.

63{
65 D3DVECTOR cross_product;
66
67 D3DRMVectorCrossProduct(&cross_product, &a->v, &b->v);
68 temp.s = a->s * b->s - D3DRMVectorDotProduct(&a->v, &b->v);
69 temp.v.u1.x = a->s * b->v.u1.x + b->s * a->v.u1.x + cross_product.u1.x;
70 temp.v.u2.y = a->s * b->v.u2.y + b->s * a->v.u2.y + cross_product.u2.y;
71 temp.v.u3.z = a->s * b->v.u3.z + b->s * a->v.u3.z + cross_product.u3.z;
72
73 *q = temp;
74 return q;
75}
D3DVECTOR *WINAPI D3DRMVectorCrossProduct(D3DVECTOR *d, D3DVECTOR *s1, D3DVECTOR *s2)
Definition: math.c:167
D3DVALUE WINAPI D3DRMVectorDotProduct(D3DVECTOR *s1, D3DVECTOR *s2)
Definition: math.c:180
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
static calc_node_t temp
Definition: rpn_ieee.c:38

Referenced by D3DRMVectorRotate().

◆ D3DRMQuaternionSlerp()

D3DRMQUATERNION *WINAPI D3DRMQuaternionSlerp ( D3DRMQUATERNION ret,
D3DRMQUATERNION x,
D3DRMQUATERNION y,
D3DVALUE  alpha 
)

Definition at line 112 of file math.c.

114{
115 D3DVALUE dot, epsilon, temp, theta, u;
116 D3DVECTOR v1, v2;
117
118 dot = a->s * b->s + D3DRMVectorDotProduct(&a->v, &b->v);
119 epsilon = 1.0f;
120 temp = 1.0f - alpha;
121 u = alpha;
122 if (dot < 0.0)
123 {
124 epsilon = -1.0;
125 dot = -dot;
126 }
127 if( 1.0f - dot > 0.001f )
128 {
129 theta = acos(dot);
130 temp = sin(theta * temp) / sin(theta);
131 u = sin(theta * alpha) / sin(theta);
132 }
133 q->s = temp * a->s + epsilon * u * b->s;
134 D3DRMVectorScale(&v1, &a->v, temp);
135 D3DRMVectorScale(&v2, &b->v, epsilon * u);
136 D3DRMVectorAdd(&q->v, &v1, &v2);
137 return q;
138}
valarray< _Tp > acos(const valarray< _Tp > &__x)
Definition: _valarray.h:901
D3DVECTOR *WINAPI D3DRMVectorAdd(D3DVECTOR *d, D3DVECTOR *s1, D3DVECTOR *s2)
Definition: math.c:141
GLfloat GLfloat v1
Definition: glext.h:6062
GLfloat GLfloat GLfloat v2
Definition: glext.h:6063
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
Definition: glfuncs.h:240

Referenced by QuaternionTest().

◆ D3DRMVectorAdd()

D3DVECTOR *WINAPI D3DRMVectorAdd ( D3DVECTOR ret,
D3DVECTOR x,
D3DVECTOR y 
)

Definition at line 141 of file math.c.

142{
144
145 temp.u1.x=s1->u1.x + s2->u1.x;
146 temp.u2.y=s1->u2.y + s2->u2.y;
147 temp.u3.z=s1->u3.z + s2->u3.z;
148
149 *d = temp;
150 return d;
151}
#define d
Definition: ke_i.h:81
struct S1 s1
struct S2 s2

Referenced by D3DRMQuaternionSlerp(), load_mesh_data(), and VectorTest().

◆ D3DRMVectorCrossProduct()

D3DVECTOR *WINAPI D3DRMVectorCrossProduct ( D3DVECTOR ret,
D3DVECTOR x,
D3DVECTOR y 
)

Definition at line 167 of file math.c.

168{
170
171 temp.u1.x=s1->u2.y * s2->u3.z - s1->u3.z * s2->u2.y;
172 temp.u2.y=s1->u3.z * s2->u1.x - s1->u1.x * s2->u3.z;
173 temp.u3.z=s1->u1.x * s2->u2.y - s1->u2.y * s2->u1.x;
174
175 *d = temp;
176 return d;
177}

Referenced by D3DRMQuaternionMultiply(), load_mesh_data(), and VectorTest().

◆ D3DRMVectorDotProduct()

D3DVALUE WINAPI D3DRMVectorDotProduct ( D3DVECTOR x,
D3DVECTOR y 
)

Definition at line 180 of file math.c.

181{
182 D3DVALUE dot_product;
183 dot_product=s1->u1.x * s2->u1.x + s1->u2.y * s2->u2.y + s1->u3.z * s2->u3.z;
184 return dot_product;
185}

Referenced by D3DRMQuaternionMultiply(), D3DRMQuaternionSlerp(), D3DRMVectorReflect(), and VectorTest().

◆ D3DRMVectorModulus()

D3DVALUE WINAPI D3DRMVectorModulus ( D3DVECTOR x)

Definition at line 188 of file math.c.

189{
191 result=sqrt(v->u1.x * v->u1.x + v->u2.y * v->u2.y + v->u3.z * v->u3.z);
192 return result;
193}
_STLP_DECLSPEC complex< float > _STLP_CALL sqrt(const complex< float > &)
Definition: complex.cpp:188
GLuint64EXT * result
Definition: glext.h:11304

Referenced by D3DRMVectorNormalize(), and VectorTest().

◆ D3DRMVectorNormalize()

D3DVECTOR *WINAPI D3DRMVectorNormalize ( D3DVECTOR x)

Definition at line 196 of file math.c.

197{
199 if(modulus)
200 {
202 }
203 else
204 {
205 u->u1.x=1.0;
206 u->u2.y=0.0;
207 u->u3.z=0.0;
208 }
209 return u;
210}
D3DVALUE WINAPI D3DRMVectorModulus(D3DVECTOR *v)
Definition: math.c:188

Referenced by d3drm_matrix_set_rotation(), D3DRMQuaternionFromRotation(), D3DRMVectorRandom(), D3DRMVectorRotate(), load_mesh_data(), and VectorTest().

◆ D3DRMVectorRandom()

D3DVECTOR *WINAPI D3DRMVectorRandom ( D3DVECTOR ret)

Definition at line 213 of file math.c.

214{
215 d->u1.x = rand();
216 d->u2.y = rand();
217 d->u3.z = rand();
219 return d;
220}
_Check_return_ int __cdecl rand(void)
Definition: rand.c:10

◆ D3DRMVectorReflect()

D3DVECTOR *WINAPI D3DRMVectorReflect ( D3DVECTOR ret,
D3DVECTOR ray,
D3DVECTOR normal 
)

Definition at line 223 of file math.c.

224{
225 D3DVECTOR sca, temp;
227
228 *r = temp;
229 return r;
230}
_Tp _STLP_CALL norm(const complex< _Tp > &__z)
Definition: _complex.h:741
D3DVECTOR *WINAPI D3DRMVectorSubtract(D3DVECTOR *d, D3DVECTOR *s1, D3DVECTOR *s2)
Definition: math.c:154
GLdouble GLdouble GLdouble r
Definition: gl.h:2055

Referenced by VectorTest().

◆ D3DRMVectorRotate()

D3DVECTOR *WINAPI D3DRMVectorRotate ( D3DVECTOR ret,
D3DVECTOR x,
D3DVECTOR axis,
D3DVALUE  theta 
)

Definition at line 233 of file math.c.

234{
235 D3DRMQUATERNION quaternion1, quaternion2, quaternion3;
237
238 quaternion1.s = cos(theta * 0.5f);
239 quaternion2.s = cos(theta * 0.5f);
240 norm = *D3DRMVectorNormalize(axis);
241 D3DRMVectorScale(&quaternion1.v, &norm, sin(theta * 0.5f));
242 D3DRMVectorScale(&quaternion2.v, &norm, -sin(theta * 0.5f));
243 quaternion3.s = 0.0;
244 quaternion3.v = *v;
245 D3DRMQuaternionMultiply(&quaternion1, &quaternion1, &quaternion3);
246 D3DRMQuaternionMultiply(&quaternion1, &quaternion1, &quaternion2);
247
248 *r = *D3DRMVectorNormalize(&quaternion1.v);
249 return r;
250}
D3DRMQUATERNION *WINAPI D3DRMQuaternionMultiply(D3DRMQUATERNION *q, D3DRMQUATERNION *a, D3DRMQUATERNION *b)
Definition: math.c:62
D3DVALUE s
Definition: d3drmdef.h:42
D3DVECTOR v
Definition: d3drmdef.h:43

Referenced by VectorTest().

◆ D3DRMVectorScale()

D3DVECTOR *WINAPI D3DRMVectorScale ( D3DVECTOR ret,
D3DVECTOR x,
D3DVALUE  scale 
)

Definition at line 253 of file math.c.

254{
256
257 temp.u1.x=factor * s->u1.x;
258 temp.u2.y=factor * s->u2.y;
259 temp.u3.z=factor * s->u3.z;
260
261 *d = temp;
262 return d;
263}
GLdouble s
Definition: gl.h:2039
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 factor
Definition: glfuncs.h:178

Referenced by D3DRMQuaternionFromRotation(), D3DRMQuaternionSlerp(), D3DRMVectorNormalize(), D3DRMVectorReflect(), D3DRMVectorRotate(), and VectorTest().

◆ D3DRMVectorSubtract()

D3DVECTOR *WINAPI D3DRMVectorSubtract ( D3DVECTOR ret,
D3DVECTOR x,
D3DVECTOR y 
)

Definition at line 154 of file math.c.

155{
157
158 temp.u1.x=s1->u1.x - s2->u1.x;
159 temp.u2.y=s1->u2.y - s2->u2.y;
160 temp.u3.z=s1->u3.z - s2->u3.z;
161
162 *d = temp;
163 return d;
164}

Referenced by D3DRMVectorReflect(), load_mesh_data(), and VectorTest().

Variable Documentation

◆ D3DRMGROUP_ALLGROUPS

const D3DRMGROUPINDEX D3DRMGROUP_ALLGROUPS = -1
static

Definition at line 432 of file d3drmdef.h.

◆ D3DRMMAP_PERSPCORRECT

const D3DRMMAPPINGFLAG D3DRMMAP_PERSPCORRECT = 4
static

Definition at line 421 of file d3drmdef.h.

◆ D3DRMMAP_WRAPU

const D3DRMMAPPINGFLAG D3DRMMAP_WRAPU = 1
static

Definition at line 419 of file d3drmdef.h.

◆ D3DRMMAP_WRAPV

const D3DRMMAPPINGFLAG D3DRMMAP_WRAPV = 2
static

Definition at line 420 of file d3drmdef.h.