-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cube.h
43 lines (32 loc) · 639 Bytes
/
Cube.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
37
38
39
40
41
42
43
#pragma once
#ifndef _Cube
#define _Cube
#include <Windows.h>
#include <gl/GL.h>
#include <gl/GLU.h>
#include <iostream>
#include <fstream>
#include <string>
#include <regex>
#include "GL\freeglut.h"
#ifndef _SceneObject
#include "SceneObject.h"
#endif
#ifndef _hStructs
#include "Structures.h"
#endif
#ifndef _Texture2D
#include "Texture2D.h"
#endif
class Cube : public SceneObject
{
private:
Texture2D* _texture;
material* _material;
public:
Cube(Mesh* mesh, Texture2D* _texture, float x, float y, float z, int _id);
~Cube();
void Draw() override;
void Update() override;
};
#endif // !_Cube