resetting the scene

Hi

how can I reset the scene while in the program ?

cheers

resetting your scene ?, you have to draw the whole scene every frame again, and again … (OpenGL dont save any vertices or textcoords( maybe the vertexcache do, but its only a cache …)

or do you mean, how to clear the screen ?

[This message has been edited by T2k (edited 05-23-2001).]

Hi

what I mean is each time I open my application every object is set at a certain position and when I exit and open my application again the objects return to their initial position that they have been set to be - what I want to be able to do is do this within my application whilst it is still open so every thing is reset to its initial position at a click of a button

cheers

That is not something that OpenGL deals with.
Remember, OpenGL doesn’t know anything, it just does what you tells it to do.

So if you at the start of the program tells it to position all objects at this and this position, it does excactly that and nothing more. And if you move them around and then want them to return at their initial position, you’ll have to tell OpenGL where that is.
Either, by storing every object’s initial position in another array or by reloading the scene again and overwriting existing data in memory.

This question, would probably have been more suited to the Beginners section.

>>This question, would probably have been more suited to the Beginners section.

Maybe this question is advanced to him/her, who knows…