GhoulPrimitive::OgreRenderableDrawer Class Reference

#include <GhoulPrimitives.h>

Inheritance diagram for GhoulPrimitive::OgreRenderableDrawer:

Inheritance graph
[legend]
Collaboration diagram for GhoulPrimitive::OgreRenderableDrawer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 OgreRenderableDrawer ()
 construction, a primitive can be passed to initialize the buffers right away
virtual ~OgreRenderableDrawer ()
virtual void Prepare (eOpType opType, eGeometryChange gcHint, size_t vertexCount, size_t indexCount=0, bool hasNormals=true, bool hasTexCoords=true)
 Drawer interface.
virtual void AddVertex (kReal x, kReal y, kReal z=0.0, kReal nx=0.0, kReal ny=0.0, kReal nz=0.0, kReal u=0.0, kReal v=0.0)
virtual void AddIndex (IndexInt i)
virtual void Finish ()
virtual Ogre::Real getBoundingRadius (void) const
 Implementation of Ogre::SimpleRenderable.
virtual Ogre::Real getSquaredViewDepth (const Ogre::Camera *cam) const
 Implementation of Ogre::SimpleRenderable.

Static Public Member Functions

static
Ogre::RenderOperation::OperationType 
GetOgreOpType (const eOpType opType)
 Set the type of operation to draw with.
static Ogre::HardwareBuffer::Usage GetOgreHWBUsage (const eGeometryChange geometryChangeHint)
 a hint at how often the geometry will change (and will need to be resend to the 3d-card)

Protected Attributes

bool mReady
bool mVertexDecInitialized
bool mIndexBufferInitialized
bool mHasNormals
bool mHasTexCoords
bool mBoundingBoxEmpty
Vector3 mvAABMin
Vector3 mvAABMax
RealmWritePtr
IndexIntmIndexWritePtr
Ogre::HardwareVertexBufferSharedPtr mHWVBuf
Ogre::HardwareIndexBufferSharedPtr mHWIBuf
size_t miVerticesLeft
size_t miIndicesLeft
size_t mVertexBufferCapacity
size_t mIndexBufferCapacity


Detailed Description

Definition at line 98 of file GhoulPrimitives.h.


Constructor & Destructor Documentation

OgreRenderableDrawer::OgreRenderableDrawer (  ) 

construction, a primitive can be passed to initialize the buffers right away

construction

Definition at line 27 of file GhoulPrimitivesOgre.cpp.

References mIndexBufferCapacity, mIndexBufferInitialized, mReady, mVertexBufferCapacity, mVertexDecInitialized, and PROFILE.

OgreRenderableDrawer::~OgreRenderableDrawer (  )  [virtual]

Definition at line 37 of file GhoulPrimitivesOgre.cpp.

References mIndexBufferInitialized, and PROFILE.


Member Function Documentation

void OgreRenderableDrawer::Prepare ( eOpType  opType,
eGeometryChange  gcHint,
size_t  vertexCount,
size_t  indexCount = 0,
bool  hasNormals = true,
bool  hasTexCoords = true 
) [virtual]

void OgreRenderableDrawer::AddVertex ( kReal  x,
kReal  y,
kReal  z = 0.0,
kReal  nx = 0.0,
kReal  ny = 0.0,
kReal  nz = 0.0,
kReal  u = 0.0,
kReal  v = 0.0 
) [virtual]

void OgreRenderableDrawer::AddIndex ( IndexInt  i  )  [virtual]

Reimplemented from GhoulPrimitive::Drawer.

Definition at line 167 of file GhoulPrimitivesOgre.cpp.

References assert, miIndicesLeft, mIndexWritePtr, mReady, and PROFILE.

void OgreRenderableDrawer::Finish (  )  [virtual]

Ogre::RenderOperation::OperationType OgreRenderableDrawer::GetOgreOpType ( const eOpType  opType  )  [static]

Ogre::HardwareBuffer::Usage OgreRenderableDrawer::GetOgreHWBUsage ( const eGeometryChange  geometryChangeHint  )  [static]

a hint at how often the geometry will change (and will need to be resend to the 3d-card)

Definition at line 214 of file GhoulPrimitivesOgre.cpp.

References GhoulPrimitive::kGeometryChange_AlmostEveryFrame, GhoulPrimitive::kGeometryChange_Often, GhoulPrimitive::kGeometryChange_Seldom, and PROFILE.

Ogre::Real OgreRenderableDrawer::getBoundingRadius ( void   )  const [virtual]

Implementation of Ogre::SimpleRenderable.

Definition at line 186 of file GhoulPrimitivesOgre.cpp.

References max(), and PROFILE.

Ogre::Real OgreRenderableDrawer::getSquaredViewDepth ( const Ogre::Camera *  cam  )  const [virtual]

Implementation of Ogre::SimpleRenderable.

Definition at line 190 of file GhoulPrimitivesOgre.cpp.

References PROFILE.


Member Data Documentation

Definition at line 122 of file GhoulPrimitives.h.

Referenced by AddIndex(), AddVertex(), Finish(), OgreRenderableDrawer(), and Prepare().

Definition at line 123 of file GhoulPrimitives.h.

Referenced by OgreRenderableDrawer(), and Prepare().

Definition at line 124 of file GhoulPrimitives.h.

Referenced by OgreRenderableDrawer(), Prepare(), and ~OgreRenderableDrawer().

Definition at line 125 of file GhoulPrimitives.h.

Referenced by AddVertex(), and Prepare().

Definition at line 126 of file GhoulPrimitives.h.

Referenced by AddVertex(), and Prepare().

Definition at line 127 of file GhoulPrimitives.h.

Referenced by AddVertex(), and Prepare().

Definition at line 128 of file GhoulPrimitives.h.

Referenced by AddVertex(), Finish(), and Prepare().

Definition at line 129 of file GhoulPrimitives.h.

Referenced by AddVertex(), Finish(), and Prepare().

Definition at line 130 of file GhoulPrimitives.h.

Referenced by AddVertex(), and Prepare().

Definition at line 131 of file GhoulPrimitives.h.

Referenced by AddIndex(), and Prepare().

Ogre::HardwareVertexBufferSharedPtr GhoulPrimitive::OgreRenderableDrawer::mHWVBuf [protected]

Definition at line 132 of file GhoulPrimitives.h.

Referenced by Finish(), and Prepare().

Ogre::HardwareIndexBufferSharedPtr GhoulPrimitive::OgreRenderableDrawer::mHWIBuf [protected]

Definition at line 133 of file GhoulPrimitives.h.

Referenced by Finish(), and Prepare().

Definition at line 134 of file GhoulPrimitives.h.

Referenced by AddVertex(), Finish(), and Prepare().

Definition at line 135 of file GhoulPrimitives.h.

Referenced by AddIndex(), Finish(), and Prepare().

Definition at line 136 of file GhoulPrimitives.h.

Referenced by Finish(), OgreRenderableDrawer(), and Prepare().

Definition at line 137 of file GhoulPrimitives.h.

Referenced by Finish(), OgreRenderableDrawer(), and Prepare().


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

Generated on Tue May 22 06:00:35 2012 for cpp by  doxygen 1.5.6