[go: up one dir, main page]

Menu

[r3]: / include / graphics.h  Maximize  Restore  History

Download this file

37 lines (28 with data), 851 Bytes

 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
#ifndef GRAPHICS_H
#define GRAPHICS_H
extern GLuint texture[100];
extern GLuint cursor_tex;
extern GLuint cursor_tex_alpha;
extern char tex_name[67][13];
extern int num_textures;
class Camera
{
public:
float x,y,z,h,p,r;
float x2,y2,z2,h2,p2,r2;
float xs,ys,zs,hs,ps,rs;
void reset();
void set (float xx, float xy, float xz, float xh, float xp, float xr);
void move (float xx, float xy, float xz, float xh, float xp, float xr);
void move2 (float xx, float xy, float xz, float xh, float xp, float xr);
void set_mode(int mode);
};
void setTransform (const float pos[3], const float R[12]);
void drawBox (const float sides[3]);
GLvoid ReSizeGLScene(GLsizei width, GLsizei height);
void set_opengl_ambient();
int draw_scene(GLvoid);
void load_textures();
void draw_cursor();
int load_texture_2(GLuint &tex,const char *filename);
#endif