added material rendering
This commit is contained in:
@@ -12,6 +12,7 @@ typedef uint32_t HFunnyMaterial;
|
||||
typedef uint32_t HFunnyMesh;
|
||||
typedef uint32_t HFunnyPhysics;
|
||||
typedef uint32_t HFunnyModel;
|
||||
typedef uint32_t HFunnyTexture;
|
||||
|
||||
struct FunnyMaterial_t
|
||||
{
|
||||
@@ -20,6 +21,11 @@ struct FunnyMaterial_t
|
||||
CBaseMaterial *m_pLayout;
|
||||
};
|
||||
|
||||
struct FunnyTexture_t
|
||||
{
|
||||
uint32_t m_hTexture;
|
||||
};
|
||||
|
||||
struct FunnyMesh_t
|
||||
{
|
||||
IMesh *m_pMesh;
|
||||
@@ -56,6 +62,10 @@ public:
|
||||
virtual HFunnyPhysics LoadPhysics( const char *szName ) = 0;
|
||||
virtual FunnyPhysics_t *GetPhysicsByIndex( HFunnyPhysics hPhysics ) = 0;
|
||||
virtual void UnrefPhysics( HFunnyPhysics hPhysics ) = 0;
|
||||
|
||||
virtual uint32_t LoadTexture( const char *szName ) = 0;
|
||||
virtual FunnyTexture_t *GetTextureByIndex( uint32_t hTexture ) = 0;
|
||||
virtual void UnrefTexture( uint32_t hTexture ) = 0;
|
||||
};
|
||||
|
||||
extern IAssetManager *g_pAssetManager;
|
||||
|
||||
Reference in New Issue
Block a user