Pyrogenesis  trunk
Public Attributes | List of all members
CCmpUnitRenderer::SUnit Struct Reference
Collaboration diagram for CCmpUnitRenderer::SUnit:
Collaboration graph
[legend]

Public Attributes

CEntityHandle entity
 
CUnitactor
 
int flags
 
int lastTransformFrame
 m_FrameNumber from when the model's transform was last updated. More...
 
CBoundingSphere boundsApprox
 Worst-case bounding shape, relative to position. More...
 
ICmpRangeManager::ELosVisibility visibility
 Cached LOS visibility status. More...
 
bool visibilityDirty
 
bool inWorld
 Whether the unit has a valid position. More...
 
CVector3D pos0
 World-space positions to interpolate between. More...
 
CVector3D pos1
 
CBoundingSphere sweptBounds
 Bounds encompassing the unit's bounds when it is anywhere between pos0 and pos1. More...
 
bool culled
 For debug overlay. More...
 

Member Data Documentation

CUnit* CCmpUnitRenderer::SUnit::actor
CBoundingSphere CCmpUnitRenderer::SUnit::boundsApprox

Worst-case bounding shape, relative to position.

Needs to account for all possible animations, orientations, etc.

bool CCmpUnitRenderer::SUnit::culled

For debug overlay.

CEntityHandle CCmpUnitRenderer::SUnit::entity
int CCmpUnitRenderer::SUnit::flags
bool CCmpUnitRenderer::SUnit::inWorld

Whether the unit has a valid position.

If false, pos0 and pos1 are meaningless.

int CCmpUnitRenderer::SUnit::lastTransformFrame

m_FrameNumber from when the model's transform was last updated.

This is used to avoid recomputing it multiple times per frame if a model is visible in multiple cull groups.

CVector3D CCmpUnitRenderer::SUnit::pos0

World-space positions to interpolate between.

CVector3D CCmpUnitRenderer::SUnit::pos1
CBoundingSphere CCmpUnitRenderer::SUnit::sweptBounds

Bounds encompassing the unit's bounds when it is anywhere between pos0 and pos1.

ICmpRangeManager::ELosVisibility CCmpUnitRenderer::SUnit::visibility

Cached LOS visibility status.

bool CCmpUnitRenderer::SUnit::visibilityDirty

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