Initial commit of current work on Prime World Editor

This commit is contained in:
parax0
2015-07-26 17:39:49 -04:00
commit 66e8c2ebcb
305 changed files with 33469 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
#ifndef CBASICMODEL_H
#define CBASICMODEL_H
#include "../CResource.h"
#include "SSurface.h"
#include <Common/CAABox.h>
#include <OpenGL/CVertexBuffer.h>
class CBasicModel : public CResource
{
protected:
CAABox mAABox;
u32 mVertexCount;
u32 mTriangleCount;
bool mBuffered;
bool mHasOwnMaterials;
bool mHasOwnSurfaces;
CVertexBuffer mVBO;
std::vector<SSurface*> 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