Rigs of Rods 2026.01
Soft-body Physics Simulation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends
Forests::ImpostorTexture Class Reference

Description

Definition at line 331 of file ImpostorPage.h.

Public Member Functions

void regenerate ()
 
 ~ImpostorTexture ()
 

Static Public Member Functions

static ImpostorTexture * getTexture (ImpostorPage *group, Ogre::Entity *entity)
 
static void removeTexture (ImpostorTexture *Texture)
 
static void regenerateAll ()
 

Protected Member Functions

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

Static Protected Member Functions

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

Protected Attributes

Ogre::SceneManager * sceneMgr
 
Ogre::Entity * entity
 
Ogre::String entityKey
 
ImpostorPage * group
 
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< ImpostorTextureResourceLoader > loader
 

Static Protected Attributes

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

Friends

class ImpostorBatch
 
class ImpostorTextureResourceLoader
 

Constructor & Destructor Documentation

◆ ~ImpostorTexture()

ImpostorTexture::~ImpostorTexture ( )

Definition at line 445 of file ImpostorPage.cpp.

◆ ImpostorTexture()

ImpostorTexture::ImpostorTexture ( ImpostorPage *  group,
Ogre::Entity *  entity 
)
protected

Definition at line 381 of file ImpostorPage.cpp.

Member Function Documentation

◆ getTexture()

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.

Definition at line 683 of file ImpostorPage.cpp.

◆ getUniqueID()

static Ogre::String Forests::ImpostorTexture::getUniqueID ( const Ogre::String &  prefix)
inlinestaticprotected

Definition at line 374 of file ImpostorPage.h.

◆ regenerate()

void ImpostorTexture::regenerate ( )

Definition at line 465 of file ImpostorPage.cpp.

◆ regenerateAll()

void ImpostorTexture::regenerateAll ( )
static

Definition at line 474 of file ImpostorPage.cpp.

◆ removeTexture()

void ImpostorTexture::removeTexture ( ImpostorTexture *  Texture)
static

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

Definition at line 668 of file ImpostorPage.cpp.

◆ renderTextures()

void ImpostorTexture::renderTextures ( bool  force)
protected

Definition at line 482 of file ImpostorPage.cpp.

◆ updateMaterials()

void ImpostorTexture::updateMaterials ( )
protected

Definition at line 431 of file ImpostorPage.cpp.

Friends And Related Symbol Documentation

◆ ImpostorBatch

friend class ImpostorBatch
friend

Definition at line 333 of file ImpostorPage.h.

◆ ImpostorTextureResourceLoader

friend class ImpostorTextureResourceLoader
friend

Definition at line 334 of file ImpostorPage.h.

Field Documentation

◆ boundingBox

Ogre::AxisAlignedBox Forests::ImpostorTexture::boundingBox
protected

Definition at line 369 of file ImpostorPage.h.

◆ entity

Ogre::Entity* Forests::ImpostorTexture::entity
protected

Definition at line 361 of file ImpostorPage.h.

◆ entityCenter

Ogre::Vector3 Forests::ImpostorTexture::entityCenter
protected

Definition at line 371 of file ImpostorPage.h.

◆ entityDiameter

Ogre::Real Forests::ImpostorTexture::entityDiameter
protected

Definition at line 370 of file ImpostorPage.h.

◆ entityKey

Ogre::String Forests::ImpostorTexture::entityKey
protected

Definition at line 362 of file ImpostorPage.h.

◆ entityRadius

Ogre::Real Forests::ImpostorTexture::entityRadius
protected

Definition at line 370 of file ImpostorPage.h.

◆ group

ImpostorPage* Forests::ImpostorTexture::group
protected

Definition at line 363 of file ImpostorPage.h.

◆ GUID

unsigned long ImpostorTexture::GUID = 0
staticprotected

Definition at line 373 of file ImpostorPage.h.

◆ loader

std::auto_ptr<ImpostorTextureResourceLoader> Forests::ImpostorTexture::loader
protected

Definition at line 380 of file ImpostorPage.h.

◆ material

Ogre::MaterialPtr Forests::ImpostorTexture::material[IMPOSTOR_PITCH_ANGLES][IMPOSTOR_YAW_ANGLES]
protected

Definition at line 365 of file ImpostorPage.h.

◆ sceneMgr

Ogre::SceneManager* Forests::ImpostorTexture::sceneMgr
protected

Definition at line 360 of file ImpostorPage.h.

◆ selfList

std::map< String, ImpostorTexture * > ImpostorTexture::selfList
staticprotected

Definition at line 359 of file ImpostorPage.h.

◆ sourceMesh

Ogre::ResourceHandle Forests::ImpostorTexture::sourceMesh
protected

Definition at line 368 of file ImpostorPage.h.

◆ texture

Ogre::TexturePtr Forests::ImpostorTexture::texture
protected

Definition at line 366 of file ImpostorPage.h.


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