diwic
01-03-2006, 12:57 AM
Hello!
I would like to draw a simple rectangle, say 200 x 50 pixels (as background to a raster font generated with wglUseFontBitmaps).
Is there a smarter way to do it than to use glBitmap and a gigantic array of one:s?
(I guess using glBegin(GL_QUADS) or something similar won't work for me as I want to specify the size of this rectangle in pixels, whereas GL_QUADS wants me to specify all vertexes of the rectangle).
// David
I would like to draw a simple rectangle, say 200 x 50 pixels (as background to a raster font generated with wglUseFontBitmaps).
Is there a smarter way to do it than to use glBitmap and a gigantic array of one:s?
(I guess using glBegin(GL_QUADS) or something similar won't work for me as I want to specify the size of this rectangle in pixels, whereas GL_QUADS wants me to specify all vertexes of the rectangle).
// David