Torque Shader Engine DocumentationCVS Revision Label 0.1.x |
The TSE GFX layer is an abstract graphics layer designed to reside above graphics APIs such as Direct3D and OpenGL. GFX related files can be found in the engine/gfx directory. The GFX API itself is extensively documented in the dOxygen format. See GFXDevice.h for more details.
The GFX layer has some features and rendering concepts that were not present in dgl in the TGE. Besides the shader support, the concept of using vertex and primitive buffers is new and required for all draw calls. See GFXDevice.h for more information on how to use the new API. For more information on vertex buffers also see the Direct3D SDK documentation.
At the moment, the GFX layer is close in concept to Direct3D. Expect changes to GFX to make it less weighted to Direct3D in the future as OpenGL is implemented.