Hello, I am trying to switch over to LWJGL since it has neat OpenGL functions obviously, I am doing a 2d game but want to be able to implement 3d effects on top. I found a nice tutorial how to set up a 2d scene (
http://basic4gl.wikispaces.com/2D+Drawing+in+OpenGL).
But now I am having problems understanding how to load and display textures, I can draw a simple white square, however I cannot get a Texture on it. I have tried various tutorials, but I have to ask. Is there no built in way to load and display Textures? It seems like such a basic thing. Yet I seem to find lots of people asking the same thing?
I tried the Devil tutorial on Wiki, but I suppose Devil is no longer supported in 2.5 or something since it seem to be missing some lib/jar file?
There is the TGA tutorial I have not tried, I am using PNG files as of now, is there a differance?
If there is no native to LWJGL way to simply loadTexture function, what would you suggest I use?
I tried something called slick.util, seems to work but still wont display any texture (no errors though).
I tried to use the code as shown in my above 2d tutorial linke under "Putting it all together". It works fine and draws all the difference shapes. I used the following to try and put a texture on a shape :
Slick.util load textureI just put the load and then texture.bind(); before I stated my glBegin().
Maybe it's my knowledge of OpenGL (which is none) that gets in the way, something I am missing. Maybe just drawing a 2d shape like this isnt actually making a "surface" which I can put texture on or something? well any advice would be much appritiated.