Original Post
Hey, im trying to make a screen saver that "loop" though a buch oh pictures that all connect, like so it seems like your going down a tunnel, but heres my problem as i keep going though more and more, it seems to slow down alot. Heres my code for the drawing.
void DrawFaceOffset(float scale,bool firstcall)
{
//glScalef(scale,scale,0);
if(firstcall)
{
glColor3f(1.0f,0.0f,0.0f);
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D,BlankTxt);
}
else
{
glColor3f(1.0f,1.0f,1.0f);
glBindTexture(GL_TEXTURE_2D,0);
}
//glPolygonMode( GL_FRONT_AND_BACK, GL_LINE );
float width,height;
width=scale;
height=scale;
glBegin(GL_QUADS);
glTexCoord2f(0,0);
glVertex2f(-width,-height);
glTexCoord2f(1,0);
glVertex2f(+width,-height);
glTexCoord2f(1,1);
glVertex2f(+width,+height);
glTexCoord2f(0,1);
glVertex2f(-width,+height);
glEnd();
glDisable(GL_TEXTURE_2D);
if(scale>0)
DrawFaceOffset(scale*0.1f,1);
} That is called in the draw function, and scale is set to "zoom" which is a float that keeps geting larger as time goes on(it goes up by time, so its not because of the framerate) And you can download the .exe here http://mindcasterstudios.com/kc/picloop1.zip For an Eg of the problem Thanks in advanced. [Edited by - kc_0045 on August 3, 2005 8:50:08 PM]