/*! -------------------------------------------------------------------- \file course.cpp \brief Encapsulate the course map \author James Kuffner \date 2002-09-18 // -------------------------------------------------------------------*/ #ifndef IGNORE_DEPEND #include #include #include #include #endif #include "course.h" //--------------------------------------------------------------------- // Course // // Method: Constructor // //--------------------------------------------------------------------- Course::Course() { } //--------------------------------------------------------------------- // Course // // Method: Destructor // //--------------------------------------------------------------------- Course::~Course() { } //--------------------------------------------------------------------- // Course // Method: Init // //! Initialize the course // //--------------------------------------------------------------------- bool Course::Init(const char* courseFilename) { return true; } //--------------------------------------------------------------------- // Course // Method: Render // //! Render the course using the current viewing transform // //--------------------------------------------------------------------- bool Course::Render() { glPushMatrix(); glBegin(GL_QUADS); glColor3f(1,0,0); glVertex3f(-10,-10,-1); glColor3f(0,1,0); glVertex3f(-10,10,-1); glColor3f(0,0,1); glVertex3f(10,10,-1); glColor3f(1,0,1); glVertex3f(10,-10,-1); glEnd(); /* glBegin(GL_QUADS); glColor3f(1,1,0); glVertex3f(-10,-10,1); glColor3f(1,0,0); glVertex3f(-10,10,1); glColor3f(0,1,1); glVertex3f(10,10,1); glColor3f(1,1,0.3); glVertex3f(10,-10,1); glEnd(); */ glPopMatrix(); return true; }