I would like to reposition a circle, triangles, lines and an arc. How do I go about it? I’ve searched the web for solutions but nothing that address the issue specifically.
Any input that will lead me in the right direction will be helpful.
I’m using C++ with opengl.
So you already did draw the scene and now want to change the position of the objects?
Well then, all you need to understand is, that OpenGL doesn’t maintain a scene graph of sorts. After submitting a draw call, things get only updates on the target framebuffer and that’s it. You want to change something? Clear the screen, redraw everything, but now with the adjustments applied.
Really, OpenGL just draws things, it’s nothing more than sophisticated brushes (textures) and pencils (primitives) for some paper offered by the operating system (viewport/window).
EDIT due to comment
The usual interactive OpenGL graphics program with animations, programmed in a imperative programming language, is structured like this (pseudocode)