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
Forests::ImpostorBatch Class Reference

Description

Definition at line 249 of file ImpostorPage.h.

Public Member Functions

 ~ImpostorBatch ()
 
void build ()
 
void clear ()
 
void setVisible (bool visible)
 
void setFade (bool enabled, Ogre::Real visibleDist, Ogre::Real invisibleDist)
 
void setBillboardOrigin (Ogre::BillboardOrigin origin)
 
void addBillboard (const Ogre::Vector3 &position, const Ogre::Quaternion &rotation, const Ogre::Vector3 &scale, const Ogre::ColourValue &color=Ogre::ColourValue::White)
 
void setAngle (Ogre::Real pitchDeg, Ogre::Real yawDeg)
 

Static Public Member Functions

static ImpostorBatch * getBatch (ImpostorPage *group, Ogre::Entity *entity)
 
static Ogre::String generateEntityKey (Ogre::Entity *entity)
 

Protected Member Functions

 ImpostorBatch (ImpostorPage *group, Ogre::Entity *entity)
 

Static Protected Member Functions

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

Protected Attributes

ImpostorTexture * m_pTexture
 
StaticBillboardSet * bbset
 
Ogre::Vector3 entityBBCenter
 
ImpostorPage * igroup
 
Ogre::uint16 pitchIndex
 
Ogre::uint16 yawIndex
 

Static Protected Attributes

static unsigned long GUID = 0
 

Constructor & Destructor Documentation

◆ ~ImpostorBatch()

ImpostorBatch::~ImpostorBatch ( )

Definition at line 274 of file ImpostorPage.cpp.

◆ ImpostorBatch()

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

Definition at line 252 of file ImpostorPage.cpp.

Member Function Documentation

◆ addBillboard()

void Forests::ImpostorBatch::addBillboard ( const Ogre::Vector3 &  position,
const Ogre::Quaternion &  rotation,
const Ogre::Vector3 &  scale,
const Ogre::ColourValue &  color = Ogre::ColourValue::White 
)
inline

Definition at line 388 of file ImpostorPage.h.

◆ build()

void Forests::ImpostorBatch::build ( )
inline

Definition at line 255 of file ImpostorPage.h.

◆ clear()

void Forests::ImpostorBatch::clear ( )
inline

Definition at line 260 of file ImpostorPage.h.

◆ generateEntityKey()

String ImpostorBatch::generateEntityKey ( Ogre::Entity *  entity)
static

Definition at line 343 of file ImpostorPage.cpp.

◆ getBatch()

ImpostorBatch * ImpostorBatch::getBatch ( ImpostorPage *  group,
Ogre::Entity *  entity 
)
static

Definition at line 285 of file ImpostorPage.cpp.

◆ getUniqueID()

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

Definition at line 298 of file ImpostorPage.h.

◆ setAngle()

void ImpostorBatch::setAngle ( Ogre::Real  pitchDeg,
Ogre::Real  yawDeg 
)

Definition at line 301 of file ImpostorPage.cpp.

◆ setBillboardOrigin()

void ImpostorBatch::setBillboardOrigin ( Ogre::BillboardOrigin  origin)

Definition at line 333 of file ImpostorPage.cpp.

◆ setFade()

void Forests::ImpostorBatch::setFade ( bool  enabled,
Ogre::Real  visibleDist,
Ogre::Real  invisibleDist 
)
inline

Definition at line 270 of file ImpostorPage.h.

◆ setVisible()

void Forests::ImpostorBatch::setVisible ( bool  visible)
inline

Definition at line 265 of file ImpostorPage.h.

Field Documentation

◆ bbset

StaticBillboardSet* Forests::ImpostorBatch::bbset
protected

Definition at line 289 of file ImpostorPage.h.

◆ entityBBCenter

Ogre::Vector3 Forests::ImpostorBatch::entityBBCenter
protected

Definition at line 291 of file ImpostorPage.h.

◆ GUID

unsigned long ImpostorBatch::GUID = 0
staticprotected

Definition at line 297 of file ImpostorPage.h.

◆ igroup

ImpostorPage* Forests::ImpostorBatch::igroup
protected

Definition at line 293 of file ImpostorPage.h.

◆ m_pTexture

ImpostorTexture* Forests::ImpostorBatch::m_pTexture
protected

Definition at line 288 of file ImpostorPage.h.

◆ pitchIndex

Ogre::uint16 Forests::ImpostorBatch::pitchIndex
protected

Definition at line 295 of file ImpostorPage.h.

◆ yawIndex

Ogre::uint16 Forests::ImpostorBatch::yawIndex
protected

Definition at line 295 of file ImpostorPage.h.


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