#ifndef SCENE_DEMO_1_H #define SCENE_DEMO_1_H #define WHEEL_RAD 2.0 #define BASE_ROD_RAD 0.3 #define BASE_ROD_LEN 4.0 #define BARREL_RAD 1.0 #define BARREL_LEN 4.0 #define GUN_SCALE 0.2 #define GUN_ORIENT 70 #define GUN_POSX 0.5 #define GUN_POSY -1.6 #define GUN_POSZ 1.1 #define CUBE_SCALE 0.3 #define CUBE_POSX 0.0 #define CUBE_POSY -1.0 #define CUBE_POSZ 0.0 typedef GLfloat point3[3]; point3 vertices[8]= { {-1.0,-1.0,1.0}, {-1.0,1.0,1.0}, {1.0,1.0,1.0}, {1.0,-1.0,1.0}, {-1.0,-1.0,-1.0}, {1.0,-1.0,-1.0}, {1.0,1.0,-1.0}, {-1.0,1.0,-1.0} }; GLfloat colors[8][3]= { {0.0,0.0,0.0},{1.0,0.0,0.0}, {1.0,1.0,0.0},{0.0,1.0,0.0}, {0.0,0.0,1.0},{1.0,0.0,1.0}, {1.0,1.0,1.0},{0.0,1.0,1.0} }; //GLdouble viewer[3] = {1.0,1.2,1.2}; GLdouble viewer[3] = {0.5,0.05,0.5}; void quad(int a, int b, int c, int d); void cubedraw(); void wall(double thickness, char col); void walls(); void draw_gun(); #endif