Display Text

Hi

I tried to implement the NeHe OpenGL Lesson 24 to Linux.
( http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=24 )
I don’t get any error messages but there isn’t any text displayed. Drawing a Triangle worked, so any ideas ?

You can see the source code here:
http://193.170.62.82/~p%F6nithom/test.html

You requested double buffering:

 SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); 

but did not swap the buffers at the end of the draw. Add the call to swap the buffer after the flush or turn off double buffering in during init.

  free(text);   // Free Allocated Memory
  glFlush();    // Flush The Rendering Pipeline
  SDL_GL_SwapBuffers(); // <<==-- new line
  return true;  // Everything Went OK

enjoy
scott

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.