Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2D Text in GL.
#1
I noticed that glPrint in freebasic doesn't exist.

I wonder if theres any alternative way or whatever.

Originally in C++ it goes something like this:

glRasterPos2f(0.012f,0.057f);
glColor3f(0.1f,1.0f,0.0f);// text color
glPrint("B-Rad's Game Engine"); // Print GL Text To The Screen
glColor3f(0.0f,0.0f,0.0f); // color back to black now

I wanted to make it say "Hello world!" with the triangle and cube spinning.
Reply
#2
glPrint() is not part of the OpenGL API nor of GLU or GLUT, if you saw that on NeHe's tutorials, it's an user implemented routine.

It can be easily translated as FB supports variable-arguments routines since version 0.13 too.
Reply
#3
Sounds cool.

I was also figuring out on how to draw lines, circles, and hollow/solid boxes while 3d Objects are being drawn because I plan to make a HUD using 2D drawing objects as such.
Reply
#4
Hi

There is a glPrint routine from Relsoft

In my example of a tiny 3DEngine I use it :

http://fbtk.qbtk.com/phpBB2/viewtopic.php?t=283

Maybe it can help you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)