2017-01-09 32 views

回答

1

是的,這是可能的。

通常情況下,你應該reshape()看起來像:

@Override 
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) { 

    GL4 gl4 = drawable.getGL().getGL4(); 

    gl4.glViewport(0, 0, width, height); 

    // update all resources depending on the window size 
    // such as the projection matrix 
} 
+0

重塑是班上GLEventListener:http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/的OpenGL/GLEventListener.html – gouessej