#include "n3dcolor.inl"
#include "n3dfloat.inl"
#include "n3dvector3.inl"
Data Structures | |
struct | N3DCMDSTREAM |
Describes a Command Stream. More... | |
struct | N3DCOLOR |
Describes color values. More... | |
struct | N3DFLOAT |
Describes a signed 32bit fixed point type. More... | |
struct | N3DLIGHT |
Describes light properties. More... | |
struct | N3DMATERIAL |
Describes material properties. More... | |
struct | N3DMATRIX |
Describes a 4x4 matrix. More... | |
struct | N3DVECTOR3 |
Describes a vector in 3D space. More... | |
struct | N3DVIEWPORT |
Describes a 2D rectangle where the 3D scene is projected into. More... | |
Typedefs | |
typedef unsigned int | N3DBOOL |
Describes a 32bit boolean type. | |
Enumerations | |
enum | N3DCULL { N3DCULL_CW = 1 << 6, N3DCULL_CWW = 1 << 7, N3DCULL_NONE = N3DCULL_CW | N3DCULL_CWW } |
Describes the supported culling modes. More... | |
enum | N3DFILL { N3DFILL_WIRE, N3DFILL_SOLID } |
Describes the supported polygon fill modes. More... | |
enum | N3DFORMAT { N3DFMT_A3P5 = 1, N3DFMT_P2 = 2, N3DFMT_P4 = 3, N3DFMT_P8 = 4, N3DFMT_A5P3 = 6, N3DFMT_A1B5G5R5 = 7 } |
Describes the supported formats. More... | |
enum | N3DPRIMITIVETYPE { N3DPT_TRIANGLELIST, N3DPT_QUADLIST, N3DPT_TRIANGLESTRIP, N3DPT_QUADSTRIP } |
Describes the supported primitive types. More... | |
enum | N3DRENDERSTATETYPE { N3DRS_CULLMODE, N3DRS_ANTIALIASEENABLE, N3DRS_ALPHABLENDENABLE, N3DRS_ALPHATESTENABLE, N3DRS_ALPHAREF, N3DRS_FARPLANEPOLYGONREJECT, N3DRS_FILLMODE, N3DRS_ZENABLE } |
Describes the supported render states. More... | |
enum | N3DTEXTUREADDRESS { N3DTADDRESS_WRAP, N3DTADDRESS_MIRROR, N3DTADDRESS_CLAMP } |
Describes the supported texture address modes. More... | |
enum | N3DTEXTUREOP { N3DTOP_DISABLE, N3DTOP_MODULATE, N3DTOP_BLENDTEXTUREALPHA } |
Describes the supported texture operations. More... | |
enum | N3DTEXTURESTATETYPE { N3DTST_ADDRESSU, N3DTST_ADDRESSV, N3DTST_COLOROP, N3DTST_TEXTURETRANSFORMFLAGS } |
Describes the supported texture state types. More... | |
enum | N3DTEXTURETRANSFORMFLAGS { N3DTTFF_DISABLE = 1, N3DTTFF_NORMAL = 2, N3DTTFF_POSITION = 3 } |
Describes the supported texture transformations. More... | |
enum | N3DTRANSFORMSTATETYPE { N3DTS_PROJECTION = 0, N3DTS_WORLD = 2, N3DTS_TEXTURE = 3, N3DTS_VIEW = 4 } |
Describes the transformation state values. More... | |
enum | N3DZBUFFERTYPE { N3DZB_TRUE = 0, N3DZB_USEW = 1 } |
Describes the supported depth-buffer types. More... |
enum N3DCULL |
Describes the supported culling modes.
Example:
N3DDEVICE device; device.SetRenderState(N3DRS_CULLMODE, N3DCULL_CWW);
enum N3DFILL |
Describes the supported polygon fill modes.
Example:
N3DDEVICE device; device.SetRenderState(N3DRS_FILLMODE, N3DFILL_WIRE);
enum N3DFORMAT |
Describes the supported formats.
enum N3DPRIMITIVETYPE |
enum N3DRENDERSTATETYPE |
Describes the supported render states.
N3DRS_CULLMODE | Describes the culling-mode. See N3DCULL. |
N3DRS_ANTIALIASEENABLE | TRUE to enable, FALSE to disable antialiasing. The default is FALSE. Don't think of antialiasing as texture filtering, it smooths the edges of polygons only, no interpolation between texels is performed. |
N3DRS_ALPHABLENDENABLE | TRUE to enable, FALSE to disable. The default is FALSE. |
N3DRS_ALPHATESTENABLE | TRUE to enable, false to disable. The default is FALSE. |
N3DRS_ALPHAREF | Alpha comparison value from N3DFLOAT(0) through N3DFLOAT(1.0). |
N3DRS_FARPLANEPOLYGONREJECT | TRUE to reject polygons that have an intersection with the far plane, or FALSE to clip and render them. The default is FALSE. |
N3DRS_FILLMODE | Describes the fill-mode. See N3DFILL. The default is N3DFILL_SOLID. |
N3DRS_ZENABLE | Describes the depth-buffering type. See N3DZBUFFERTYPE. The default is N3DZB_TRUE. |
enum N3DTEXTUREADDRESS |
Describes the supported texture address modes.
enum N3DTEXTUREOP |
Describes the supported texture operations.
tc
= texture colorvc
= vertex color enum N3DTEXTURESTATETYPE |
Describes the supported texture state types.
Example:
N3DDEVICE device; device.SetTextureState(N3DTST_ADDRESSU, N3DTADDRESS_MIRROR); device.SetTextureState(N3DTST_ADDRESSV, N3DTADDRESS_MIRROR); device.SetTextureState(N3DTST_COLOROP, N3DTOP_MODULATE);
N3DTST_ADDRESSU | Texture-address mode for the u coordinate. The default is N3DTADDRESS_WRAP. |
N3DTST_ADDRESSV | Texture-address mode for the v coordinate. The default is N3DTADDRESS_WRAP. |
N3DTST_COLOROP | Texture-operation mode. The default is N3DTOP_MODULATE. |
N3DTST_TEXTURETRANSFORMFLAGS | Texture-transformation mode. The default is N3DTTFF_DISABLE. |
Describes the supported texture transformations.
enum N3DZBUFFERTYPE |
Describes the supported depth-buffer types.
Example:
N3DDEVICE device; device.SetRenderState(N3DRS_ZENABLE, N3DZB_USEW);