ReactOS  0.4.14-dev-98-gb0d4763
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 D3DRMCOLORSOURCE
enum _D3DRMCOLORSOURCE * LPD3DRMCOLORSOURCE

◆ _D3DRMCOMBINETYPE

Enumerator
D3DRMCOMBINE_REPLACE 
D3DRMCOMBINE_BEFORE 
D3DRMCOMBINE_AFTER 

Definition at line 124 of file d3drmdef.h.

124  {
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.

◆ _D3DRMFOGMODE

Enumerator
D3DRMFOG_LINEAR 
D3DRMFOG_EXPONENTIAL 
D3DRMFOG_EXPONENTIALSQUARED 

Definition at line 219 of file d3drmdef.h.

219  {
enum _D3DRMFOGMODE * LPD3DRMFOGMODE
enum _D3DRMFOGMODE D3DRMFOGMODE

◆ _D3DRMFRAMECONSTRAINT

Enumerator
D3DRMCONSTRAIN_Z 
D3DRMCONSTRAIN_Y 
D3DRMCONSTRAIN_X 

Definition at line 207 of file d3drmdef.h.

207  {
enum _D3DRMFRAMECONSTRAINT * LPD3DRMFRAMECONSTRAINT
enum _D3DRMFRAMECONSTRAINT D3DRMFRAMECONSTRAINT

◆ _D3DRMLIGHTMODE

Enumerator
D3DRMLIGHT_OFF 
D3DRMLIGHT_ON 
D3DRMLIGHT_MASK 
D3DRMLIGHT_MAX 

Definition at line 74 of file d3drmdef.h.

74  {
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.

◆ _D3DRMMATERIALMODE

Enumerator
D3DRMMATERIAL_FROMMESH 
D3DRMMATERIAL_FROMPARENT 
D3DRMMATERIAL_FROMFRAME 

Definition at line 213 of file d3drmdef.h.

213  {
enum _D3DRMMATERIALMODE D3DRMMATERIALMODE
enum _D3DRMMATERIALMODE * LPD3DRMMATERIALMODE

◆ _D3DRMPALETTEFLAGS

Enumerator
D3DRMPALETTE_FREE 
D3DRMPALETTE_READONLY 
D3DRMPALETTE_RESERVED 

Definition at line 132 of file d3drmdef.h.

133 {
enum _D3DRMPALETTEFLAGS D3DRMPALETTEFLAGS
enum _D3DRMPALETTEFLAGS * LPD3DRMPALETTEFLAGS

◆ _D3DRMPROJECTIONTYPE

Enumerator
D3DRMPROJECT_PERSPECTIVE 
D3DRMPROJECT_ORTHOGRAPHIC 
D3DRMPROJECT_RIGHTHANDPERSPECTIVE 
D3DRMPROJECT_RIGHTHANDORTHOGRAPHIC 

Definition at line 176 of file d3drmdef.h.

◆ _D3DRMSHADEMODE

Enumerator
D3DRMSHADE_FLAT 
D3DRMSHADE_GOURAUD 
D3DRMSHADE_PHONG 
D3DRMSHADE_MASK 
D3DRMSHADE_MAX 

Definition at line 66 of file d3drmdef.h.

66  {
67  D3DRMSHADE_FLAT = 0,
69  D3DRMSHADE_PHONG = 2,
70  D3DRMSHADE_MASK = 7,
71  D3DRMSHADE_MAX = 8
enum _D3DRMSHADEMODE D3DRMSHADEMODE
enum _D3DRMSHADEMODE * LPD3DRMSHADEMODE

◆ _D3DRMSORTMODE

Enumerator
D3DRMSORT_FROMPARENT 
D3DRMSORT_NONE 
D3DRMSORT_FRONTTOBACK 
D3DRMSORT_BACKTOFRONT 

Definition at line 231 of file d3drmdef.h.

◆ _D3DRMTEXTUREQUALITY

Enumerator
D3DRMTEXTURE_NEAREST 
D3DRMTEXTURE_LINEAR 
D3DRMTEXTURE_MIPNEAREST 
D3DRMTEXTURE_MIPLINEAR 
D3DRMTEXTURE_LINEARMIPNEAREST 
D3DRMTEXTURE_LINEARMIPLINEAR 

Definition at line 103 of file d3drmdef.h.

◆ _D3DRMUSERVISUALREASON

Enumerator
D3DRMUSERVISUAL_CANSEE 
D3DRMUSERVISUAL_RENDER 

Definition at line 390 of file d3drmdef.h.

390  {
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 * LPD3DRMWRAPTYPE
enum _D3DRMWRAPTYPE D3DRMWRAPTYPE

◆ _D3DRMXOFFORMAT

Enumerator
D3DRMXOF_BINARY 
D3DRMXOF_COMPRESSED 
D3DRMXOF_TEXT 

Definition at line 187 of file d3drmdef.h.

187  {
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

Function Documentation

◆ D3DRMColorGetAlpha()

D3DVALUE WINAPI D3DRMColorGetAlpha ( D3DCOLOR  )

Definition at line 41 of file math.c.

42 {
43  return (RGBA_GETALPHA(color)/255.0);
44 }
GLuint color
Definition: glext.h:6243
#define RGBA_GETALPHA(rgb)
Definition: d3dtypes.h:57

Referenced by ColorTest().

◆ D3DRMColorGetBlue()

D3DVALUE WINAPI D3DRMColorGetBlue ( D3DCOLOR  )

Definition at line 47 of file math.c.

48 {
49  return (RGBA_GETBLUE(color)/255.0);
50 }
GLuint color
Definition: glext.h:6243
#define RGBA_GETBLUE(rgb)
Definition: d3dtypes.h:60

Referenced by ColorTest().

◆ D3DRMColorGetGreen()

D3DVALUE WINAPI D3DRMColorGetGreen ( D3DCOLOR  )

Definition at line 53 of file math.c.

54 {
55  return (RGBA_GETGREEN(color)/255.0);
56 }
#define RGBA_GETGREEN(rgb)
Definition: d3dtypes.h:59
GLuint color
Definition: glext.h:6243

Referenced by ColorTest().

◆ D3DRMColorGetRed()

D3DVALUE WINAPI D3DRMColorGetRed ( D3DCOLOR  )

Definition at line 59 of file math.c.

60 {
61  return (RGBA_GETRED(color)/255.0);
62 }
GLuint color
Definition: glext.h:6243
#define RGBA_GETRED(rgb)
Definition: d3dtypes.h:58

Referenced by ColorTest().

◆ D3DRMCreateColorRGB()

D3DCOLOR WINAPI D3DRMCreateColorRGB ( D3DVALUE  ,
D3DVALUE  ,
D3DVALUE   
)

Definition at line 26 of file math.c.

27 {
28  return D3DRMCreateColorRGBA(red, green, blue, 1.0f);
29 }
GLclampf GLclampf blue
Definition: gl.h:1740
GLfloat f
Definition: glext.h:7540
GLclampf green
Definition: gl.h:1740
#define red
Definition: linetest.c:67
D3DCOLOR WINAPI D3DRMCreateColorRGBA(D3DVALUE red, D3DVALUE green, D3DVALUE blue, D3DVALUE alpha)
Definition: math.c:31

Referenced by ColorTest().

◆ D3DRMCreateColorRGBA()

D3DCOLOR WINAPI D3DRMCreateColorRGBA ( D3DVALUE  ,
D3DVALUE  ,
D3DVALUE  ,
D3DVALUE   
)

Definition at line 31 of file math.c.

32 {
34 
36 
37  return color;
38 }
GLuint color
Definition: glext.h:6243
GLclampf GLclampf blue
Definition: gl.h:1740
GLclampf green
Definition: gl.h:1740
#define red
Definition: linetest.c:67
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 81 of file math.c.

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

Referenced by MatrixTest().

◆ D3DRMQuaternionFromRotation()

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

Definition at line 107 of file math.c.

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

Referenced by QuaternionTest(), and test_animation().

◆ D3DRMQuaternionMultiply()

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

Definition at line 65 of file math.c.

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

Referenced by D3DRMVectorRotate().

◆ D3DRMQuaternionSlerp()

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

Definition at line 115 of file math.c.

117 {
118  D3DVALUE dot, epsilon, temp, theta, u;
119  D3DVECTOR v1, v2;
120 
121  dot = a->s * b->s + D3DRMVectorDotProduct(&a->v, &b->v);
122  epsilon = 1.0f;
123  temp = 1.0f - alpha;
124  u = alpha;
125  if (dot < 0.0)
126  {
127  epsilon = -1.0;
128  dot = -dot;
129  }
130  if( 1.0f - dot > 0.001f )
131  {
132  theta = acos(dot);
133  temp = sin(theta * temp) / sin(theta);
134  u = sin(theta * alpha) / sin(theta);
135  }
136  q->s = temp * a->s + epsilon * u * b->s;
137  D3DRMVectorScale(&v1, &a->v, temp);
138  D3DRMVectorScale(&v2, &b->v, epsilon * u);
139  D3DRMVectorAdd(&q->v, &v1, &v2);
140  return q;
141 }
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
D3DVECTOR *WINAPI D3DRMVectorAdd(D3DVECTOR *d, D3DVECTOR *s1, D3DVECTOR *s2)
Definition: math.c:144
valarray< _Tp > acos(const valarray< _Tp > &__x)
Definition: _valarray.h:901
float D3DVALUE
Definition: d3dtypes.h:89
D3DVECTOR *WINAPI D3DRMVectorScale(D3DVECTOR *d, D3DVECTOR *s, D3DVALUE factor)
Definition: math.c:256
GLfloat f
Definition: glext.h:7540
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLdouble GLdouble GLdouble GLdouble q
Definition: gl.h:2063
D3DVALUE WINAPI D3DRMVectorDotProduct(D3DVECTOR *s1, D3DVECTOR *s2)
Definition: math.c:183
GLfloat GLfloat GLfloat v2
Definition: glext.h:6063
static calc_node_t temp
Definition: rpn_ieee.c:38
GLclampf GLclampf GLclampf alpha
Definition: gl.h:1740
_STLP_DECLSPEC complex< float > _STLP_CALL sin(const complex< float > &)
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
GLfloat GLfloat v1
Definition: glext.h:6062

Referenced by QuaternionTest().

◆ D3DRMVectorAdd()

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

Definition at line 144 of file math.c.

145 {
146  D3DVECTOR temp;
147 
148  temp.u1.x=s1->u1.x + s2->u1.x;
149  temp.u2.y=s1->u2.y + s2->u2.y;
150  temp.u3.z=s1->u3.z + s2->u3.z;
151 
152  *d = temp;
153  return d;
154 }
struct S2 s2
#define d
Definition: ke_i.h:81
struct S1 s1
static calc_node_t temp
Definition: rpn_ieee.c:38

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

◆ D3DRMVectorCrossProduct()

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

Definition at line 170 of file math.c.

171 {
172  D3DVECTOR temp;
173 
174  temp.u1.x=s1->u2.y * s2->u3.z - s1->u3.z * s2->u2.y;
175  temp.u2.y=s1->u3.z * s2->u1.x - s1->u1.x * s2->u3.z;
176  temp.u3.z=s1->u1.x * s2->u2.y - s1->u2.y * s2->u1.x;
177 
178  *d = temp;
179  return d;
180 }
struct S2 s2
#define d
Definition: ke_i.h:81
struct S1 s1
static calc_node_t temp
Definition: rpn_ieee.c:38

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

◆ D3DRMVectorDotProduct()

D3DVALUE WINAPI D3DRMVectorDotProduct ( D3DVECTOR x,
D3DVECTOR y 
)

Definition at line 183 of file math.c.

184 {
185  D3DVALUE dot_product;
186  dot_product=s1->u1.x * s2->u1.x + s1->u2.y * s2->u2.y + s1->u3.z * s2->u3.z;
187  return dot_product;
188 }
struct S2 s2
float D3DVALUE
Definition: d3dtypes.h:89
struct S1 s1

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

◆ D3DRMVectorModulus()

D3DVALUE WINAPI D3DRMVectorModulus ( D3DVECTOR x)

Definition at line 191 of file math.c.

192 {
194  result=sqrt(v->u1.x * v->u1.x + v->u2.y * v->u2.y + v->u3.z * v->u3.z);
195  return result;
196 }
_STLP_DECLSPEC complex< float > _STLP_CALL sqrt(const complex< float > &)
Definition: complex.cpp:188
float D3DVALUE
Definition: d3dtypes.h:89
const GLdouble * v
Definition: gl.h:2040
GLuint64EXT * result
Definition: glext.h:11304

Referenced by D3DRMVectorNormalize(), and VectorTest().

◆ D3DRMVectorNormalize()

D3DVECTOR* WINAPI D3DRMVectorNormalize ( D3DVECTOR x)

Definition at line 199 of file math.c.

200 {
202  if(modulus)
203  {
205  }
206  else
207  {
208  u->u1.x=1.0;
209  u->u2.y=0.0;
210  u->u3.z=0.0;
211  }
212  return u;
213 }
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
D3DVALUE WINAPI D3DRMVectorModulus(D3DVECTOR *v)
Definition: math.c:191
float D3DVALUE
Definition: d3dtypes.h:89
D3DVECTOR *WINAPI D3DRMVectorScale(D3DVECTOR *d, D3DVECTOR *s, D3DVALUE factor)
Definition: math.c:256

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

◆ D3DRMVectorRandom()

D3DVECTOR* WINAPI D3DRMVectorRandom ( D3DVECTOR ret)

Definition at line 216 of file math.c.

217 {
218  d->u1.x = rand();
219  d->u2.y = rand();
220  d->u3.z = rand();
222  return d;
223 }
D3DVECTOR *WINAPI D3DRMVectorNormalize(D3DVECTOR *u)
Definition: math.c:199
_Check_return_ int __cdecl rand(void)
Definition: rand.c:10
#define d
Definition: ke_i.h:81

◆ D3DRMVectorReflect()

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

Definition at line 226 of file math.c.

227 {
228  D3DVECTOR sca, temp;
230 
231  *r = temp;
232  return r;
233 }
_Tp _STLP_CALL norm(const complex< _Tp > &__z)
Definition: _complex.h:741
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
D3DVECTOR *WINAPI D3DRMVectorScale(D3DVECTOR *d, D3DVECTOR *s, D3DVALUE factor)
Definition: math.c:256
D3DVECTOR *WINAPI D3DRMVectorSubtract(D3DVECTOR *d, D3DVECTOR *s1, D3DVECTOR *s2)
Definition: math.c:157
D3DVALUE WINAPI D3DRMVectorDotProduct(D3DVECTOR *s1, D3DVECTOR *s2)
Definition: math.c:183
static calc_node_t temp
Definition: rpn_ieee.c:38

Referenced by VectorTest().

◆ D3DRMVectorRotate()

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

Definition at line 236 of file math.c.

237 {
238  D3DRMQUATERNION quaternion1, quaternion2, quaternion3;
239  D3DVECTOR norm;
240 
241  quaternion1.s = cos(theta * 0.5f);
242  quaternion2.s = cos(theta * 0.5f);
243  norm = *D3DRMVectorNormalize(axis);
244  D3DRMVectorScale(&quaternion1.v, &norm, sin(theta * 0.5f));
245  D3DRMVectorScale(&quaternion2.v, &norm, -sin(theta * 0.5f));
246  quaternion3.s = 0.0;
247  quaternion3.v = *v;
248  D3DRMQuaternionMultiply(&quaternion1, &quaternion1, &quaternion3);
249  D3DRMQuaternionMultiply(&quaternion1, &quaternion1, &quaternion2);
250 
251  *r = *D3DRMVectorNormalize(&quaternion1.v);
252  return r;
253 }
_Tp _STLP_CALL norm(const complex< _Tp > &__z)
Definition: _complex.h:741
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
D3DVECTOR *WINAPI D3DRMVectorNormalize(D3DVECTOR *u)
Definition: math.c:199
_STLP_DECLSPEC complex< float > _STLP_CALL cos(const complex< float > &)
D3DVALUE s
Definition: d3drmdef.h:42
D3DVECTOR *WINAPI D3DRMVectorScale(D3DVECTOR *d, D3DVECTOR *s, D3DVALUE factor)
Definition: math.c:256
GLfloat f
Definition: glext.h:7540
D3DRMQUATERNION *WINAPI D3DRMQuaternionMultiply(D3DRMQUATERNION *q, D3DRMQUATERNION *a, D3DRMQUATERNION *b)
Definition: math.c:65
const GLdouble * v
Definition: gl.h:2040
D3DVECTOR v
Definition: d3drmdef.h:43
_STLP_DECLSPEC complex< float > _STLP_CALL sin(const complex< float > &)

Referenced by VectorTest().

◆ D3DRMVectorScale()

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

Definition at line 256 of file math.c.

257 {
258  D3DVECTOR temp;
259 
260  temp.u1.x=factor * s->u1.x;
261  temp.u2.y=factor * s->u2.y;
262  temp.u3.z=factor * s->u3.z;
263 
264  *d = temp;
265  return d;
266 }
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
#define d
Definition: ke_i.h:81
GLdouble s
Definition: gl.h:2039
static calc_node_t temp
Definition: rpn_ieee.c:38

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

◆ D3DRMVectorSubtract()

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

Definition at line 157 of file math.c.

158 {
159  D3DVECTOR temp;
160 
161  temp.u1.x=s1->u1.x - s2->u1.x;
162  temp.u2.y=s1->u2.y - s2->u2.y;
163  temp.u3.z=s1->u3.z - s2->u3.z;
164 
165  *d = temp;
166  return d;
167 }
struct S2 s2
#define d
Definition: ke_i.h:81
struct S1 s1
static calc_node_t temp
Definition: rpn_ieee.c:38

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.