0

I need to print text on my LWJGL OpenGL window. And I need the text to be onscreen, using screen coordinates and not on the worldspace. Any ideas on how I can do this?

I saw a guide here that showcases the use of the GLApp print() function, but following after the example doesn't work for me.

Here's my render function, following the tutorial I mentioned:

private void updateScreen(){
    //Render scene

    print(40, 210, "Some text onscreen");
    print(100, 100, "Some text onscreen", 1);
    Display.update();
}
Nicol Bolas
  • 449,505
  • 63
  • 781
  • 982
brain56
  • 2,659
  • 9
  • 38
  • 70
  • "the example doesn't work for me." Doesn't compile? Unexpected runtime behavior? – genpfault Mar 19 '12 at 15:21
  • It compiles and the program runs perfectly, but the text I want printed don't display. Thank you for pointing out that ambiguity. :D – brain56 Mar 19 '12 at 15:31

0 Answers0