"L. Spiro Engine"
|
A k-DOP with a maximum number of planes when performance is needed. More...
#include <LSPCappedKDop.h>
Public Member Functions | |
LSE_INLINE CPlane3 &LSE_CALL | operator[] (LSUINT32 _ui32I) |
LSE_INLINE const CPlane3 &LSE_CALL | operator[] (LSUINT32 _ui32I) const |
LSE_INLINE LSUINT32 LSE_CALL | TotalPlanes () const |
LSE_INLINE LSBOOL LSE_CALL | AddPlane (const CPlane3 &_pPlane) |
LSE_INLINE LSVOID LSE_CALL | Reset () |
Protected Attributes | |
CPlane3 | m_pPlanes [_uMax] |
LSUINT32 | m_ui32Total |
A k-DOP with a maximum number of planes when performance is needed.
Class CCappedKDop Description: A capped k-DOP is a k-DOP with a maximum number of planes. This stores enough planes to hold the maximum, so allocations are avoided, making this the choice for a limited number of planes in high-performance situations.
LSE_INLINE LSBOOL LSE_CALL lsp::CCappedKDop< _uMax >::AddPlane | ( | const CPlane3 & | _pPlane | ) | [inline] |
Add a plane.
_pPlane | The plane to add. |
LSE_INLINE CPlane3& LSE_CALL lsp::CCappedKDop< _uMax >::operator[] | ( | LSUINT32 | _ui32I | ) | [inline] |
Give array access.
_ui32I | The index of the plane to retrieve. |
LSE_INLINE const CPlane3& LSE_CALL lsp::CCappedKDop< _uMax >::operator[] | ( | LSUINT32 | _ui32I | ) | const [inline] |
Give array access.
_ui32I | The index of the plane to retrieve. |
LSE_INLINE LSVOID LSE_CALL lsp::CCappedKDop< _uMax >::Reset | ( | ) | [inline] |
Reset the list of planes. Very fast.
LSE_INLINE LSUINT32 LSE_CALL lsp::CCappedKDop< _uMax >::TotalPlanes | ( | ) | const [inline] |
Get the total number of planes in this k-DOP.
CPlane3 lsp::CCappedKDop< _uMax >::m_pPlanes[_uMax] [protected] |
The array of planes.
LSUINT32 lsp::CCappedKDop< _uMax >::m_ui32Total [protected] |
The actual total of planes.