Hi
Here is the code that I have been working on for the last few hours....I know that I have to use a for loop to make my lines repeat, but how do I go about doing this?
void DrawPixel( int x, int y )
{
glBegin( GL_POINTS );
glVertex2f( x,y );
glEnd( );
}
void DrawLine( float x0, float y0, float x1, float y1 )
{
//-------------------------------------------
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// repeatedly call DrawPixel from this function
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//-------------------------------------------
for(????)
glutSwapBuffers( );
}
thank you ALLL for everything!
I wish I caould buy you all Drinks!![]()