| | |
Display variables using opengl
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Oct 2008
Posts: 89
Reputation:
Solved Threads: 0
I'm pretty new to opengl but been using c++ for a while now. How can I display variables using this? I can display single characters by using
Why can I not use
Compiles but won't display anything.
C++ Syntax (Toggle Plain Text)
glutStrokeCharacter(GLUT_STROKE_MONO_ROMAN,'0');
C++ Syntax (Toggle Plain Text)
int x = 0; glutStrokeCharacter(GLUT_STROKE_MONO_ROMAN,x);
Haven't used it for a while, but I think it takes the ascii value in int form.
if you wan't to use variable use a char variable
Also google the function, and you get a documentation, like this
if you wan't to use variable use a char variable
C++ Syntax (Toggle Plain Text)
char print ='0'; for(print = '0'; print != '9'; print++) glutStrokeCharacter(GLUT_STROKE_MONO_ROMAN, print);
Also google the function, and you get a documentation, like this
Last edited by firstPerson; Sep 25th, 2009 at 7:21 pm.
1) What word becomes shorter if you add a letter to it? [ Solved by : niek_e, Paul Thompson] 2) What does this sequence equal to : (.5u - .5a)(.5u-.5b)(.5u-.5c) ...[*] [*solved by : murtan] 3) What is the 123456789 prime numer?
![]() |
Similar Threads
- OpenGL Help (Game Development)
- admin_password= is not working (PHP)
- Stressed This mail() was working - Can you see why it is not now (PHP)
- Windows Vista (IT Professionals' Lounge)
- letter and word counter (C)
- Error message when trying to retreive attribute value (Visual Basic 4 / 5 / 6)
- parking fee (C++)
- Showing results of a form in new window (HTML and CSS)
Other Threads in the C++ Forum
- Previous Thread: calling a constructor in a constructor
- Next Thread: compile error
| Thread Tools | Search this Thread |
api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data database delete desktop developer directshow dll download dynamic encryption error file forms fstream function functions game generator getline givemetehcodez google graph gui homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number output parameter pointer problem program programming project proxy python random read recursion recursive return string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






