#ifndef CBASICMODEL_H #define CBASICMODEL_H #include "../CResource.h" #include "SSurface.h" #include #include class CBasicModel : public CResource { protected: CAABox mAABox; u32 mVertexCount; u32 mTriangleCount; bool mBuffered; bool mHasOwnMaterials; bool mHasOwnSurfaces; CVertexBuffer mVBO; std::vector mSurfaces; public: CBasicModel(); ~CBasicModel(); EResType Type(); u32 GetVertexCount(); u32 GetTriangleCount(); CAABox AABox(); bool IsBuffered(); u32 GetSurfaceCount(); CAABox GetSurfaceAABox(u32 Surface); SSurface* GetSurface(u32 Surface); virtual void ClearGLBuffer() = 0; }; #endif // CBASICMODEL_H