![]() |
VR-Forces 4.0.4 Class Documentation
|
The triangle renderer. More...

Public Member Functions | |
| DtTriangleRenderer (DtOverlayResourceProvider &resourceProvider) | |
| CTOR. | |
| virtual | ~DtTriangleRenderer () |
| Virtual DTOR. | |
| virtual int | numberOfPrimitives () const |
| Get the number of Primitives. | |
| virtual void | render (bool geocentric, float geocentricAlpha, const double location[3], const double positionMatrix[16]) |
| Render the primitives. | |
| virtual void | releaseResources () |
| Release any rendering resources. | |
| virtual bool | isRenderModeSupported (int mode) |
| Check to see if render mode is supported. | |
| DtTriangleProxy * | allocateProxy () |
| Create a new Polygon proxy. | |
Protected Types | |
| enum | Styles { Style_Flat = 0, Style_Stippled, Styles_End } |
| typedef std::vector < DtTriangleProxy * > | TriangleProxyList |
Protected Member Functions | |
| void | add (DtTriangleProxy *toAdd) |
| Add the proxy to the renderer's internal list of proxies. | |
| void | remove (const DtTriangleProxy *const proxy, bool isBeingDeleted=false) |
| Remove the proxy from the renderer's internal list of proxies. | |
| void | dirty (DtTriangleProxy *proxy) |
| Flags the proxy as dirty and in need of an update. | |
| void | updateRenderData () |
| Updates the proxy's render data for all dirty proxies. | |
Protected Attributes | |
| DtPrimitiveStyle * | myStyles [Styles_End] |
| TriangleProxyList | myTriangles |
| TriangleProxyList | myDirtyList |
Friends | |
| class | DtTriangleProxy |
The triangle renderer.
typedef std::vector<DtTriangleProxy*> makVrv::DtTriangleRenderer::TriangleProxyList [protected] |
enum makVrv::DtTriangleRenderer::Styles [protected] |
| makVrv::DtTriangleRenderer::DtTriangleRenderer | ( | DtOverlayResourceProvider & | resourceProvider | ) |
CTOR.
| virtual makVrv::DtTriangleRenderer::~DtTriangleRenderer | ( | ) | [virtual] |
Virtual DTOR.
| virtual int makVrv::DtTriangleRenderer::numberOfPrimitives | ( | ) | const [virtual] |
Get the number of Primitives.
Implements makVrv::DtPrimitiveRenderer.
| virtual void makVrv::DtTriangleRenderer::render | ( | bool | geocentric, |
| float | geocentricAlpha, | ||
| const double | location[3], | ||
| const double | positionMatrix[16] | ||
| ) | [virtual] |
Render the primitives.
| virtual void makVrv::DtTriangleRenderer::releaseResources | ( | ) | [virtual] |
Release any rendering resources.
Implements makVrv::DtPrimitiveRenderer.
| virtual bool makVrv::DtTriangleRenderer::isRenderModeSupported | ( | int | mode | ) | [virtual] |
Check to see if render mode is supported.
Implements makVrv::DtPrimitiveRenderer.
Create a new Polygon proxy.
| void makVrv::DtTriangleRenderer::add | ( | DtTriangleProxy * | toAdd | ) | [protected] |
Add the proxy to the renderer's internal list of proxies.
| void makVrv::DtTriangleRenderer::remove | ( | const DtTriangleProxy *const | proxy, |
| bool | isBeingDeleted = false |
||
| ) | [protected] |
Remove the proxy from the renderer's internal list of proxies.
| void makVrv::DtTriangleRenderer::dirty | ( | DtTriangleProxy * | proxy | ) | [protected] |
Flags the proxy as dirty and in need of an update.
| void makVrv::DtTriangleRenderer::updateRenderData | ( | ) | [protected] |
Updates the proxy's render data for all dirty proxies.
friend class DtTriangleProxy [friend] |
DtPrimitiveStyle* makVrv::DtTriangleRenderer::myStyles[Styles_End] [protected] |