A LODBucket is a collection of smaller buckets with the same LOD. More...
#include <OgreStaticGeometry.h>
Classes | |
class | LODShadowRenderable |
Nested class to allow shadows. More... | |
Public Types | |
typedef map< String, MaterialBucket * >::type | MaterialBucketMap |
Lookup of Material Buckets in this region. More... | |
typedef MapIterator < MaterialBucketMap > | MaterialIterator |
Iterator over the materials in this LOD. More... | |
Public Member Functions | |
LODBucket (Region *parent, unsigned short lod, Real lodValue) | |
virtual | ~LODBucket () |
void | addRenderables (RenderQueue *queue, uint8 group, Real lodValue) |
Add children to the render queue. More... | |
void | assign (QueuedSubMesh *qsm, ushort atLod) |
Assign a queued submesh to this bucket, using specified mesh LOD. More... | |
void | build (bool stencilShadows) |
Build. More... | |
void | dump (std::ofstream &of) const |
Dump contents for diagnostics. More... | |
EdgeData * | getEdgeList () const |
ushort | getLod (void) const |
Get the lod index. More... | |
Real | getLodValue (void) const |
Get the lod value. More... | |
MaterialIterator | getMaterialIterator (void) |
Get an iterator over the materials in this LOD. More... | |
Region * | getParent (void) |
ShadowCaster::ShadowRenderableList & | getShadowRenderableList () |
bool | isVertexProgramInUse () const |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
void * | operator new[] (size_t sz) |
void | updateShadowRenderables (ShadowTechnique shadowTechnique, const Vector4 &lightPos, HardwareIndexBufferSharedPtr *indexBuffer, bool extrudeVertices, Real extrusionDistance, unsigned long flags=0) |
void | visitRenderables (Renderable::Visitor *visitor, bool debugRenderables) |
Protected Attributes | |
EdgeData * | mEdgeList |
Edge list, used if stencil shadow casting is enabled. More... | |
unsigned short | mLod |
LOD level (0 == full LOD) More... | |
Real | mLodValue |
lod value at which this LOD starts to apply (squared) More... | |
MaterialBucketMap | mMaterialBucketMap |
Lookup of Material Buckets in this region. More... | |
Region * | mParent |
Pointer to parent region. More... | |
QueuedGeometryList | mQueuedGeometryList |
Geometry queued for a single LOD (deallocated here) More... | |
ShadowCaster::ShadowRenderableList | mShadowRenderables |
List of shadow renderables. More... | |
bool | mVertexProgramInUse |
Is a vertex program in use somewhere in this group? More... | |
A LODBucket is a collection of smaller buckets with the same LOD.
Definition at line 307 of file OgreStaticGeometry.h.
typedef map<String, MaterialBucket*>::type Ogre::StaticGeometry::LODBucket::MaterialBucketMap |
Lookup of Material Buckets in this region.
Definition at line 311 of file OgreStaticGeometry.h.
Iterator over the materials in this LOD.
Definition at line 366 of file OgreStaticGeometry.h.
|
virtual |
void Ogre::StaticGeometry::LODBucket::addRenderables | ( | RenderQueue * | queue, |
uint8 | group, | ||
Real | lodValue | ||
) |
Add children to the render queue.
void Ogre::StaticGeometry::LODBucket::assign | ( | QueuedSubMesh * | qsm, |
ushort | atLod | ||
) |
Assign a queued submesh to this bucket, using specified mesh LOD.
void Ogre::StaticGeometry::LODBucket::build | ( | bool | stencilShadows | ) |
Build.
void Ogre::StaticGeometry::LODBucket::dump | ( | std::ofstream & | of | ) | const |
Dump contents for diagnostics.
|
inline |
Definition at line 372 of file OgreStaticGeometry.h.
|
inline |
Get the lod index.
Definition at line 355 of file OgreStaticGeometry.h.
|
inline |
Get the lod value.
Definition at line 357 of file OgreStaticGeometry.h.
MaterialIterator Ogre::StaticGeometry::LODBucket::getMaterialIterator | ( | void | ) |
Get an iterator over the materials in this LOD.
|
inline |
Definition at line 353 of file OgreStaticGeometry.h.
|
inline |
Definition at line 373 of file OgreStaticGeometry.h.
|
inline |
Definition at line 374 of file OgreStaticGeometry.h.
|
inlineinherited |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 107 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 118 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
operator new, with debug line info
Definition at line 67 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 72 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
placement operator new
Definition at line 78 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
array operator new, with debug line info
Definition at line 85 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 90 of file OgreMemoryAllocatedObject.h.
void Ogre::StaticGeometry::LODBucket::updateShadowRenderables | ( | ShadowTechnique | shadowTechnique, |
const Vector4 & | lightPos, | ||
HardwareIndexBufferSharedPtr * | indexBuffer, | ||
bool | extrudeVertices, | ||
Real | extrusionDistance, | ||
unsigned long | flags = 0 |
||
) |
void Ogre::StaticGeometry::LODBucket::visitRenderables | ( | Renderable::Visitor * | visitor, |
bool | debugRenderables | ||
) |
|
protected |
Edge list, used if stencil shadow casting is enabled.
Definition at line 345 of file OgreStaticGeometry.h.
|
protected |
LOD level (0 == full LOD)
Definition at line 337 of file OgreStaticGeometry.h.
|
protected |
lod value at which this LOD starts to apply (squared)
Definition at line 339 of file OgreStaticGeometry.h.
|
protected |
Lookup of Material Buckets in this region.
Definition at line 341 of file OgreStaticGeometry.h.
|
protected |
Pointer to parent region.
Definition at line 335 of file OgreStaticGeometry.h.
|
protected |
Geometry queued for a single LOD (deallocated here)
Definition at line 343 of file OgreStaticGeometry.h.
|
protected |
List of shadow renderables.
Definition at line 349 of file OgreStaticGeometry.h.
|
protected |
Is a vertex program in use somewhere in this group?
Definition at line 347 of file OgreStaticGeometry.h.