-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cube.h
49 lines (35 loc) · 784 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
44
45
46
47
48
49
#ifndef CUBE_H
#define CUBE_H
#include "stdafx.h"
using namespace std;
struct box{
float greatestX;
float leastX;
float greatestY;
float leastY;
};
class Cube
{
public:
Cube(void);
~Cube(void);
void init(float[]);
void bind(GLenum, GLenum);
void draw(GLGeometryTransform);
void onMipmap();
void offMipmap();
void onAniso(GLfloat);
void offAniso();
box hitBox;
private:
static int locAmbient, locDiffuse, locSpecular, locEyeLight, locLight, locTexture, locNormal;
static int locMVP, locMV, locNM;
typedef float* Array;
int numFrame;
static GLuint shader, textureID, normalID;
static bool readTexture, readShader;
Array final_vert, final_text, norm_final;
GLuint vertbuffID[1], normbuffID[1], texbuffID[1];
int total, vsize, nsize, tsize;
};
#endif