Login  Register

How to make AWT GLCanvas stop drawing everything at bottom left of parent window

Posted by jedwards1211 on Jan 03, 2016; 12:02am
URL: https://forum.jogamp.org/How-to-make-AWT-GLCanvas-stop-drawing-everything-at-bottom-left-of-parent-window-tp4035965.html

In my program, I have an AWT GLCanvas whose bottom left corner is above/to the right of the bottom left corner of its window ancestor.

Nevertheless, it draws over components to the left of and below it all the way to the left and bottom edges of the window.  Even if I change the glViewport coordinates or use a framebuffer and change the coordinates I blit to, it does this.

I can't see how anything other than the bottom left corner of the GLCanvas being the 0, 0 point of the OpenGL context's screen coordinates would be the expected behavior.

How can I make it not draw over the left/bottom portions of the window contents?