
Drawing an image outside the viewport
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?

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....)
Dont know much about it in OpenGL, all i know is it can be done (I use SDL myself....)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement