PDA

View Full Version : Move text in OpenGL window?



alexei_shk
12-07-2005, 07:05 AM
Hi,

I can't move the text in openGL window.
I have tryed glTranslate and glRasterPos2d. I doesn't work.

The text drawed by:
Gl.glListBase(1000);
Gl.glCallLists(text.Length, Gl.GL_UNSIGNED_BYTE, text);

So how can I move, resize, rotate the text?

Thank's
Alexei

Ed Holder
12-07-2005, 09:30 AM
I'm a beginner too, so this may not be much help... I've only done text using GLUT and was able to move it around. Using the CallList approach, I wonder if it might be a projection issue. Are you setting this up using Ortho2D or similar?

alexei_shk
12-07-2005, 10:35 PM
Hi,

You don't understand what I mean. I have some picture drawed in OpenGL window. Now I want to put the text in it.

I am using the C# language with Tao project. There I can use only the call lists.

Thank's
Alexei

alexei_shk
12-08-2005, 03:33 AM
Hi,

I solved my problem by adding pushmatrix and popmatrix.

Thank's
Alexei