NW4F G3d
Loading...
Searching...
No Matches
nw::g3d::Sizer Class Reference

#include <g3d_Sizer.h>

Inherited by nw::g3d::CameraAnimObj::Sizer, nw::g3d::MaterialObj::Sizer, nw::g3d::ModelObj::Sizer, nw::g3d::ShaderParamAnimObj::Sizer, nw::g3d::ShapeAnimObj::Sizer, nw::g3d::ShapeObj::Sizer, nw::g3d::SkeletalAnimBlender::Sizer, nw::g3d::SkeletalAnimObj::Sizer, nw::g3d::SkeletonObj::Sizer, nw::g3d::TexPatternAnimObj::Sizer, and nw::g3d::VisibilityAnimObj::Sizer.

Classes

struct  Chunk

Public Member Functions

 Sizer ()
size_t GetTotalSize () const
bool IsValid () const
void Invalidate ()
template<typename T>
NW_G3D_FORCE_INLINE T * GetPtr (void *ptr, int type) const
NW_G3D_FORCE_INLINE void * GetPtr (void *ptr, int type) const

Protected Member Functions

void CalcOffset (Chunk *chunk, int count)

Private Attributes

ChunkpChunk
size_t totalSize

Constructor & Destructor Documentation

◆ Sizer()

nw::g3d::Sizer::Sizer ( )
inline

Member Function Documentation

◆ GetTotalSize()

size_t nw::g3d::Sizer::GetTotalSize ( ) const
inline

◆ IsValid()

bool nw::g3d::Sizer::IsValid ( ) const
inline

◆ Invalidate()

void nw::g3d::Sizer::Invalidate ( )
inline

◆ GetPtr() [1/2]

template<typename T>
NW_G3D_FORCE_INLINE T * nw::g3d::Sizer::GetPtr ( void * ptr,
int type ) const
inline

◆ GetPtr() [2/2]

NW_G3D_FORCE_INLINE void * nw::g3d::Sizer::GetPtr ( void * ptr,
int type ) const
inline

◆ CalcOffset()

void nw::g3d::Sizer::CalcOffset ( Chunk * chunk,
int count )
inlineprotected

Member Data Documentation

◆ pChunk

Chunk* nw::g3d::Sizer::pChunk
private

◆ totalSize

size_t nw::g3d::Sizer::totalSize
private