OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
A MaterialBucket is a collection of smaller buckets with the same Material (and implicitly the same LOD). More...
#include <OgreStaticGeometry.h>
Public Types | |
typedef std::vector< GeometryBucket * > | GeometryBucketList |
list of Geometry Buckets in this region | |
typedef VectorIterator< GeometryBucketList > | GeometryIterator |
Iterator over geometry. | |
Public Member Functions | |
MaterialBucket (LODBucket *parent, const MaterialPtr &material) | |
virtual | ~MaterialBucket () |
void | _setMaterial (const MaterialPtr &material) |
Override Material without changing the partitioning. For advanced use only. | |
void | addRenderables (RenderQueue *queue, uint8 group, Real lodValue) |
Add children to the render queue. | |
void | assign (QueuedGeometry *qsm) |
Assign geometry to this bucket. | |
void | build (bool stencilShadows) |
Build. | |
Technique * | getCurrentTechnique (void) const |
Get the current Technique. | |
GeometryIterator | getGeometryIterator (void) |
const GeometryBucketList & | getGeometryList () const |
Get a list of the contained geometry. | |
const MaterialPtr & | getMaterial (void) const |
Get the material for this bucket. | |
const String & | getMaterialName (void) const |
Get the material name. | |
LODBucket * | getParent (void) |
void | visitRenderables (Renderable::Visitor *visitor, bool debugRenderables) |
A MaterialBucket is a collection of smaller buckets with the same Material (and implicitly the same LOD).
list of Geometry Buckets in this region
Iterator over geometry.
Ogre::StaticGeometry::MaterialBucket::MaterialBucket | ( | LODBucket * | parent, |
const MaterialPtr & | material | ||
) |
|
virtual |
Get the material name.
References Ogre::Resource::getName().
void Ogre::StaticGeometry::MaterialBucket::assign | ( | QueuedGeometry * | qsm | ) |
Assign geometry to this bucket.
void Ogre::StaticGeometry::MaterialBucket::addRenderables | ( | RenderQueue * | queue, |
uint8 | group, | ||
Real | lodValue | ||
) |
Add children to the render queue.
|
inline |
Get the material for this bucket.
void Ogre::StaticGeometry::MaterialBucket::_setMaterial | ( | const MaterialPtr & | material | ) |
Override Material without changing the partitioning. For advanced use only.
|
inline |
Get a list of the contained geometry.
GeometryIterator Ogre::StaticGeometry::MaterialBucket::getGeometryIterator | ( | void | ) |
Get the current Technique.
void Ogre::StaticGeometry::MaterialBucket::visitRenderables | ( | Renderable::Visitor * | visitor, |
bool | debugRenderables | ||
) |