OpenBarnyard
 
Loading...
Searching...
No Matches
CellSphereTreeLeafNode Struct Reference

#include <AWorld.h>

Public Member Functions

TUINT16GetMeshIndex (TUINT32 a_uiIndex)
 
struct CellSphereTreeBranchNodeEnd ()
 

Public Attributes

TUINT32 m_uiNumMeshes
 

Detailed Description

Definition at line 86 of file AWorld.h.

Member Function Documentation

◆ End()

struct CellSphereTreeBranchNode * CellSphereTreeLeafNode::End ( )
inline

Definition at line 96 of file AWorld.h.

97 {
98 return (struct CellSphereTreeBranchNode*)TAlignPointerUp( ( (TUINT16*)( this + 1 ) ) + m_uiNumMeshes );
99 }
TFORCEINLINE constexpr T * TAlignPointerUp(T *a_pMem, TSIZE a_uiAlignment=sizeof(T *))
Definition Helpers.h:41
uint16_t TUINT16
Definition Typedefs.h:15
TUINT32 m_uiNumMeshes
Definition AWorld.h:88

◆ GetMeshIndex()

TUINT16 & CellSphereTreeLeafNode::GetMeshIndex ( TUINT32 a_uiIndex)
inline

Definition at line 90 of file AWorld.h.

91 {
92 TASSERT( a_uiIndex < m_uiNumMeshes );
93 return *( (TUINT16*)( this + 1 ) + a_uiIndex );
94 }
#define TASSERT(X,...)
Definition Defines.h:138

Member Data Documentation

◆ m_uiNumMeshes

TUINT32 CellSphereTreeLeafNode::m_uiNumMeshes

Definition at line 88 of file AWorld.h.


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