D3DRENDERSTATETYPE

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.

D3DRENDERSTATE_TEXTUREHANDLE

Texture handle. The default value is NULL.

D3DRENDERSTATE_ANTIALIAS

Antialiasing primitive edges. The default value is FALSE.

D3DRENDERSTATE_TEXTUREADDRESS

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.

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_FILLMODE

One or more members of the D3DFILLMODE enumerated type. The default value is D3DFILL_SOLID.

D3DRENDERSTATE_SHADEMODE

One or more members of the D3DSHADEMODE enumerated type. The default value is D3DSHADE_GOURAUD.

D3DRENDERSTATE_LINEPATTERN

The D3DLINEPATTERN structure. The default values are 0 for wRepeatPattern and 0 for wLinePattern.

D3DRENDERSTATE_ROP2

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.

D3DRENDERSTATE_PLANEMASK

Physical plane mask whose type is ULONG. The default value is ~0.

D3DRENDERSTATE_ZWRITEENABLE

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.

D3DRENDERSTATE_LASTPIXEL

TRUE to prevent drawing the last pixel in a line. The default value is FALSE.

D3DRENDERSTATE_TEXTUREMAG

One of the members of the D3DTEXTUREFILTER enumerated type. The default value is D3DFILTER_NEAREST.

D3DRENDERSTATE_TEXTUREMIN

One of the members of the D3DTEXTUREFILTER enumerated type. The default value is D3DFILTER_NEAREST.

D3DRENDERSTATE_SRCBLEND

One of the members of the D3DBLEND enumerated type. The default value is D3DBLEND_ONE.

D3DRENDERSTATE_DSTBLEND

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.

D3DRENDERSTATE_CULLMODE

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.

D3DRENDERSTATE_ZFUNC

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.

D3DRENDERSTATE_ALPHAREF

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.

D3DRENDERSTATE_ALPHAFUNC

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.

D3DRENDERSTATE_DITHERENABLE

TRUE to enable dithering. The default value is FALSE.

D3DRENDERSTATE_BLENDENABLE

TRUE to enable alpha blending. The default value is FALSE.

D3DRENDERSTATE_FOGENABLE

TRUE to enable fog. The default value is FALSE.

D3DRENDERSTATE_SPECULARENABLE

TRUE to enable specular. The default value is TRUE.

D3DRENDERSTATE_ZVISIBLE

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.

D3DRENDERSTATE_SUBPIXEL

TRUE to enable subpixel correction. The default value is FALSE.

D3DRENDERSTATE_SUBPIXELX

TRUE to enable correction in X only. The default value is FALSE.

D3DRENDERSTATE_STIPPLEDALPHA

TRUE to enable stippled alpha. The default value is FALSE.

D3DRENDERSTATE_FOGCOLOR

Value whose type is D3DCOLOR. The default value is 0.

D3DRENDERSTATE_FOGTABLEMODE

One of the members of the D3DFOGMODE enumerated type. 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_FOGTABLEEND

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.

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.