Added more structure, added abstraction to existing parts

This commit is contained in:
2016-05-11 12:37:18 +02:00
parent 9769b88156
commit 049fb28ffc
25 changed files with 508 additions and 413 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
#include "Header.h"
#include "Model.h"
//Prototypes
void bindFuncOpenGL(void);
@@ -11,7 +12,7 @@ static int Height;
float lastFrameTime = 0;
bool keys[255];
vector<ObjModel*> models;
vector<Model*> models;
int currentModel = 0;
struct Camera
@@ -169,5 +170,5 @@ void configureOpenGL()
void loadModels()
{
models.push_back(new ObjModel("models/ship/shipA_OBJ.obj"));
models.push_back(new Model("models/ship/shipA_OBJ.obj"));
}