Im currently working on a basic game engine in java and im currently stuck on image loading, I want to do this with BufferedImages for consistancy with older versions of the engine (and backwards compability). I am using the TextureIO#newTexture(GL, TextureData) method for this, and I always get this exception:
I already made out the reason, which is that it automatically assigns it the texID of 0, but no way to change this/obtain a lvalid tex id. Is there any way to obtain a valid texID or do I have to keep track of them myself?
Be careful, there are plenty of ways to obtain bad performance. Several years ago, I found that Ardor3D was explicitly making contexts current whereas it wasn't necessary in some cases and our first attempt of using JOGL in JMonkeyEngine 2 managed the OpenGL context very badly. I advise you to look at the existing engines, see them as sources of inspiration.