Alright, so im making falling numbers and i need to display points while its running. in the code its keeping track, but i have no way of displaying it. in regular C++ i would just do cout<<score;
but in openGL it doesn't work that way as most of you know. so how do i draw a variable in OpenGL?
bballmitch
0
Newbie Poster
Recommended Answers
Jump to PostUse a tool called GLFont under ortho view you can output text like
glFontBegin(&font); glScalef(8.0, 8.0, 8.0); glTranslatef(30, 30, 0); glFontTextOut("Test", 5, 5, 0); glFontEnd(); glFlush();
you can find it here http://students.cs.byu.edu/~bfish/glfontdl.php
i remember there is function under opengl who can put text …
All 7 Replies
bballmitch
0
Newbie Poster
alone2005
0
Newbie Poster
t3ch|\/|4n
0
Newbie Poster
ashwini_rt
-4
Newbie Poster
Salem
commented:
Didn't bother to read the replies, or perhaps even the manual page.
-4
alibad
0
Newbie Poster
ashwini_rt
-4
Newbie Poster
TWAT
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.