|
Hey all,
I'm using JOGL and I'm trying to figure out how I can render a scene to a lower resolution than I display the scene. IE, I'd like to render the scene at, say, 256x256, and then have that image automatically scale to fill a JPanel.
Currently, I can get the image to render at the smaller resoluton by resizing the viewport, or resizing the actual GLAutoDrawable... but I can't seem to find a way to make the viewport automatically upscale a low-res render buffer.
If any of that makes sense... I just like to set a small, fixed resolution for the scene and have that scale to fill the window.
|