OpenGl avoiding redraw shape

Hi,
I am trying to make animations in OpenGl. I have a number of objects and only one object moves everytime. I saw a lot of tutorials and they say to redraw all objects.Is there anyway to save the static objects and redraw just the moving object?

Thanks.
You could render all immovable objects into a texture once, and at each frame simply render this texture + all movable objects. Of course this assumes that movable objects are not partially hidden by immovable objects, and that the position and direction of the camera is constant.

Also, there is an extension to tell OpenGL that vertex information will not change, so that it can skip some calculations later.
Are you experiencing poor performance from drawing the static objects? If not, I would advice you to leave it alone.

Premature optimization is the root of all evil.
Topic archived. No new replies allowed.