Login  Register

Re: Jogl and JavaFX

Posted by DamagedTiberius on Apr 02, 2020; 8:43pm
URL: https://forum.jogamp.org/Jogl-and-JavaFX-tp4040468p4040496.html

I overlooked a missing piece in your init method as well. You need to set the view port. Add something along the lines of this to the end of init():
    final GL4 gl = arg0.getGL().getGL2();
    gl.glViewport(0, 0, arg0.getWidth(), arg0.getHeight());

If that doesn't get you going: