Archived

This topic is now archived and is closed to further replies.

Drawing an image outside the viewport

This topic is 5431 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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....)

Share this post


Link to post
Share on other sites
The red book doesn''t seem to mention any way to write directly to the color buffers.

Share this post


Link to post
Share on other sites