-
Notifications
You must be signed in to change notification settings - Fork 0
/
Model.h
36 lines (32 loc) · 800 Bytes
/
Model.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**************************************************************************************************
*Program: Delta
*Programmer: Toben "Littlefoot" "Narcolapser" Archer
*Date: 12 04 14
*Purpose: A class for managing the display of geometry.
**********************/
#include "ResourceManager.cpp"
#include "Mesh.cpp"
#include "GeoObject.h"
#include "Program.cpp"
#include <stdio.h>
#include <iostream>
#include <sstream>
#ifndef MODEL_H
#define MODEL_H
class Model: public GeoObject
{
public:
Model(UID _meshID);
Model(UID _meshID, float x, float y, float z);
Model(xml_node& self, string path);
~Model();
void bindToProgram(Program* prog, GLint _local);
void render();
virtual bool onEvent(const Event& event);
private:
Mesh* mesh;
UID meshID;
GLint local;
};
/*.S.D.G.*/
#endif