2015-09-26 22:55:14 +00:00
|
|
|
#ifndef CCOLLISIONMESHGROUP_H
|
|
|
|
#define CCOLLISIONMESHGROUP_H
|
|
|
|
|
|
|
|
#include "CResource.h"
|
|
|
|
#include "CCollisionMesh.h"
|
2015-12-13 20:52:17 +00:00
|
|
|
#include <Core/TResPtr.h>
|
2015-09-26 22:55:14 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class CCollisionMeshGroup : public CResource
|
|
|
|
{
|
2015-12-13 21:06:24 +00:00
|
|
|
DECLARE_RESOURCE_TYPE(eCollisionMeshGroup)
|
2015-09-26 22:55:14 +00:00
|
|
|
std::vector<CCollisionMesh*> mMeshes;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CCollisionMeshGroup();
|
|
|
|
~CCollisionMeshGroup();
|
|
|
|
|
|
|
|
u32 NumMeshes();
|
|
|
|
CCollisionMesh* MeshByIndex(u32 index);
|
|
|
|
void AddMesh(CCollisionMesh *pMesh);
|
|
|
|
void Draw();
|
|
|
|
void DrawWireframe();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CCOLLISIONMESHGROUP_H
|