Classes | Public Types | Public Member Functions | Protected Attributes
Ogre::StaticGeometry::LODBucket Class Reference

A LODBucket is a collection of smaller buckets with the same LOD. More...

#include <OgreStaticGeometry.h>

Inheritance diagram for Ogre::StaticGeometry::LODBucket:
Inheritance graph
[legend]

List of all members.

Classes

class  LODShadowRenderable
 Nested class to allow shadows. More...

Public Types

typedef map< String,
MaterialBucket * >::type 
MaterialBucketMap
 Lookup of Material Buckets in this region.
typedef MapIterator
< MaterialBucketMap
MaterialIterator
 Iterator over the materials in this LOD.

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.
void assign (QueuedSubMesh *qsm, ushort atLod)
 Assign a queued submesh to this bucket, using specified mesh LOD.
void build (bool stencilShadows)
 Build.
void dump (std::ofstream &of) const
 Dump contents for diagnostics.
EdgeDatagetEdgeList () const
ushort getLod (void) const
 Get the LOD index.
Real getLodValue (void) const
 Get the LOD value.
MaterialIterator getMaterialIterator (void)
 Get an iterator over the materials in this LOD.
RegiongetParent (void)
ShadowCaster::ShadowRenderableListgetShadowRenderableList ()
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
void * operator new (size_t sz)
void * operator new (size_t sz, void *ptr)
 placement operator new
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info
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

EdgeDatamEdgeList
 Edge list, used if stencil shadow casting is enabled.
unsigned short mLod
 LOD level (0 == full LOD)
Real mLodValue
 LOD value at which this LOD starts to apply (squared)
MaterialBucketMap mMaterialBucketMap
 Lookup of Material Buckets in this region.
RegionmParent
 Pointer to parent region.
QueuedGeometryList mQueuedGeometryList
 Geometry queued for a single LOD (deallocated here)
ShadowCaster::ShadowRenderableList mShadowRenderables
 List of shadow renderables.
bool mVertexProgramInUse
 Is a vertex program in use somewhere in this group?

Detailed Description

A LODBucket is a collection of smaller buckets with the same LOD.

Remarks:
LOD refers to Mesh LOD here. Material LOD can change separately at the next bucket down from this.

Definition at line 308 of file OgreStaticGeometry.h.


Member Typedef Documentation

Lookup of Material Buckets in this region.

Definition at line 312 of file OgreStaticGeometry.h.

Iterator over the materials in this LOD.

Definition at line 369 of file OgreStaticGeometry.h.


Constructor & Destructor Documentation

Ogre::StaticGeometry::LODBucket::LODBucket ( Region parent,
unsigned short  lod,
Real  lodValue 
)

Member Function Documentation

void Ogre::StaticGeometry::LODBucket::addRenderables ( RenderQueue queue,
uint8  group,
Real  lodValue 
)

Add children to the render queue.

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.

Definition at line 375 of file OgreStaticGeometry.h.

Get the LOD index.

Definition at line 358 of file OgreStaticGeometry.h.

Get the LOD value.

Definition at line 360 of file OgreStaticGeometry.h.

Get an iterator over the materials in this LOD.

Definition at line 356 of file OgreStaticGeometry.h.

Definition at line 376 of file OgreStaticGeometry.h.

Definition at line 377 of file OgreStaticGeometry.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr) [inherited]

Definition at line 96 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
void *   
) [inherited]

Definition at line 102 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
const char *  ,
int  ,
const char *   
) [inherited]

Definition at line 108 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr) [inherited]

Definition at line 113 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr,
const char *  ,
int  ,
const char *   
) [inherited]

Definition at line 119 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char *  file,
int  line,
const char *  func 
) [inherited]

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz) [inherited]

Definition at line 73 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void *  ptr 
) [inherited]

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char *  file,
int  line,
const char *  func 
) [inherited]

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz) [inherited]

Definition at line 91 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 
)

Member Data Documentation

Edge list, used if stencil shadow casting is enabled.

Definition at line 348 of file OgreStaticGeometry.h.

unsigned short Ogre::StaticGeometry::LODBucket::mLod [protected]

LOD level (0 == full LOD)

Definition at line 340 of file OgreStaticGeometry.h.

LOD value at which this LOD starts to apply (squared)

Definition at line 342 of file OgreStaticGeometry.h.

Lookup of Material Buckets in this region.

Definition at line 344 of file OgreStaticGeometry.h.

Pointer to parent region.

Definition at line 338 of file OgreStaticGeometry.h.

Geometry queued for a single LOD (deallocated here)

Definition at line 346 of file OgreStaticGeometry.h.

List of shadow renderables.

Definition at line 352 of file OgreStaticGeometry.h.

Is a vertex program in use somewhere in this group?

Definition at line 350 of file OgreStaticGeometry.h.


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

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Mon Jul 27 2020 13:41:39