Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CCmpUnitRenderer::SUnit Struct Reference
Collaboration diagram for CCmpUnitRenderer::SUnit:

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...
 
LosVisibility 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

◆ actor

CUnit* CCmpUnitRenderer::SUnit::actor

◆ boundsApprox

CBoundingSphere CCmpUnitRenderer::SUnit::boundsApprox

Worst-case bounding shape, relative to position.

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

◆ culled

bool CCmpUnitRenderer::SUnit::culled

For debug overlay.

◆ entity

CEntityHandle CCmpUnitRenderer::SUnit::entity

◆ flags

int CCmpUnitRenderer::SUnit::flags

◆ inWorld

bool CCmpUnitRenderer::SUnit::inWorld

Whether the unit has a valid position.

If false, pos0 and pos1 are meaningless.

◆ lastTransformFrame

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.

◆ pos0

CVector3D CCmpUnitRenderer::SUnit::pos0

World-space positions to interpolate between.

◆ pos1

CVector3D CCmpUnitRenderer::SUnit::pos1

◆ sweptBounds

CBoundingSphere CCmpUnitRenderer::SUnit::sweptBounds

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

◆ visibility

LosVisibility CCmpUnitRenderer::SUnit::visibility

Cached LOS visibility status.

◆ visibilityDirty

bool CCmpUnitRenderer::SUnit::visibilityDirty

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