Direct3D retained mode constants in RapidQ
Specifies how to combine two matrices for a QD3DFrame The order of the supplied and current matrices when they are multiplied is important because matrix multiplication is not commutative. Used to define the D3DRMRENDERQUALITY type. Contains values that specify how rapidly and in what ways the fog effect intensifies with increasing distance from the camera.
In monochromatic (ramp) lighting mode, fog works properly only when the fog color is black. (If there is no lighting, any fog color will work, since in this case any fog color is effectively black.) Note that fog can be considered a measure of visibility—the lower the fog value produced by one of the fog equations, the less visible an object is.
You can specify the fog's density and start and end points by using the
QD3DRMFrame.SetFogParams method. In the formulas for the exponential fog modes, e is the base of the natural logarithms; its value is approximately 2.71828. Describes the axes of rotation to constrain when viewing a Direct3DRMFrame object. The
QD3DRMFrame.LookAt
method uses this enumerated type. Used to define the D3DRMRENDERQUALITY type. Defines the light type in uses to the QD3DScreen.CreateLight method. Defines the type of projection used in a Direct3DRMViewport object. The IDirect3DRMViewport::GetProjection and IDirect3DRMViewport::SetProjection methods use this enumerated type. The right-hand types enable right-handed projection.
The axes of the camera (see IDirect3DRMFrame2::SetAxes) are used in both left-handed and right-handed projection to determine what direction the camera is facing.
Combines descriptions of the shading mode, lighting mode, and filling mode for a Direct3DRMMesh object.
Used to define the D3DRMRENDERQUALITY type. Describes how a device interpolates between pixels in a texture and pixels in a viewport. This enumerated type is used by the IDirect3DRMDevice::SetTextureQuality and IDirect3DRMDevice::GetTextureQuality methods.
Defines the type of Direct3DRMWrap object created by the IDirect3DRM::CreateWrap method. You can also use this enumerated type to initialize a Direct3DRMWrap object in a call to the IDirect3DRMWrap::Init method.
The Microsoft® Direct3D® Retained Mode enumerated types are:
D3DRMCOMBINETYPE
D3DRMCOMBINE_REPLACE,
D3DRMCOMBINE_BEFORE,
D3DRMCOMBINE_AFTER
Values
Remarks
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
Values
D3DRMFOGMODE
D3DRMFOG_LINEAR,
D3DRMFOG_EXPONENTIAL,
D3DRMFOG_EXPONENTIALSQUARED
Values
This is the only fog mode currently supported.
Remarks
D3DRMFRAMECONSTRAINT
D3DRMCONSTRAIN_Z,
D3DRMCONSTRAIN_Y,
D3DRMCONSTRAIN_X
Values
D3DRMLIGHTMODE
D3DRMLIGHT_OFF = 0 *
D3DRMSHADE_MAX,
D3DRMLIGHT_ON = 1 *
D3DRMSHADE_MAX,
D3DRMLIGHT_MASK = 7 * D3DRMSHADE_MAX,
D3DRMLIGHT_MAX = 8 *
D3DRMSHADE_MAX
Values
D3DRMLIGHTTYPE
D3DRMLIGHT_AMBIENT,
D3DRMLIGHT_POINT,
D3DRMLIGHT_SPOT,
D3DRMLIGHT_DIRECTIONAL,
D3DRMLIGHT_PARALLELPOINT
Values
D3DRMPROJECT_PERSPECTIVE
= 0
D3DRMPROJECT_ORTHOGRAPHIC = 1
D3DRMPROJECT_RIGHTHANDPERSPECTIVE = 2
D3DRMPROJECT_RIGHTHANDORTHOGRAPHIC = 3
Values
D3DRMRENDERQUALITY
Values
D3DRMSHADEMODE
D3DRMSHADE_FLAT = 0,
D3DRMSHADE_GOURAUD = 1,
D3DRMSHADE_PHONG = 2,
D3DRMSHADE_MASK = 7,
D3DRMSHADE_MAX = 8
Values
D3DRMWRAPTYPE
D3DRMWRAP_CYLINDER = 1
D3DRMWRAP_SPHERE = 2
D3DRMWRAP_CHROME = 3
Values