How can i print some article in OpenGL?
Hi everybody!
I''m just beginner in OpenGL
From lesson 13-17 I learned how to put the text on the screen.
I have noticed that every line has it''s own coordinates and printed on the screen separatly from other text lines .So my question is:How can I put the whole article (after I loaded it from the file) in some part of the screen and scroll up and down
using the function glScissor(x,y,w,h).
Modify his function, or write your own, that understands newlines. Or just use that function for every line. While you''re at it, only render the visible lines, so that it is more efficient.
[Resist Windows XP''s Invasive Production Activation Technology!]
[Resist Windows XP''s Invasive Production Activation Technology!]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement