* LitJet.cpp
*
* Created on: Mar 17, 2012
* Author: andriu
*/
#include "gltools.h"
#include "math3d.h"
static GLfloat xRot = 0.0f;
static GLfloat yRot = 0.0f;
void RenderScene(void)
{
M3DVector3f vNormal; // calculated surface normal
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
// Save matrix state and do rotations
glPushMatrix();
glRotatef(xRot, 1.0f, 0.0f, 0.0f);
glRotatef(yRot, 0.0f, 1.0f, 0.0f);
// Nose Cone - Points straight down
// Set material color
glColor3ub(110, 128, 128);
glBegin(GL_TRIANGLES);
glNormal3f(0.0f, -1.0f, 0.0f);
glVertex3f(0.0f, 0.0f, 60.0f);
glVertex3f(-15.0f, 0.0f, 30.0f);
glVertex3f(15.0f, 0.0f, 30.0f);