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?
Jump to Post
Use 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 RepliesReply to this topic
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.