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

#include <g3d_ResShape.h>

Inherits nw::g3d::res::ResShapeData.

Public Types

enum  Signature { SIGNATURE = NW_G3D_MAKE_U8X4_AS_U32('F', 'S', 'H', 'P') }
enum  Flag { OWN_VERTEX = 0x1 << 1 }

Public Member Functions

void Setup ()
void Cleanup ()
void Reset ()
int GetIndex () const
int GetMaterialIndex () const
int GetBoneIndex () const
int GetVertexIndex () const
bool IsVertexOwner () const
int GetSkinBoneIndexCount () const
const u16 * GetSkinBoneIndexArray () const
int GetVtxSkinCount () const
bool IsRigidBody () const
bool IsRigidSkinning () const
bool IsSmoothSkinning () const
void SetUserPtr (void *pUserPtr)
void * GetUserPtr ()
const void * GetUserPtr () const
template<typename T>
T * GetUserPtr ()
template<typename T>
const T * GetUserPtr () const
 NW_G3D_RES_FIELD_CLASS_DECL (ResVertex, Vertex)
 NW_G3D_RES_FIELD_CLASS_ARRAY_DECL (ResMesh, Mesh)
ResMeshGetMesh ()
const ResMeshGetMesh () const
int GetSubMeshCount () const
 NW_G3D_RES_FIELD_DIC_DECL (ResKeyShape, KeyShape)
int GetTargetAttribCount () const
const BoundingNodeGetBoundingNodeArray () const
int GetBoundingNodeCount () const
const BoundingGetBounding () const
const u16 * GetSubMeshIndexArray () const
float GetRadius () const

Private Member Functions

 NW_G3D_RES_COMMON (ResShape)

Additional Inherited Members

Private Attributes inherited from nw::g3d::res::ResShapeData
BinaryBlockHeader blockHeader
BinString ofsName
bit32 flag
u16 index
u16 materialIndex
u16 boneIndex
u16 vertexIndex
u16 numSkinBoneIndex
u8 vtxSkinCount
u8 numMesh
u8 numKeyShape
u8 numTargetAttrib
u16 numBoundingNode
f32 radius
Offset ofsVertex
Offset ofsMeshArray
Offset ofsSkinBoneIndexArray
Offset ofsKeyShapeDic
Offset ofsBoundingNodeArray
Offset ofsSubBoundingArray
Offset ofsSubMeshIndexArray
BinPtr pUserPtr

Member Enumeration Documentation

◆ Signature

Enumerator
SIGNATURE 

◆ Flag

Enumerator
OWN_VERTEX 

Member Function Documentation

◆ NW_G3D_RES_COMMON()

nw::g3d::res::ResShape::NW_G3D_RES_COMMON ( ResShape )
private

◆ Setup()

void nw::g3d::res::ResShape::Setup ( )

◆ Cleanup()

void nw::g3d::res::ResShape::Cleanup ( )

◆ Reset()

void nw::g3d::res::ResShape::Reset ( )

◆ GetIndex()

int nw::g3d::res::ResShape::GetIndex ( ) const
inline

◆ GetMaterialIndex()

int nw::g3d::res::ResShape::GetMaterialIndex ( ) const
inline

◆ GetBoneIndex()

int nw::g3d::res::ResShape::GetBoneIndex ( ) const
inline

◆ GetVertexIndex()

int nw::g3d::res::ResShape::GetVertexIndex ( ) const
inline

◆ IsVertexOwner()

bool nw::g3d::res::ResShape::IsVertexOwner ( ) const
inline

◆ GetSkinBoneIndexCount()

int nw::g3d::res::ResShape::GetSkinBoneIndexCount ( ) const
inline

◆ GetSkinBoneIndexArray()

const u16 * nw::g3d::res::ResShape::GetSkinBoneIndexArray ( ) const
inline

◆ GetVtxSkinCount()

int nw::g3d::res::ResShape::GetVtxSkinCount ( ) const
inline

◆ IsRigidBody()

bool nw::g3d::res::ResShape::IsRigidBody ( ) const
inline

◆ IsRigidSkinning()

bool nw::g3d::res::ResShape::IsRigidSkinning ( ) const
inline

◆ IsSmoothSkinning()

bool nw::g3d::res::ResShape::IsSmoothSkinning ( ) const
inline

◆ SetUserPtr()

void nw::g3d::res::ResShape::SetUserPtr ( void * pUserPtr)
inline

◆ GetUserPtr() [1/4]

void * nw::g3d::res::ResShape::GetUserPtr ( )
inline

◆ GetUserPtr() [2/4]

const void * nw::g3d::res::ResShape::GetUserPtr ( ) const
inline

◆ GetUserPtr() [3/4]

template<typename T>
T * nw::g3d::res::ResShape::GetUserPtr ( )
inline

◆ GetUserPtr() [4/4]

template<typename T>
const T * nw::g3d::res::ResShape::GetUserPtr ( ) const
inline

◆ NW_G3D_RES_FIELD_CLASS_DECL()

nw::g3d::res::ResShape::NW_G3D_RES_FIELD_CLASS_DECL ( ResVertex ,
Vertex  )

◆ NW_G3D_RES_FIELD_CLASS_ARRAY_DECL()

nw::g3d::res::ResShape::NW_G3D_RES_FIELD_CLASS_ARRAY_DECL ( ResMesh ,
Mesh  )

◆ GetMesh() [1/2]

ResMesh * nw::g3d::res::ResShape::GetMesh ( )
inline

◆ GetMesh() [2/2]

const ResMesh * nw::g3d::res::ResShape::GetMesh ( ) const
inline

◆ GetSubMeshCount()

int nw::g3d::res::ResShape::GetSubMeshCount ( ) const
inline

◆ NW_G3D_RES_FIELD_DIC_DECL()

nw::g3d::res::ResShape::NW_G3D_RES_FIELD_DIC_DECL ( ResKeyShape ,
KeyShape  )

◆ GetTargetAttribCount()

int nw::g3d::res::ResShape::GetTargetAttribCount ( ) const
inline

◆ GetBoundingNodeArray()

const BoundingNode * nw::g3d::res::ResShape::GetBoundingNodeArray ( ) const
inline

◆ GetBoundingNodeCount()

int nw::g3d::res::ResShape::GetBoundingNodeCount ( ) const
inline

◆ GetBounding()

const Bounding & nw::g3d::res::ResShape::GetBounding ( ) const
inline

◆ GetSubMeshIndexArray()

const u16 * nw::g3d::res::ResShape::GetSubMeshIndexArray ( ) const
inline

◆ GetRadius()

float nw::g3d::res::ResShape::GetRadius ( ) const
inline