I’m working on a homework assignment to modify code given by my professor using LightWeight Java Game Library. The problem is that I can’t fully load the test code to begin testing modifications. I’ve linked against the jar file as it says to in the modifications, but I still have one lingering error. The import statement
import org.lwjgl.util.glu.*;
Cannot be resolved, so I have errors on the following lines, spread throughout the code:
textures[0] = GLApp.makeTexture("green.bmp");
GLU.gluPerspective(45.0f,
(float)Display.getDisplayMode().getWidth() /
(float)Display.getDisplayMode().getHeight(),
0.1f,
100.0f);
GLU.gluLookAt(cameraX, cameraY, cameraZ, lookX, lookY, lookZ, 0.0f, 1.0f, 0.0f);
Any ideas on what is going wrong?
that import is found in the lwjgl_util.jar so you need to also link to that in addition to lwjgl.jar.
you can visit the lwjgl irc channel at #lwjgl on freenode.net if you need further help.