
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, cInstance > | mInstances |
| std::map< float, int > | mOrderValueOffsets |
| Ogre::VertexData * | mpVertexData |
| Ogre::IndexData * | mpIndexData |
| bool | mbAddColourAtEnd |
| Ogre::VertexElementType | miPreferredColourFormat |
| for mbAddColourAtEnd | |
| Ogre::MaterialPtr | mpMat |
| cFastBatch * | mpParent |
Static Public Attributes | |
| static Ogre::RenderSystem * | mpRenderSys = 0 |
| for colour conversion | |
Definition at line 132 of file lugre_fastbatch.h.
| anonymous enum |
| Lugre::cFastBatch::cSubBatch::cSubBatch | ( | cFastBatch * | pParent, | |
| cBufferedSubMesh & | pBufferedSubMesh, | |||
| const bool | bColourOverride | |||
| ) |
Definition at line 128 of file lugre_fastbatch.cpp.
References assert, DEBUG_FASTBATCH, Lugre::cBufferedSubMesh::GetBufferedVertexData(), Lugre::cBufferedSubMesh::GetMat(), Lugre::cBufferedVertexData::GetVertexDecl(), kCommonSourceIndex, mbAddColourAtEnd, miPreferredColourFormat, miTotalIndexCount, miVertexSize, mpIndexData, mpMat, mpParent, mpVertexData, and setMaterial().
| Lugre::cFastBatch::cSubBatch::~cSubBatch | ( | ) |
| void Lugre::cFastBatch::cSubBatch::AddInstance | ( | cInstance | pInstance, | |
| const float | fOrderValue | |||
| ) |
Definition at line 202 of file lugre_fastbatch.cpp.
References Lugre::cBufferedSubMesh::GetIndexCount(), Lugre::cBufferedSubMesh::GetVertexCount(), mInstances, miPreferredColourFormat, miTotalIndexCount, Lugre::cFastBatch::cInstance::mpBufferedSubMesh, mpIndexData, mpVertexData, and Lugre::cFastBatch::cInstance::mvCol.
Referenced by Lugre::cFastBatch::AddMesh().
| 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 | ( | ) |
Definition at line 242 of file lugre_fastbatch.cpp.
References DEBUG_FASTBATCH, Lugre::cBufferedSubMesh::GetBufferedVertexData(), Lugre::cBufferedSubMesh::GetIndexCount(), Lugre::cBufferedSubMesh::GetIndexData(), Lugre::cBufferedVertexData::GetVertexCount(), Lugre::cBufferedVertexData::GetVertexData(), Lugre::cBufferedVertexData::GetVertexDecl(), kCommonSourceIndex, mbAddColourAtEnd, mInstances, miVertexSize, mOrderValueOffsets, Lugre::cFastBatch::cInstance::mpBufferedSubMesh, mpIndexData, mpRenderSys, mpVertexData, Lugre::cFastBatch::cInstance::mqRot, Lugre::cFastBatch::cInstance::mvCol, Lugre::cFastBatch::cInstance::mvPos, and Lugre::cFastBatch::cInstance::mvScale.
| void Lugre::cFastBatch::cSubBatch::setMaterial | ( | Ogre::MaterialPtr & | mat | ) | [inline] |
| const Ogre::MaterialPtr& Lugre::cFastBatch::cSubBatch::getMaterial | ( | void | ) | const [inline] |
| void Lugre::cFastBatch::cSubBatch::setMaterialName | ( | const Ogre::String & | mat | ) |
| Ogre::String Lugre::cFastBatch::cSubBatch::getMaterialName | ( | ) | const |
| void Lugre::cFastBatch::cSubBatch::getRenderOperation | ( | Ogre::RenderOperation & | op | ) |
| 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] |
| void Lugre::cFastBatch::cSubBatch::getWorldTransforms | ( | Ogre::Matrix4 * | xform | ) | const |
| const Ogre::Quaternion & Lugre::cFastBatch::cSubBatch::getWorldOrientation | ( | void | ) | const |
| const Ogre::Vector3 & Lugre::cFastBatch::cSubBatch::getWorldPosition | ( | void | ) | const |
Definition at line 135 of file lugre_fastbatch.h.
Referenced by AddInstance(), cSubBatch(), and SetDisplayRange().
| std::multimap<float,cInstance> Lugre::cFastBatch::cSubBatch::mInstances |
| std::map<float,int> Lugre::cFastBatch::cSubBatch::mOrderValueOffsets |
| Ogre::VertexData* Lugre::cFastBatch::cSubBatch::mpVertexData |
Definition at line 138 of file lugre_fastbatch.h.
Referenced by AddInstance(), Build(), cSubBatch(), getRenderOperation(), SetDisplayRange(), and ~cSubBatch().
| Ogre::IndexData* Lugre::cFastBatch::cSubBatch::mpIndexData |
Definition at line 139 of file lugre_fastbatch.h.
Referenced by AddInstance(), Build(), cSubBatch(), getRenderOperation(), SetDisplayRange(), and ~cSubBatch().
Ogre::RenderSystem * Lugre::cFastBatch::cSubBatch::mpRenderSys = 0 [static] |
| Ogre::VertexElementType Lugre::cFastBatch::cSubBatch::miPreferredColourFormat |
for mbAddColourAtEnd
Definition at line 142 of file lugre_fastbatch.h.
Referenced by AddInstance(), and cSubBatch().
| Ogre::MaterialPtr Lugre::cFastBatch::cSubBatch::mpMat |
Definition at line 143 of file lugre_fastbatch.h.
Referenced by cSubBatch(), getMaterial(), getMaterialName(), setMaterial(), and setMaterialName().
Definition at line 144 of file lugre_fastbatch.h.
Referenced by cSubBatch(), getLights(), getSquaredViewDepth(), getWorldOrientation(), getWorldPosition(), and getWorldTransforms().
1.5.6