PDA

View Full Version : keep the rendering on the window



nadia88
04-14-2010, 11:44 AM
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?

FrimaMichael
04-14-2010, 12:46 PM
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 :

http://www.glprogramming.com/red/

Mick

nadia88
04-14-2010, 03:25 PM
Thanks for the replay ,its a very good link !