2017-01-09 1 views

Répondre

1

Oui, c'est possible.

Normalement, votre reshape() devrait ressemble à quelque chose comme:

@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

Reshape est dans la classe GLEventListener: http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/ opengl/GLEventListener.html – gouessej