PagedGeometry  1.2.0
Forests::ImpostorTexture Class Reference

Public Member Functions

void regenerate ()
 

Static Public Member Functions

static ImpostorTexturegetTexture (ImpostorPage *group, Ogre::Entity *entity)
 Returns a pointer to an ImpostorTexture for the specified entity. More...
 
static void removeTexture (ImpostorTexture *Texture)
 remove created texture, note that all of the ImposterTextures must be deleted at once, because there is no track if a texture is still being used by something else
 
static void regenerateAll ()
 

Protected Member Functions

 ImpostorTexture (ImpostorPage *group, Ogre::Entity *entity)
 
void renderTextures (bool force)
 
void updateMaterials ()
 
Ogre::String removeInvalidCharacters (Ogre::String s)
 

Static Protected Member Functions

static Ogre::String getUniqueID (const Ogre::String &prefix)
 

Protected Attributes

Ogre::SceneManagersceneMgr
 
Ogre::Entityentity
 
Ogre::String entityKey
 
ImpostorPagegroup
 
Ogre::MaterialPtr material [IMPOSTOR_PITCH_ANGLES][IMPOSTOR_YAW_ANGLES]
 
Ogre::TexturePtr texture
 
Ogre::ResourceHandle sourceMesh
 
Ogre::AxisAlignedBox boundingBox
 
Ogre::Real entityDiameter
 
Ogre::Real entityRadius
 
Ogre::Vector3 entityCenter
 
std::auto_ptr< ImpostorTextureResourceLoaderloader
 

Static Protected Attributes

static std::map< Ogre::String, ImpostorTexture * > selfList
 
static unsigned long GUID = 0
 

Friends

class ImpostorBatch
 
class ImpostorTextureResourceLoader
 

Member Function Documentation

ImpostorTexture * ImpostorTexture::getTexture ( ImpostorPage group,
Ogre::Entity entity 
)
static

Returns a pointer to an ImpostorTexture for the specified entity.

If one does not already exist, one will automatically be created.

Referenced by Forests::ImpostorPage::regenerate(), and Forests::ImpostorPage::regenerateAll().