What object has the two methods glBegin and glEnd in JOGL2? I’ve found lots of examples that are done in the way I’ve written below, but I can’t get this to work. Have the objects for this changed from JOGL 1.1.1 to JOGL 2?
The compiler says :
The method glBegin(int) is undefined for the type GL
public boolean drawSelf(GLAutoDrawable glad)
{
GL gl = glad.getGL();
gl.glBegin(GL.GL_QUADS); // <-- error
....
}
What am I doing wrong?
Thanks
Mossen