Essay on Definitions Of The Height Of Height

847 Words Jul 24th, 2015 4 Pages
#include
#include
#define BASE_HEIGHT 5.0/2
#define BASE_RADIUS 1.0/2
#define HEAD_HEIGHT 1.25/2
#define HEAD_RADIUS 0.75/2
#define NECK_HEIGHT 0.5/2
#define EYE_LEVEL 0.75/2
#define NOSE_LENGTH 0.5/2
#define LOWER_ARM_HEIGHT 2.0/2
#define LOWER_ARM_WIDTH 0.5/2
#define UPPER_ARM_HEIGHT 1.25/2
#define UPPER_ARM_WIDTH 0.5/2
#define ARM_TRANSLATION 0.22/2
#define alpha 0.0
#define pi 3.14159265 static GLfloat theta[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; static GLint axis = 0;
GLUquadricObj *p;
GLfloat x = 0.0;
GLfloat y = 0.0;
GLfloat xpos = 0.0;
GLfloat ypos = 0.0;
GLfloat zpos = 0.0;
GLfloat ambient[3];
GLfloat diffuse[3];
GLfloat specular[3];
GLfloat shiness[] = { 50.0f }; float width = 600; float height = 600; void base(void); void head(void); void neck(void); void upper_rarm(void); void upper_larm(void); void lower_rarm(void); void lower_larm(void); void init(void); void display(void); void reshape(int width, int height); void keyboard(unsigned char, int, int); void processSpecialKeys(int, int, int); void jump(void); void lsphere(void); void init1(void);

//Robot torso void base(void)
{
double angle, angleInc; int i; angle = pi / 180; angleInc = angle; glPushMatrix();

ambient[0] = 1.0; ambient[1] = 1.0; ambient[2] = 0.0; diffuse[0] = 1.0; diffuse[1] = 0.0; diffuse[2] = 0.0; specular[0] = 0.7; specular[1] = 0.6; specular[2] = 0.5;

glMaterialfv(GL_FRONT, GL_AMBIENT, ambient); glMaterialfv(GL_FRONT, GL_DIFFUSE, diffuse); glMaterialfv(GL_FRONT, GL_SPECULAR,…

Related Documents