I have not been able to load any textures using the TextureLoader class with LWJGL and slick for use with OpenGL. Here is my code:
try {
sprite = TextureLoader.getTexture("PNG", new FileInputStream("sprite.png"));
}catch(Exception e) {}
if(sprite == null) {
System.out.println("Sprite is null");
}else {sprite.bind();}
glBegin(GL_QUADS);
glTexCoord3f(0, 1, 0);
glVertex3f(0, 1, 0);
glTexCoord3f(1, 1, 0);
glVertex3f(1, 1, 0);
glTexCoord3f(1, 0, 0);
glVertex3f(1, 0, 0);
glTexCoord3f(0, 0, 0);
glVertex3f(0, 0, 0);
glEnd();
I know the image is in the same directory in my class, and I don't believe anything is wrong with my OpenGL code because I have been able to draw quads/cubes successfully.