   GLUT: Problems with globals
  I'm working with getting text to work in OpenGL, and I'm using GLUT. I've found this web site which explains a lot of the functions: http://www.opengl.org/documentation/specs/glut/spec3/node1.html  But it doesn't explain why I can't set a function define as a global, see code below.The code is a bit complex, but the issue is narrowed down to here: This code appear in a header file outside of main.  // 3D Graphical Text// This will be removed when FurText class gets the display() method complete// This only works in this format and not any other way. I just doesn't display! ODD!!!//    MyText screenText; // wierd as heck, but if you make this global, the text doesn't appear! // and the app crashes the system in four key strokesvoid ScreenText00(void) {    MyText screenText; // we can only define screenText here!char *p = "RJ! This text is working!";    screenText.textIn(p);    screenText.textIn("Run! Dustin has become a GOD!!!");    screenText.display();}ScreenText00() is called in the render scene loop and appears if it is above, but when I try to define as a global, not text!Why can't I define this as a global in GLUT so I don't have to keep stuffing the data into screenText before I get is displayed?   
  Fixed the crashing part, There wasn't any code to deal with if my Messages were empty.But it's still not displaying, the class can now be defined asMyText screenText; // GloballyOk, I'll post solutions as I find it.   ;  Found it! It's a non-OpenGL solution, which means this was mis-posted.  Admin please move this to General programming.To get the text to display, you have to rebuild the font every time in the display function.  Which is odd, but *shrugs* It's solved now.