mirror of
https://github.com/thug1src/thug.git
synced 2025-01-22 05:43:47 +00:00
65 lines
1.9 KiB
C++
65 lines
1.9 KiB
C++
//****************************************************************************
|
|
//* MODULE: Gfx
|
|
//* FILENAME: p_nxMesh.h
|
|
//* OWNER: Gary Jesdanun
|
|
//* CREATION DATE: 2/15/2002
|
|
//****************************************************************************
|
|
|
|
#ifndef __GFX_P_NX_MESH_H__
|
|
#define __GFX_P_NX_MESH_H__
|
|
|
|
#include "gfx/nxmesh.h"
|
|
#include "p_nxscene.h"
|
|
|
|
namespace NxXbox
|
|
{
|
|
struct sScene;
|
|
}
|
|
|
|
namespace Nx
|
|
{
|
|
|
|
/******************************************************************/
|
|
/* */
|
|
/* */
|
|
/******************************************************************/
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Here's a machine specific implementation of the CMesh
|
|
|
|
class CXboxMesh : public CMesh
|
|
{
|
|
|
|
public:
|
|
CXboxMesh( void );
|
|
CXboxMesh( const char *pMeshFileName );
|
|
virtual ~CXboxMesh();
|
|
void SetScene( CXboxScene *p_scene );
|
|
void SetTexDict( Nx::CTexDict *p_tex_dict ) { mp_texDict = p_tex_dict; }
|
|
void SetCASData( uint8 *p_cas_data );
|
|
CXboxScene *GetScene( void ) { return mp_scene; }
|
|
|
|
NxXbox::sCASData *GetCASData( void ) { return mp_CASData; }
|
|
uint32 GetNumCASData( void ) { return m_numCASData; }
|
|
|
|
protected:
|
|
bool build_casdata_table(const char* pFileName);
|
|
bool build_casdata_table_from_memory( void **pp_mem );
|
|
|
|
NxXbox::sCASData *mp_CASData;
|
|
uint32 m_numCASData;
|
|
|
|
private:
|
|
CXboxScene *mp_scene;
|
|
};
|
|
|
|
/******************************************************************/
|
|
/* */
|
|
/* */
|
|
/******************************************************************/
|
|
|
|
} // Nx
|
|
|
|
#endif
|