Lugre::cFastBatch::cSubBatch Class Reference

one material group More...

Collaboration diagram for Lugre::cFastBatch::cSubBatch:

Collaboration graph
[legend]

List of all members.

Public Types

enum  { kCommonSourceIndex = 0 }

Public Member Functions

 cSubBatch (cFastBatch *pParent, cBufferedSubMesh &pBufferedSubMesh, const bool bColourOverride)
 ~cSubBatch ()
void AddInstance (cInstance pInstance, const float fOrderValue)
void SetDisplayRange (const float fMin, const float fMax)
 inclusive range of order vals
void Build ()
void setMaterial (Ogre::MaterialPtr &mat)
const Ogre::MaterialPtr & getMaterial (void) const
void setMaterialName (const Ogre::String &mat)
Ogre::String getMaterialName () const
void getRenderOperation (Ogre::RenderOperation &op)
virtual Ogre::Real getSquaredViewDepth (const Ogre::Camera *cam) const
const Ogre::LightList & getLights (void) const
void getWorldTransforms (Ogre::Matrix4 *xform) const
const Ogre::Quaternion & getWorldOrientation (void) const
const Ogre::Vector3 & getWorldPosition (void) const

Public Attributes

int miVertexSize
int miTotalIndexCount
std::multimap< float, cInstancemInstances
std::map< float, int > mOrderValueOffsets
Ogre::VertexData * mpVertexData
Ogre::IndexData * mpIndexData
bool mbAddColourAtEnd
Ogre::VertexElementType miPreferredColourFormat
 for mbAddColourAtEnd
Ogre::MaterialPtr mpMat
cFastBatchmpParent

Static Public Attributes

static Ogre::RenderSystem * mpRenderSys = 0
 for colour conversion


Detailed Description

one material group

Definition at line 132 of file lugre_fastbatch.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
kCommonSourceIndex 

Definition at line 133 of file lugre_fastbatch.h.


Constructor & Destructor Documentation

Lugre::cFastBatch::cSubBatch::cSubBatch ( cFastBatch pParent,
cBufferedSubMesh pBufferedSubMesh,
const bool  bColourOverride 
)

Lugre::cFastBatch::cSubBatch::~cSubBatch (  ) 

Definition at line 197 of file lugre_fastbatch.cpp.

References mpIndexData, and mpVertexData.


Member Function Documentation

void Lugre::cFastBatch::cSubBatch::AddInstance ( cInstance  pInstance,
const float  fOrderValue 
)

void Lugre::cFastBatch::cSubBatch::SetDisplayRange ( const float  fMin,
const float  fMax 
)

inclusive range of order vals

Definition at line 215 of file lugre_fastbatch.cpp.

References assert, miTotalIndexCount, mOrderValueOffsets, mpIndexData, and mpVertexData.

void Lugre::cFastBatch::cSubBatch::Build (  ) 

void Lugre::cFastBatch::cSubBatch::setMaterial ( Ogre::MaterialPtr &  mat  )  [inline]

Definition at line 157 of file lugre_fastbatch.h.

References mpMat.

Referenced by cSubBatch().

const Ogre::MaterialPtr& Lugre::cFastBatch::cSubBatch::getMaterial ( void   )  const [inline]

Definition at line 158 of file lugre_fastbatch.h.

References mpMat.

void Lugre::cFastBatch::cSubBatch::setMaterialName ( const Ogre::String &  mat  ) 

Definition at line 438 of file lugre_fastbatch.cpp.

References mpMat.

Ogre::String Lugre::cFastBatch::cSubBatch::getMaterialName (  )  const

Definition at line 446 of file lugre_fastbatch.cpp.

References mpMat.

void Lugre::cFastBatch::cSubBatch::getRenderOperation ( Ogre::RenderOperation &  op  ) 

Definition at line 448 of file lugre_fastbatch.cpp.

References mpIndexData, and mpVertexData.

Ogre::Real Lugre::cFastBatch::cSubBatch::getSquaredViewDepth ( const Ogre::Camera *  cam  )  const [virtual]

Definition at line 433 of file lugre_fastbatch.cpp.

References Lugre::cFastBatch::GetBoundsCenter(), and mpParent.

const Ogre::LightList& Lugre::cFastBatch::cSubBatch::getLights ( void   )  const [inline]

Definition at line 164 of file lugre_fastbatch.h.

References mpParent.

void Lugre::cFastBatch::cSubBatch::getWorldTransforms ( Ogre::Matrix4 *  xform  )  const

Definition at line 457 of file lugre_fastbatch.cpp.

References mpParent.

const Ogre::Quaternion & Lugre::cFastBatch::cSubBatch::getWorldOrientation ( void   )  const

Definition at line 460 of file lugre_fastbatch.cpp.

References mpParent.

const Ogre::Vector3 & Lugre::cFastBatch::cSubBatch::getWorldPosition ( void   )  const

Definition at line 463 of file lugre_fastbatch.cpp.

References mpParent.


Member Data Documentation

Definition at line 134 of file lugre_fastbatch.h.

Referenced by Build(), and cSubBatch().

Definition at line 135 of file lugre_fastbatch.h.

Referenced by AddInstance(), cSubBatch(), and SetDisplayRange().

Definition at line 136 of file lugre_fastbatch.h.

Referenced by AddInstance(), and Build().

Definition at line 137 of file lugre_fastbatch.h.

Referenced by Build(), and SetDisplayRange().

Ogre::RenderSystem * Lugre::cFastBatch::cSubBatch::mpRenderSys = 0 [static]

for colour conversion

Definition at line 140 of file lugre_fastbatch.h.

Referenced by Build().

Definition at line 141 of file lugre_fastbatch.h.

Referenced by Build(), and cSubBatch().

for mbAddColourAtEnd

Definition at line 142 of file lugre_fastbatch.h.

Referenced by AddInstance(), and cSubBatch().


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

Generated on Thu Feb 9 06:00:20 2012 for cpp by  doxygen 1.5.6