i need to render the same 3D scene two times in the same frame changing the camera position. is it possible to do this without having to recall all the methods that create the scene twice?
i'd like to do something like this:
setCameraPosition(x,y,z);
box(45);
sphere(55);
...etc
model a=get3dScene(); //return all the shapes i've just created
changeCameraPosition(x1,y1,z1);
renderModel(model);
maybe using some OpenGL functions... i really don't know!
hi! how could i check if the mouse is upon my window's sketch during execution? i want to change the color of the background
whether the cursor is upon the window or outside