better physics
This commit is contained in:
@@ -10,8 +10,7 @@
|
||||
|
||||
typedef uint32_t HFunnyMaterial;
|
||||
typedef uint32_t HFunnyMesh;
|
||||
typedef uint32_t HFunnyPhysicalMesh;
|
||||
typedef uint32_t HFunnyPhysicalMaterial;
|
||||
typedef uint32_t HFunnyPhysics;
|
||||
typedef uint32_t HFunnyModel;
|
||||
|
||||
struct FunnyMaterial_t
|
||||
@@ -26,11 +25,7 @@ struct FunnyMesh_t
|
||||
IMesh *m_pMesh;
|
||||
};
|
||||
|
||||
struct FunnyPhysicalMaterial_t
|
||||
{
|
||||
};
|
||||
|
||||
struct FunnyPhysicalMesh_t
|
||||
struct FunnyPhysics_t
|
||||
{
|
||||
HShape m_hShape;
|
||||
};
|
||||
@@ -39,8 +34,7 @@ struct FunnyModel_t
|
||||
{
|
||||
HFunnyMesh m_hMesh;
|
||||
HFunnyMaterial m_hMaterial;
|
||||
HFunnyPhysicalMesh m_hPhysicalMesh;
|
||||
HFunnyPhysicalMaterial m_hPhysicalMaterial;
|
||||
HFunnyPhysics m_hPhysics;
|
||||
};
|
||||
|
||||
|
||||
@@ -59,17 +53,11 @@ public:
|
||||
virtual FunnyMaterial_t *GetMaterialByIndex( HFunnyMaterial hMat ) = 0;
|
||||
virtual void UnrefMaterial( HFunnyMaterial hMat ) = 0;
|
||||
|
||||
virtual HFunnyPhysicalMesh LoadPhysicalMesh( const char *szName ) = 0;
|
||||
virtual FunnyPhysicalMesh_t *GetPhysicalMeshByIndex( HFunnyPhysicalMesh hPhysicalMesh ) = 0;
|
||||
virtual void UnrefPhysicalMesh( HFunnyPhysicalMesh hPhysicalMesh ) = 0;
|
||||
|
||||
virtual HFunnyPhysicalMaterial LoadPhysicalMaterial( const char *szName ) = 0;
|
||||
virtual FunnyPhysicalMaterial_t *GetPhysicalMaterialByIndex( HFunnyPhysicalMaterial hPhysicalMaterial ) = 0;
|
||||
virtual void UnrefPhysicalMaterial( HFunnyPhysicalMaterial hPhysicalMaterial ) = 0;
|
||||
virtual HFunnyPhysics LoadPhysics( const char *szName ) = 0;
|
||||
virtual FunnyPhysics_t *GetPhysicsByIndex( HFunnyPhysics hPhysics ) = 0;
|
||||
virtual void UnrefPhysics( HFunnyPhysics hPhysics ) = 0;
|
||||
};
|
||||
|
||||
extern IAssetManager *g_pAssetManager;
|
||||
|
||||
#define ASSET_MANAGER_INTERFACE_VERSION "AssetMgr001"
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user