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

#include <g3d_ResShape.h>

Inherits nw::g3d::res::ResMeshData.

Public Member Functions

void Draw (int instances=1) const
void DrawSubMesh (int submeshIndex, int submeshCount, int instances=1) const
GX2PrimitiveType GetPrimitiveType () const
GX2IndexFormat GetIndexFormat () const
u32 GetCount () const
 NW_G3D_RES_FIELD_CLASS_DECL (ResBuffer, IdxBuffer)

Private Member Functions

 NW_G3D_RES_COMMON (ResMesh)

Additional Inherited Members

Private Attributes inherited from nw::g3d::res::ResMeshData
GX2PrimitiveType primType
GX2IndexFormat format
u32 count
u16 numSubMesh
u16 reserved
Offset ofsSubMeshArray
Offset ofsIdxBuffer
u32 offset

Member Function Documentation

◆ NW_G3D_RES_COMMON()

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

◆ Draw()

void nw::g3d::res::ResMesh::Draw ( int instances = 1) const
inline

◆ DrawSubMesh()

void nw::g3d::res::ResMesh::DrawSubMesh ( int submeshIndex,
int submeshCount,
int instances = 1 ) const

◆ GetPrimitiveType()

GX2PrimitiveType nw::g3d::res::ResMesh::GetPrimitiveType ( ) const
inline

◆ GetIndexFormat()

GX2IndexFormat nw::g3d::res::ResMesh::GetIndexFormat ( ) const
inline

◆ GetCount()

u32 nw::g3d::res::ResMesh::GetCount ( ) const
inline

◆ NW_G3D_RES_FIELD_CLASS_DECL()

nw::g3d::res::ResMesh::NW_G3D_RES_FIELD_CLASS_DECL ( ResBuffer ,
IdxBuffer  )