-
Notifications
You must be signed in to change notification settings - Fork 3
/
openglutils.h
executable file
·43 lines (32 loc) · 1.23 KB
/
openglutils.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
/*
* openglutils.h
*
* Created on: Jan 16, 2011
* Author: faturita
*/
#ifndef OPENGLUTILS_H_
#define OPENGLUTILS_H_
#include <GLUT/glut.h>
#include "imageloader.h"
void CheckGLError();
GLuint loadTexture(Image* image) ;
void drawArrow();
void drawArrow(float scale);
void drawArrow(float x, float y, float z);
void drawArrow(float x, float y, float z,float red, float green, float blue);
void drawArrow(float x, float y, float z,float red, float green, float blue, float linewidth);
void doTransform (float pos[3], float R[12]);
void doTransform(float R[12]);
void drawRectangularBox(float width, float height, float length);
void drawRectangularBox(float width, float height, float length, GLuint _textureId);
void drawTheRectangularBox(GLuint _textureId, float xx, float yy, float zz);
void drawBox(GLuint texturedId, float xx, float yy, float zz);
void drawBox(float xx, float yy, float zz);
void drawBoxIsland(GLuint _textureId, float xx, float yy, float zz, float side,float height);
void drawBoxIsland(float xx, float yy, float zz, float side, float height);
void drawFloor(float x, float y, float z);
void drawLightning();
void drawSky (float x,float y, float z);
void initTextures();
float getFPS();
#endif /* OPENGLUTILS_H_ */