Im trying to follow along with the NeHe tutorials and im trying to load a texture. Since devil is no longer supported I have tried using slick to load textures. It works fine when I use this code
GL11.glMatrixMode(GL11.GL_PROJECTION);
GL11.glLoadIdentity();
GL11.glOrtho(0, 800, 0, 600, 1, -100);
GL11.glMatrixMode(GL11.GL_MODELVIEW);
but not this code which is what the tutorials use.
GL11.glMatrixMode(GL11.GL_PROJECTION);
GL11.glLoadIdentity();
GLU.gluPerspective(
45.0f,
(float) displayMode.getWidth() / (float) displayMode.getHeight(),
0.1f,
100.0f);
GL11.glMatrixMode(GL11.GL_MODELVIEW);
Is there a way to make the slick texture loading work with the glu code or is there another way I can load textures?