Drawing an image outside the viewport

Started by
2 comments, last by Nemesis2k2 21 years, 1 month ago
Ok, I''m trying to setup a window that has the viewport confined to the top right corner of the screen, and a GUI running along the left and bottom of the window. I''ve relocated the viewport no problems, but I need to paste an image over the remaining areas of the window to represent the interface. The problem is glRasterPos() wants a world coordinate within the viewport. I''ve noticed when I don''t specify the raster position, it''s drawing from the bottom left by default. That would be perfect, except that I''m also using glRasterPos() to position images within the viewport, and I have no way of resetting it to the bottom left again. Is there a way to set the raster position in window coordinates rather than world coordinates, or is there some other drawing routine to do the job?
Advertisement
Have you tryed setting everything manualy (By Setting the pixels)

Dont know much about it in OpenGL, all i know is it can be done (I use SDL myself....)
The red book doesn''t seem to mention any way to write directly to the color buffers.
NM, I got an answer in the opengl forum.

This topic is closed to new replies.

Advertisement