typedef enum _D3DRENDERSTATETYPE {
D3DRENDERSTATE_TEXTUREHANDLE = 1,
D3DRENDERSTATE_ANTIALIAS = 2,
D3DRENDERSTATE_TEXTUREADDRESS = 3,
D3DRENDERSTATE_TEXTUREPERSPECTIVE = 4,
D3DRENDERSTATE_WRAPU = 5,
D3DRENDERSTATE_WRAPV = 6,
D3DRENDERSTATE_ZENABLE = 7,
D3DRENDERSTATE_FILLMODE = 8,
D3DRENDERSTATE_SHADEMODE = 9,
D3DRENDERSTATE_LINEPATTERN = 10,
D3DRENDERSTATE_MONOENABLE = 11,
D3DRENDERSTATE_ROP2 = 12,
D3DRENDERSTATE_PLANEMASK = 13,
D3DRENDERSTATE_ZWRITEENABLE = 14,
D3DRENDERSTATE_ALPHATESTENABLE = 15,
D3DRENDERSTATE_LASTPIXEL = 16,
D3DRENDERSTATE_TEXTUREMAG = 17,
D3DRENDERSTATE_TEXTUREMIN = 18,
D3DRENDERSTATE_SRCBLEND = 19,
D3DRENDERSTATE_DESTBLEND = 20,
D3DRENDERSTATE_TEXTUREMAPBLEND = 21,
D3DRENDERSTATE_CULLMODE = 22,
D3DRENDERSTATE_ZFUNC = 23,
D3DRENDERSTATE_ALPHAREF = 24,
D3DRENDERSTATE_ALPHAFUNC = 25,
D3DRENDERSTATE_DITHERENABLE = 26,
D3DRENDERSTATE_BLENDENABLE = 27,
D3DRENDERSTATE_FOGENABLE = 28,
D3DRENDERSTATE_SPECULARENABLE = 29,
D3DRENDERSTATE_ZVISIBLE = 30,
D3DRENDERSTATE_SUBPIXEL = 31,
D3DRENDERSTATE_SUBPIXELX = 32,
D3DRENDERSTATE_STIPPLEDALPHA = 33,
D3DRENDERSTATE_FOGCOLOR = 34,
D3DRENDERSTATE_FOGTABLEMODE = 35,
D3DRENDERSTATE_FOGTABLESTART = 36,
D3DRENDERSTATE_FOGTABLEEND = 37,
D3DRENDERSTATE_FOGTABLEDENSITY = 38,
D3DRENDERSTATE_STIPPLEENABLE = 39,
D3DRENDERSTATE_STIPPLEPATTERN00 = 64,
// Stipple patterns 01 through 30 omitted here.
D3DRENDERSTATE_STIPPLEPATTERN31 = 95,
} D3DRENDERSTATETYPE;
Describes the render state for the D3DOP_STATERENDER opcode. This enumerated type is part of the D3DSTATE structure. The values mentioned in the following descriptions are set in the second member of this structure.
Texture handle. The default value is NULL.
Antialiasing primitive edges. The default value is FALSE.
One of the members of the D3DTEXTUREADDRESS enumerated type. The default value is D3DTADDRESS_WRAP.
D3DRENDERSTATE_TEXTUREPERSPECTIVE
TRUE for perspective correction. The default value is FALSE.
TRUE for wrapping in u direction. The default value is FALSE.
TRUE for wrapping in v direction. The default value is FALSE.
TRUE to enable the z-buffer comparison test when writing to the frame buffer. The default value is FALSE.
One or more members of the D3DFILLMODE enumerated type. The default value is D3DFILL_SOLID.
One or more members of the D3DSHADEMODE enumerated type. The default value is D3DSHADE_GOURAUD.
The D3DLINEPATTERN structure. The default values are 0 for wRepeatPattern and 0 for wLinePattern.
One of the 16 ROP2 binary raster operations specifying how the supplied pixels are combined with the pixels of the display surface. The default value is R2_COPYPEN. Applications can use the D3DPRASTERCAPS_ROP2 flag in the dwRasterCaps member of the D3DPRIMCAPS structure to determine whether additional raster operations are supported.
Physical plane mask whose type is ULONG. The default value is ~0.
TRUE to enable z writes. The default value is TRUE. This member enables an application to prevent the system from updating the z-buffer with new z values.
D3DRENDERSTATE_ALPHATESTENABLE
TRUE to enable alpha tests. The default value is FALSE. This member enables applications to turn off the tests that otherwise would accept or reject a pixel based on its alpha value.
TRUE to prevent drawing the last pixel in a line. The default value is FALSE.
One of the members of the D3DTEXTUREFILTER enumerated type. The default value is D3DFILTER_NEAREST.
One of the members of the D3DTEXTUREFILTER enumerated type. The default value is D3DFILTER_NEAREST.
One of the members of the D3DBLEND enumerated type. The default value is D3DBLEND_ONE.
One of the members of the D3DBLEND enumerated type. The default value is D3DBLEND_ZERO.
D3DRENDERSTATE_TEXTUREMAPBLEND
One of the members of the D3DTEXTUREBLEND enumerated type. The default value is D3DTBLEND_MODULATE.
One of the members of the D3DCULL enumerated type. The default value is D3DCULL_CCW. Software renderers have a fixed culling order and do not support changing the culling mode.
One of the members of the D3DCMPFUNC enumerated type. The default value is D3DCMP_LESSEQUAL. This member enables an application to accept or reject a pixel based on its distance from the camera.
Value specifying a reference alpha value against which pixels are tested when alpha-testing is enabled. This value's type is D3DFIXED. The default value is 0.
One of the members of the D3DCMPFUNC enumerated type. The default value is D3DCMP_ALWAYS. This member enables an application to accept or reject a pixel based on its alpha value.
TRUE to enable dithering. The default value is FALSE.
TRUE to enable alpha blending. The default value is FALSE.
TRUE to enable fog. The default value is FALSE.
TRUE to enable specular. The default value is TRUE.
TRUE to enable z-checking. The default value is FALSE. 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.
TRUE to enable subpixel correction. The default value is FALSE.
TRUE to enable correction in X only. The default value is FALSE.
TRUE to enable stippled alpha. The default value is FALSE.
Value whose type is D3DCOLOR. The default value is 0.
One of the members of the D3DFOGMODE enumerated type. The default value is D3DFOG_NONE.
Fog table start. This is the position at which fog effects begin for linear fog mode.
Fog table end. This is the position at which fog effects reach their maximum density for linear fog mode.
D3DRENDERSTATE_FOGTABLEDENSITY
Sets the maximum fog density for linear fog mode. This value can range from 0 to 1.
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.