#include <n3ddevice.h>
Public Member Functions | |
void | BeginScene () |
Begins a scene. | |
void | Clear (const unsigned _flags, const N3DCOLOR &_color, const N3DFLOAT _depth) |
Sets clear properties for the back and depth-buffer. | |
void | DrawPrimitive (const N3DCMDSTREAM &_stream) |
Draws a command buffer. | |
void | EndScene () |
Ends a scene. | |
N3DBOOL | GetLightEnable (const unsigned _index) const |
Retrieves the enabled or disabled status of a light. | |
unsigned | GetTexture () const |
Gets the current texture. | |
unsigned | GetTexturePalette () const |
Gets the current texture palette. | |
void | GetViewport (N3DVIEWPORT &_viewport) const |
Gets the viewport parameters. | |
void | Init () |
Initializes the 3D device. | |
void | LightEnable (const unsigned _index, const N3DBOOL _enable) |
Enables or disables a light. | |
void | MultiplyTransform (const N3DTRANSFORMSTATETYPE _state, const N3DMATRIX &_m) |
Multiplies a transformation matrix with the specified matrix. | |
void | Present () |
Present the content of the back buffer. | |
void | Reset () |
Resets the 3D device to its default states. | |
void | SetLight (const unsigned _index, const N3DLIGHT &_light) |
Sets lighting properties. | |
void | SetMaterial (const N3DMATERIAL &_material) |
Sets the material properties. | |
void | SetRenderState (const N3DRENDERSTATETYPE _state, const unsigned _value) |
Sets a render-state parameter. | |
void | SetTexture (const unsigned _vramOffset, const unsigned _width, const unsigned _height, const N3DFORMAT _format) |
Sets the current texture. | |
void | SetTexturePalette (const unsigned _vramOffset, const N3DFORMAT _format) |
Sets the current texture palette. | |
void | SetTextureState (const N3DTEXTURESTATETYPE _type, const unsigned _value) |
Sets a texture state. | |
void | SetTransform (const N3DTRANSFORMSTATETYPE _state, const N3DMATRIX &_m) |
Sets a transformation matrix for the specified state. | |
void | SetViewport (const N3DVIEWPORT &_viewport) |
Sets the viewport parameters. |
The N3DDEVICE represents the interface to the 3D hardware. Applications use it to set transformations, materials, lights, textures and render primitives.