Greetings.
So I decided to try learning OpenGL (again), and… for some reason am using Java, and thus LWJGL.
It went well for a while, but I am quite stuck on getting a texture to display.
I feel it is something small, but it has not become apparent to me over 12 hours, so I decided to come for help.
The image loads successfully. glGetError returns 0 (and glGenTextures returns 1 (not 0), if it matters).
I tried glTextCoordx at some point, but to no avail.
It is my understanding that there are several steps:
First, enable textures, and set several parameters (glTexParameteri).
Get an id for a new texture.
“upload” the data for it (I had a lot of trouble with this step. In the current configuration, it no longer errors with 1280 though (invalid enum)).
Bind it.
Draw stuffs.
Unbind it.
I also tried it with binding before the upload, as it seems it does not take a handle/id, but rather affects the current bound texture. No success.
What am I missing?