PDA

View Full Version : Raster position in 3.3



sam_thedancer
09-12-2012, 12:04 PM
Greetings:
Core 3.3 seems to have killed off both glRasterPos and glWindowPos. So how to position bitmaps and text strings? Thanks in advance,
Sam

V-man
09-12-2012, 12:55 PM
Render them as textures on polygons (triangles). In order to render in screenspace, here is an example with old GL
http://www.opengl.org/wiki/FAQ#How_to_render_in_pixel_space

so build that kind of matrix and upload it to your shader and render your polygons.

sam_thedancer
09-13-2012, 12:47 PM
Thanks, V-man