I have a few errors when compiling this code regarding the Polygon class
The errors all suggest that I haven't included polygon.h at the top but as you can see this is not the case. Any suggestion??Code:#include <ctime> #include <iostream.h> #include <GL/glut.h> #include "ball.h" #include "paddle.h" #include "polygon.h" . . . . //function containing errors void renderScene( ) { glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ); glColor3f( 1.0f, 0.0f, 0.0f ); glLoadIdentity( ); Vector3d temp[ 3 ]; temp[ 0 ].setValues( 0, 1, 0 ); temp[ 1 ].setValues( -1, -1, 0 ); temp[ 3 ].setValues( 1, -1, 0 ); Polygon p( temp, 3 ); ball.drawBall( ); paddle.drawPaddle( ); glutSwapBuffers( ); CalculateFrameRate( ); }



LinkBack URL
About LinkBacks


