Public API Reference |
#include <d3d9_renderer.h>
Inheritance diagram for aeDirect3D9Renderer:
Public Member Functions | |
aeDirect3D9Renderer (aeRegistry *reg, bool fullscreen, int winWidth, int winHeight, int winBpp) | |
Create a new Direct3D 9 renderer instance. | |
void | initialize () |
Initialize the rendering system. | |
void | reinitialize () |
Re-initialize the rendering system. | |
void | shutdown () |
Shutdown the rendering system. | |
bool | createWindow () |
Create a rendering window. | |
void | closeWindow () |
Close a rendering window. | |
void | setOptions (aeRendererOptions &ropts, bool reinitialize=false) |
Set rendering options. | |
void | setShadeMode (aeShadeMode sm) |
Set primitive shading mode (flat or smooth shading). | |
aeShadeMode | getShadeMode () const |
Get primitive shading mode. | |
void | addViewport (aeViewport *vp, bool becomesActive=false) |
Add a new viewport. | |
void | removeViewport (const char *vpName) |
Remove a viewport given its name. | |
void | removeAllViewports () |
Remove all viewports. | |
aeViewport | findViewportByName (const char *vpName) const |
Find a viewport by name. | |
aeViewport | getActiveViewport () const |
Get the active viewport. | |
void | _flushPipeline () |
Flush the rendering pipeline. | |
void | _setActiveTextureUnit (int texUnit) |
Set the active texture unit. | |
int | _getActiveTextureUnit () const |
Get the currently active texture unit. | |
void | _setTextureParams (aeRendererUnit targetTex, aeTextureFilterMode tfMode, aeTextureEnvironment texEnv) |
Set all texture parameters in one call. | |
void | _setTextureFilter (aeRendererUnit targetTex, aeTextureFilterMode tfMode) |
Set texture filtering mode (none, bilinear, or trilinear). | |
aeTextureFilterMode | _getTextureFilter (aeRenderUnit targetTex) const |
Get the texture filtering mode for specified target texture. | |
void | _setTextureEnvironment (aeTextureEnvironment texEnv) |
Set the texture environment parameters. | |
aeTextureEnvironment | _getTextureEnvironment () const |
Get the current texture environment parameters. | |
void | _setDepthBufferParams (bool depthTest, bool depthWrite, aeDepthBufferFunc depthFunc) |
Set depth buffer parameters. | |
void | _setDepthBufferTest (bool depthTest) |
Enable/disable depth testing. | |
bool | _getDepthBufferTest () const |
Check if depth testing is on or off. | |
void | _setDepthBufferWrite (bool depthWrite) |
Enable/disable writing to depth buffer. | |
bool | _getDepthBufferWrite () const |
Check if the depth buffer is writable or not. | |
void | _setDepthBufferFunction (aeDepthBufferFunc depthFunc) |
Set depth buffer comparison function. | |
aeDepthBufferFunc | _getDepthBufferFunction () const |
Get the current depth buffer comparison function. | |
void | _setBlendFunction (aeBlendFunc src, aeBlendFunc dest) |
Set the blending parameters. | |
void | _setWorldMatrix (const aeMatrix4 &worldMat) |
Replace the current world transform matrix in the world matrix stack. | |
void | _setViewMatrix (const aeMatrix4 &viewMat) |
Replace the current view transform matrix in the view matrix stack. | |
void | _setProjectionMatrix (const aeMatrix4 &projMat) |
Replace the current projection transform matrix in the projection matrix stack. | |
void | _pushWorldMatrix () |
Push (copy) the current world transform matrix down one level in the world matrix stack. | |
void | _pushViewMatrix () |
Push (copy) the current view transform matrix down one level in the view matrix stack. | |
void | _pushProjectionMatrix () |
Push (copy) the current projection transform matrix down one level in the projection matrix stack. | |
void | _popWorldMatrix () |
Pop (destroy) the current world transform matrix in the world matrix stack. | |
void | _popViewMatrix () |
Pop (destroy) the current view transform matrix in the view matrix stack. | |
void | _popProjectionMatrix () |
Pop (destroy) the current projection transform matrix in the projection matrix stack. | |
void | _prepareFrame () |
Prepare for rendering a frame. | |
void | _render (aeRenderOperation &renderOp) |
Issue a rendering operation on the active viewport. | |
void | _finishFrame () |
Finish rendering a frame. |
This is the AE Direct3D 9 rendering system. It implements the general 3D API interface defined in aeRenderer.
Definition at line 43 of file d3d9_renderer.h.
|
Create a new Direct3D 9 renderer instance. The parameters are sent to aeRenderer to give the rendererOpts initial values.
|
|
Finish rendering a frame. This is called by aeEngine::render() (and before aecmdPostFrame event) after rendering a frame. Implements aeRenderer. |
|
Flush the rendering pipeline. This causes the renderer to flush the rendering pipeline causing all pending buffers to be emptied and remaining commands executed. This is very similiar to the OpenGL glFlush command. Implements aeRenderer. |
|
Get the currently active texture unit.
Implements aeRenderer. |
|
Get the current depth buffer comparison function.
Implements aeRenderer. |
|
Check if depth testing is on or off.
Implements aeRenderer. |
|
Check if the depth buffer is writable or not.
Implements aeRenderer. |
|
Get the current texture environment parameters.
Implements aeRenderer. |
|
Get the texture filtering mode for specified target texture.
|
|
Pop (destroy) the current projection transform matrix in the projection matrix stack. This replaces the current projection transform matrix with the one below it. Implements aeRenderer. |
|
Pop (destroy) the current view transform matrix in the view matrix stack. This replaces the current view transform matrix with the one below it. Implements aeRenderer. |
|
Pop (destroy) the current world transform matrix in the world matrix stack. This replaces the current world transform matrix with the one below it. Implements aeRenderer. |
|
Prepare for rendering a frame. This is called by aeEngine::render() (and after aecmdPreFrame event) before actually drawing the frame. Implements aeRenderer. |
|
Push (copy) the current projection transform matrix down one level in the projection matrix stack. This means that after this call the matrix on top of the projection matrix stack is identical to the one below it. Implements aeRenderer. |
|
Push (copy) the current view transform matrix down one level in the view matrix stack. This means that after this call the matrix on top of the view matrix stack is identical to the one below it. Implements aeRenderer. |
|
Push (copy) the current world transform matrix down one level in the world matrix stack. This means that after this call the matrix on top of the world matrix stack is identical to the one below it. Implements aeRenderer. |
|
Issue a rendering operation on the active viewport.
This is used by the engine to do any graphics rendering on the screen.
Implements aeRenderer. |
|
Set the active texture unit.
Implements aeRenderer. |
|
Set the blending parameters.
Implements aeRenderer. |
|
Set depth buffer comparison function. See aeDepthBufferFunc for possible values.
Implements aeRenderer. |
|
Set depth buffer parameters. This allows to set all the parameters in one call.
Implements aeRenderer. |
|
Enable/disable depth testing.
Implements aeRenderer. |
|
Enable/disable writing to depth buffer.
Implements aeRenderer. |
|
Replace the current projection transform matrix in the projection matrix stack.
Implements aeRenderer. |
|
Set the texture environment parameters.
Implements aeRenderer. |
|
Set texture filtering mode (none, bilinear, or trilinear).
|
|
Set all texture parameters in one call. This allows you to set the texturefilter and texture-environment for a texture target in one call. See the documentation of the parameter types for possible param values and their description.
|
|
Replace the current view transform matrix in the view matrix stack.
Implements aeRenderer. |
|
Replace the current world transform matrix in the world matrix stack.
Implements aeRenderer. |
|
Add a new viewport. If you want the new viewport to become the active viewport set becomesActive to true.
Implements aeRenderer. |
|
Close a rendering window.
Implements aeRenderer. |
|
Create a rendering window.
Implements aeRenderer. |
|
Find a viewport by name.
Implements aeRenderer. |
|
Get the active viewport.
Implements aeRenderer. |
|
Get primitive shading mode.
Implements aeRenderer. |
|
Initialize the rendering system.
Implements aeRenderer. |
|
Re-initialize the rendering system. This is used to reinit the rendering system after e.g. a configuration change.
Implements aeRenderer. |
|
Remove all viewports.
Implements aeRenderer. |
|
Remove a viewport given its name.
Implements aeRenderer. |
|
Set rendering options.
Implements aeRenderer. |
|
Set primitive shading mode (flat or smooth shading). Specifies how vertex colors should be shaded over a primitive. For possible values see aeShadingMode.
Implements aeRenderer. |
|
Shutdown the rendering system.
Implements aeRenderer. |