OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::LodOutputProviderCompressedMesh Class Reference

#include <OgreLodOutputProviderCompressedMesh.h>

+ Inheritance diagram for Ogre::LodOutputProviderCompressedMesh:
+ Collaboration diagram for Ogre::LodOutputProviderCompressedMesh:

Classes

struct  TriangleCache
 

Public Member Functions

 LodOutputProviderCompressedMesh (MeshPtr mesh)
 
 ~LodOutputProviderCompressedMesh ()
 
virtual void bakeLodLevel (LodData *data, int lodIndex)
 
virtual void bakeManualLodLevel (LodData *data, String &manualMeshName, int lodIndex)
 
virtual void finalize (LodData *data)
 
virtual void inject ()
 
virtual void prepare (LodData *data)
 
virtual void triangleChanged (LodData *data, LodData::Triangle *tri)
 
virtual void triangleRemoved (LodData *data, LodData::Triangle *tri)
 

Protected Types

typedef vector< TriangleCache >
::type 
TriangleCacheList
 

Protected Member Functions

 LodOutputProviderCompressedMesh ()
 
virtual void bakeFirstPass (LodData *data, int lodIndex)
 
virtual void bakeSecondPass (LodData *data, int lodIndex)
 

Protected Attributes

LodOutputProviderfallback
 if uneven lod levels are created, we need to fall back for the last lod level. More...
 
bool mFirstBufferPass
 Lod index of the buffer for mTriangleCacheList. More...
 
int mLastIndexBufferID
 
MeshPtr mMesh
 
TriangleCacheList mTriangleCacheList
 First pass will create the mTriangleCacheList and second pass will use it. More...
 

Detailed Description

Definition at line 40 of file OgreLodOutputProviderCompressedMesh.h.

Member Typedef Documentation

Constructor & Destructor Documentation

Ogre::LodOutputProviderCompressedMesh::LodOutputProviderCompressedMesh ( MeshPtr  mesh)
Ogre::LodOutputProviderCompressedMesh::~LodOutputProviderCompressedMesh ( )
Ogre::LodOutputProviderCompressedMesh::LodOutputProviderCompressedMesh ( )
protected

Member Function Documentation

virtual void Ogre::LodOutputProviderCompressedMesh::bakeFirstPass ( LodData data,
int  lodIndex 
)
protectedvirtual
virtual void Ogre::LodOutputProviderCompressedMesh::bakeLodLevel ( LodData data,
int  lodIndex 
)
virtual
virtual void Ogre::LodOutputProviderCompressedMesh::bakeManualLodLevel ( LodData data,
String manualMeshName,
int  lodIndex 
)
virtual
virtual void Ogre::LodOutputProviderCompressedMesh::bakeSecondPass ( LodData data,
int  lodIndex 
)
protectedvirtual
virtual void Ogre::LodOutputProviderCompressedMesh::finalize ( LodData data)
virtual
virtual void Ogre::LodOutputProviderCompressedMesh::inject ( )
virtual

Reimplemented from Ogre::LodOutputProvider.

virtual void Ogre::LodOutputProviderCompressedMesh::prepare ( LodData data)
virtual
virtual void Ogre::LodOutputProviderCompressedMesh::triangleChanged ( LodData data,
LodData::Triangle tri 
)
virtual

Reimplemented from Ogre::LodOutputProvider.

virtual void Ogre::LodOutputProviderCompressedMesh::triangleRemoved ( LodData data,
LodData::Triangle tri 
)
virtual

Reimplemented from Ogre::LodOutputProvider.

Member Data Documentation

LodOutputProvider* Ogre::LodOutputProviderCompressedMesh::fallback
protected

if uneven lod levels are created, we need to fall back for the last lod level.

Definition at line 74 of file OgreLodOutputProviderCompressedMesh.h.

bool Ogre::LodOutputProviderCompressedMesh::mFirstBufferPass
protected

Lod index of the buffer for mTriangleCacheList.

Definition at line 71 of file OgreLodOutputProviderCompressedMesh.h.

int Ogre::LodOutputProviderCompressedMesh::mLastIndexBufferID
protected

Definition at line 77 of file OgreLodOutputProviderCompressedMesh.h.

MeshPtr Ogre::LodOutputProviderCompressedMesh::mMesh
protected

Definition at line 75 of file OgreLodOutputProviderCompressedMesh.h.

TriangleCacheList Ogre::LodOutputProviderCompressedMesh::mTriangleCacheList
protected

First pass will create the mTriangleCacheList and second pass will use it.

This is required, because the triangles from first pass will be changed and we need to keep the information.

Definition at line 68 of file OgreLodOutputProviderCompressedMesh.h.


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