I'm trying to learn how to use JoGL, and for some reason I'm getting this error despite having all of these imported:
import javax.media.opengl.*; import javax.media.opengl.glu.*; import com.sun.opengl.util.*; import com.sun.opengl.util.j2d.*;
public void display(javax.media.opengl.GLDrawable gLDrawable) { final GL gl = gLDrawable.getGL(); }
nor
public void display(GLDrawable gLDrawable) { final GL gl = gLDrawable.getGL(); }
work.
How do I fix this?
(edit: moved the next question up to here... you can edit your question or make a new question if things change with the answers you get)
Okay, that worked for getGL(), but now I'm still having problems with "cannot find symbol method getGL**U**()"
public void reshape(GLAutoDrawable gLDrawable, int x, int y, int width, int height)
{
final GL gl = gLDrawable.getGL();
final GLU glu = gLDrawable.getGLU();
}