Hi everyone, I’m new here. Spent the last few days trawling these forums looking for a thread to participate in without making myself look a fool, with no luck! At last I have a reason post 
I’m working my way through the JOGL ports of the NeHe OpenGL tutorials, and I’ve come across some function calls that, as far as I can tell, don’t exist for me. An example would be the following code, found in lesson 2.
public void reshape(GLDrawable gLDrawable, int x, int y, int width, int height)
{
final GL gl = gLDrawable.getGL();
final GLU glu = gLDrawable.getGLU();
if (height <= 0) // avoid a divide by zero error!
height = 1;
final float h = (float)width / (float)height;
gl.glViewport(0, 0, width, height);
gl.glMatrixMode(GL.GL_PROJECTION);
gl.glLoadIdentity();
glu.gluPerspective(45.0f, h, 1.0, 20.0);
gl.glMatrixMode(GL.GL_MODELVIEW);
gl.glLoadIdentity();
}
The first two function calls, to getGL() and getGLU(), I see very often in the tutorials I stumble across. However, to get this code working I’ve had to change it to:
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height)
{
final GL2 gl = drawable.getGL().getGL2();
final GLU glu = new GLU();
...
gl.glMatrixMode(GL2.GL_PROJECTION);
...
gl.glMatrixMode(GL2.GL_MODELVIEW);
...
}
Have certain functions been removed from the later versions of JOGL? If so, is there somewhere I can look to find all the changes? I’m relatively new to both Java and JOGL, and so I’m unsure if the workaround I’m being forced to use is the correct way to do so.
EDIT: Typo.
maybe I ought to rewrite a few of the NeHe tutorials myself for the current JOGL version once I get my head around it 