added material rendering

This commit is contained in:
2026-04-27 15:56:33 +03:00
parent 457b455042
commit cbcfdce047
16 changed files with 178 additions and 29 deletions

View File

@@ -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;