PDA

View Full Version : draw text on top-left corner of window



cyan
12-03-2002, 04:07 AM
Hi OpenGL guys !
I want to draw some kind of help tips on the top-left corner of the window for my app (at a constant distance from top and left margin of window)

How should I set projection/modelview matrix for accomplishing this, so the text will not move/resize when I change the window's dimensions (maximize/resize)

mikael_aronsson
12-03-2002, 06:00 AM
Hi !

Use orthographic mode get the viewport size to calculate the text position.

Mikael

KenR7A
12-03-2002, 09:28 AM
hey, if you get that to work, let me know. Im trying to display realtime data of whats going on in the 3d part.