Re: What's the relation between GLCanvas.setsize , JFrame.setsize , JFrame.getLocationOnScreen , and gl.glViewport?
Posted by HamudHaa on Feb 08, 2024; 11:13am
URL: https://forum.jogamp.org/What-s-the-relation-between-GLCanvas-setsize-JFrame-setsize-JFrame-getLocationOnScreen-and-gl-glView-tp4043298p4043300.html
Hi . Yes , after testing my codes , I found that before display is called and after init is over , there's a call to reshape which will automatically set glviewport to the size of the window . Yes , they're independent things .
Another question : When I'm using glviewport , as well as printing a and b value received in reshape method , why the x,y coordinates are always 0 ? Won't the left bottom corner change when I'm moving the window ?