The BatchPage class renders entities as StaticGeometry.
virtual void _updateShaders()
void init(PagedGeometry *geom, const Ogre::Any &data)
Replace pure virtual GeometryPage::init.
static Ogre::String getUniqueID(const Ogre::String &prefix)
static unsigned long s_nGUID
PagedGeometry * m_pPagedGeom
void addEntity(Ogre::Entity *ent, const Ogre::Vector3 &position, const Ogre::Quaternion &rotation, const Ogre::Vector3 &scale, const Ogre::ColourValue &color)
Add an entity to the page, at the specified position, rotation, and scale.
Ogre::Real m_fVisibleDist
void removeEntities()
Remove all geometry/entities from the page completely.
void addEntityToBoundingBox()
BatchedGeometry * m_pBatchGeom
TMaterials m_vecUnfadedMaterials
Ogre::SceneManager * m_pSceneMgr
void build()
Perform any final steps to make added entities appear in the scene.
static unsigned long s_nRefCount
const Ogre::AxisAlignedBox & getBoundingBox()
Advanced: Return the bounding box computed with addEntityToBoundingBox()
std::vector< Ogre::MaterialPtr > TMaterials
Ogre::Real m_fInvisibleDist
void setFade(bool enabled, Ogre::Real visibleDist, Ogre::Real invisibleDist)
Sets fade behavior for this page.
void clearBoundingBox()
Advanced: Reset the bounding box used by addEntityToBoundingBox()
void setVisible(bool visible)
Toggle the entire page's visibility.
This base-class can be extended to provide different ways of representing entities.
A class providing highly optimized methods for rendering massive amounts of geometry.