GroundCoverCell
Engine/source/T3D/fx/groundCover.cpp
This defines one grid cell.
Classes:
Protected Types
GFXVertexBufferHandle< GCVertex >
VBHandle
Public Friends
class
Protected Attributes
The instances of billboard cover elements in this cell.
bool
Used to mark the cell dirty and in need of a rebuild.
The worldspace bounding box of the renderable content within this cell.
The vertex buffers that hold all the prepared billboards for this cell.
Protected Functions
Repacks the billboards into the vertex buffer.
Public Functions
The worldspace bounding box of the renderable content within this cell.
renderBillboards(SceneRenderState * state, BaseMatInstance * mat, GFXPrimitiveBufferHandle * pb)
renderShapes(const TSRenderState & rdata, Frustum * culler, TSShapeInstance ** shapes)
shiftIndex(const Point2I & shift)
Detailed Description
This defines one grid cell.
Protected Types
typedef GFXVertexBufferHandle< GCVertex > VBHandle
typedef Vector< VBHandle > VBHandleVector
Public Friends
Protected Attributes
Vector< Placement > mBillboards
The instances of billboard cover elements in this cell.
Box3F mBounds
The worldspace bounding box this cell.
bool mDirty
Used to mark the cell dirty and in need of a rebuild.
Point2I mIndex
This is the x,y index for this cell.
Box3F mRenderBounds
The worldspace bounding box of the renderable content within this cell.
Vector< Placement > mShapes
The instances of shape cover elements in this cell.
VBHandleVector mVBs
The vertex buffers that hold all the prepared billboards for this cell.
Protected Functions
_rebuildVB()
Repacks the billboards into the vertex buffer.
Public Functions
GroundCoverCell()
~GroundCoverCell()
getBounds()
The worldspace bounding box this cell.
getCenter()
getRenderBounds()
The worldspace bounding box of the renderable content within this cell.
getSize()
renderBillboards(SceneRenderState * state, BaseMatInstance * mat, GFXPrimitiveBufferHandle * pb)
renderShapes(const TSRenderState & rdata, Frustum * culler, TSShapeInstance ** shapes)
shiftIndex(const Point2I & shift)