Advertisement

how do you..

Started by August 22, 2005 06:29 AM
2 comments, last by pheonix2468 19 years, 3 months ago
create a flashing background in glut?? I am useng the freeglut devpack in devc++ and wondered how i would make the background flash like acid (on nehe's homepage)?? help would be appreciated as i have wanted to know this since i started programming. -=pheonix2468=-
Draw a poly the size of the screen and just change the color black white yellow,
doing it this way you can take a texture and wrap it to the poly.

you will need to look into timers or it will run at crazy speeds.
Advertisement
You could set the clear color and call glClear(GL_COLOR_BIT);

you probarbly already call glClear, so this should work well.

Or if you want a more advanced background (lika a gradient) you could draw a full screen quad.

[simultanious post :D]
Thanks guys. Ive not done much in the way of timers and this is just a small project to get me back into the swing of things, cause i havn't done cpp + ogl since the start of the summer. so could you please direct me in the way of a timers tut???

[Edited by - pheonix2468 on August 23, 2005 1:47:13 PM]

This topic is closed to new replies.

Advertisement