render scene twice

hi everyone,
i need to create an application which creates 3D anaglyph images. So i have to build a scene and render it two times, changing only the camera position. I’d like to know if it’s possible to do this without having to recall all the methods that create the scene.

exemple (something like):
CreateABox();
CreateASphere();
renderTheRightEyeView();
renderTheLeftEyeView();

instead of:
SetCameraPosition();
SetViewport();
CreateABox();
CreateASphere();
ChangeViewPort();
ChangeCameraPosition();
CreateABox();
CreateASphere();

thanks for your reply. i know it’s not so clear but i haven’t got much experience!

Basically yes, you do have to explicitly re-send commands for each render.
There are ways to improve than : buffer objects (containing vertex data or pixel data) can be reused as-is for both renders.

Display lists should be avoided, as compile time is prohibitive.