keep the rendering on the window

i want a function to keep each shape in the screen what can i use?
and how can i outputing words from a file into the open gl window?

I’m not sure to understand your question ? To keep shape on the screen ? You need to draw your object (shape) each time, if that is your question.

As for text, you need to create ( or load) a texture using a font information and then render geometry while applying the font texture on it (with according UV if you have all your font char on the same texture).

Maybe you should be reading some basic OpenGL before pursuing with your project ? I propose this :


Thanks for the replay ,its a very good link !