Bonjour,
dans ma fonction reshape, je souhaite utiliser gluOrtho2D, mais je ne sais pas comment déclarer une instance de GLU.
Voilà le code que je souhaiterai compléter :
Merci par avance...Code:
1
2
3
4
5
6
7
8
9
10
11 public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) { GL gl = drawable.getGL() ; GLU glu = ?????? gl.glViewport(0, 0, width, height) ; gl.glMatrixMode(GL.GL_PROJECTION) ; gl.glLoadIdentity() ; glu.gluOrtho2D(.....) }