Package com.ms.com.directX Previous
Previous
Microsoft Packages
Microsoft Packages
Index
Index
Next
Next

D3DRENDERSTATE_ Values

Describes the render state for the D3DOP_STATERENDER opcode.

D3DRENDERSTATE_ALPHAFUNC
One D3DCMP_ value. The default value is D3DCMP_ALWAYS. This field enables an application to accept or reject a pixel based on its alpha value.
D3DRENDERSTATE_ALPHAREF
Value specifying a reference alpha value against which pixels are tested when alpha-testing is enabled. The default value is 0.
D3DRENDERSTATE_ALPHATESTENABLE
This member enables applications to turn off the tests that otherwise would accept or reject a pixel based on its alpha value. Set to TRUE to enable alpha tests. The default value is FALSE.
D3DRENDERSTATE_ANTIALIAS
Antialiasing primitive edges. The default value is FALSE.
D3DRENDERSTATE_BLENDENABLE
TRUE to enable alpha blending. The default value is FALSE.
D3DRENDERSTATE_CULLMODE
One D3DCULL_ value. Software renderers have a fixed culling order and do not support changing the culling mode. The default value is D3DCULL_CCW.
D3DRENDERSTATE_DESTBLEND
One D3DBLEND_ value. The default value is D3DBLEND_ZERO.
D3DRENDERSTATE_DITHERENABLE
TRUE to enable dithering. The default value is FALSE.
D3DRENDERSTATE_FILLMODE
One or more D3DFILL_ values. The default value is D3DFILL_SOLID.
D3DRENDERSTATE_FOGCOLOR
A D3DCOLOR_ value. The default value is 0.
D3DRENDERSTATE_FOGENABLE
TRUE to enable fog. The default value is FALSE.
D3DRENDERSTATE_FOGTABLEDENSITY
Sets the maximum fog density for linear fog mode. This value can range from 0 to 1.
D3DRENDERSTATE_FOGTABLEEND
Fog table end. This is the position at which fog effects reach their maximum density for linear fog mode.
D3DRENDERSTATE_FOGTABLEMODE
A D3DFOG_value. The default value is D3DFOG_NONE.
D3DRENDERSTATE_FOGTABLESTART
Fog table start. This is the position at which fog effects begin for linear fog mode.
D3DRENDERSTATE_LASTPIXEL
TRUE to prevent drawing the last pixel in a line. The default value is TRUE.
D3DRENDERSTATE_LINEPATTERN
Reserved.
D3DRENDERSTATE_MONOENABLE
TRUE to enable monochromatic rendering. The default value is FALSE. If the device does not support RGB rendering, the value will be TRUE. Applications can check whether the device supports RGB rendering by using the dcmColorModel field of the d3dDeviceDesc class.
D3DRENDERSTATE_PLANEMASK
Physical plane mask. The default value is 0.
D3DRENDERSTATE_ROP2
One of the 16 ROP2 binary raster operations that specify how the supplied pixels are combined with the pixels of the display surface. Applications can use the D3DPRASTERCAPS_ROP2 flag in the dwRasterCaps field of the d3dFindDeviceSearch class to determine whether additional raster operations are supported. The default value is R2_COPYPEN.
D3DRENDERSTATE_SHADEMODE
One or more D3DSHADE_ values. The default value is D3DSHADE_GOURAUD.
D3DRENDERSTATE_SPECULARENABLE
TRUE to enable specular. The default value is TRUE.
D3DRENDERSTATE_SRCBLEND
One D3DBLEND_ value. The default value is D3DBLEND_ONE.
D3DRENDERSTATE_STIPPLEDALPHA
TRUE to enable stippled alpha. The default value is FALSE.
D3DRENDERSTATE_STIPPLEENABLE
Enables stippling in the device driver. When stippled alpha is enabled, it must override the current stipple pattern. When stippled alpha is disabled, the stipple pattern must be returned.
D3DRENDERSTATE_STIPPLEPATTERN00 through D3DRENDERSTATE_STIPPLEPATTERN31
Stipple pattern. Each render state applies to a separate line of the stipple pattern.
D3DRENDERSTATE_SUBPIXEL
TRUE to enable subpixel correction. The default value is FALSE.
D3DRENDERSTATE_SUBPIXELX
TRUE to enable correction in x-values only. The default value is FALSE.
D3DRENDERSTATE_TEXTUREADDRESS
One D3DTADDRESS_ value. The default value is D3DTADDRESS_WRAP.
D3DRENDERSTATE_TEXTUREHANDLE
Texture handle. The default value is null.
D3DRENDERSTATE_TEXTUREMAG
OneD3DFILTER_ value. The default value is D3DFILTER_NEAREST.
D3DRENDERSTATE_TEXTUREMAPBLEND
One D3DTBLEND_ value. The default value is D3DTBLEND_MODULATE.
D3DRENDERSTATE_TEXTUREMIN
One D3DFILTER_ value. The default value is D3DFILTER_NEAREST.
D3DRENDERSTATE_TEXTUREPERSPECTIVE
TRUE for perspective correction. The default value is FALSE.
D3DRENDERSTATE_WRAPU
TRUE for wrapping in u-direction. The default value is FALSE.
D3DRENDERSTATE_WRAPV
TRUE for wrapping in v-direction. The default value is FALSE.
D3DRENDERSTATE_ZENABLE
TRUE to enable the z-buffer comparison test when writing to the frame buffer. The default value is FALSE.
D3DRENDERSTATE_ZFUNC
One D3DCMP_ value. This field enables an application to accept or reject a pixel based on its distance from the camera. The default value is D3DCMP_LESSEQUAL.
D3DRENDERSTATE_ZVISIBLE
TRUE to enable z-checking. Z-checking is a culling technique in which a polygon representing the screen space of an entire group of polygons is tested against the z-buffer to discover whether any of the polygons should be drawn. The default value is FALSE.
D3DRENDERSTATE_ZWRITEENABLE
TRUE to enable z-writes. This member enables an application to prevent the system from updating the z-buffer with new z-values. The default value is TRUE.


Top© 1997 Microsoft Corporation. All rights reserved. Terms of Use.