VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends
makVrv::DtQuadRenderer Class Reference

A class which allocates and draws quads. More...

Inheritance diagram for makVrv::DtQuadRenderer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtQuadRenderer (DtOverlayResourceProvider &provider)
 CTOR.
virtual ~DtQuadRenderer ()
 Virtual DTOR.
virtual int numberOfPrimitives () const
 Get the number of Primitives.
virtual void render (bool geocentric, float geocentricAlpha, const double location[3]=0, const double positionMatrix[16]=0)
 Render the primitives.
virtual void releaseResources ()
 Release any rendering resources.
virtual bool isRenderModeSupported (int mode)
 Check to see if render mode is supported.
DtQuadProxyallocateProxy ()
 Create a new Quad proxy.

Protected Types

enum  Styles { Style_Flat = 0, Style_Stippled, Style_Textured, Styles_End }
typedef std::vector
< DtQuadProxy * > 
QuadProxyList

Protected Member Functions

void add (DtQuadProxy *toAdd)
 Adds the proxy to the renderer's internal list of proxies.
void remove (const DtQuadProxy *const proxy, bool isBeingDeleted=false)
 Removes the proxy from the renderer's internal list of proxies.
void dirty (DtQuadProxy *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

DtPrimitiveStylemyStyles [Styles_End]
QuadProxyList myQuads
QuadProxyList myDirtyList

Friends

class DtQuadProxy

Detailed Description

A class which allocates and draws quads.


Member Typedef Documentation

typedef std::vector<DtQuadProxy*> makVrv::DtQuadRenderer::QuadProxyList [protected]

Member Enumeration Documentation

Enumerator:
Style_Flat 
Style_Stippled 
Style_Textured 
Styles_End 

Constructor & Destructor Documentation

CTOR.

Virtual DTOR.


Member Function Documentation

virtual int makVrv::DtQuadRenderer::numberOfPrimitives ( ) const [virtual]

Get the number of Primitives.

Implements makVrv::DtPrimitiveRenderer.

virtual void makVrv::DtQuadRenderer::render ( bool  geocentric,
float  geocentricAlpha,
const double  location[3] = 0,
const double  positionMatrix[16] = 0 
) [virtual]

Render the primitives.

virtual void makVrv::DtQuadRenderer::releaseResources ( ) [virtual]

Release any rendering resources.

Implements makVrv::DtPrimitiveRenderer.

virtual bool makVrv::DtQuadRenderer::isRenderModeSupported ( int  mode) [virtual]

Check to see if render mode is supported.

Implements makVrv::DtPrimitiveRenderer.

Create a new Quad proxy.

void makVrv::DtQuadRenderer::add ( DtQuadProxy toAdd) [protected]

Adds the proxy to the renderer's internal list of proxies.

void makVrv::DtQuadRenderer::remove ( const DtQuadProxy *const  proxy,
bool  isBeingDeleted = false 
) [protected]

Removes the proxy from the renderer's internal list of proxies.

void makVrv::DtQuadRenderer::dirty ( DtQuadProxy proxy) [protected]

Flags the proxy as dirty and in need of an update.

Updates the proxy's render data for all dirty proxies.


Friends And Related Function Documentation

friend class DtQuadProxy [friend]

Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)