I’ve just started using OpenGL. I’m rendering scenes with VC++ containing lots of objects and I need some of them to blink. Is there any way to do this easily or would I need to refresh the screen every so often turning the “blinking” objects off and on again? Thanks.
In a normal game your screen is refreshed 30 times a second (hopefully), refreshing the screen isn’t that big a deal, just make a function that draws all your objects and call that function 30 times a second. For what you are doing you might want to make an object structure and have something like BOOL Draw; in that struct if draw is true the object is drawn, if not it isn’t. You could just toggle the draw property every ten frames or so to make something blink.