Hi,
i loaded the lwjgl_optional package. I copied the lwjgl_devil.jar file into the folder where the rest of my jar's are. And I copied the devil.dll into the folder, where the rest of my natives are. I included all correctly, I can use LWJGL! But, when I try to use Devil, I get the following error:
Quote
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.lwjgl.devil.IL.ilGetError()I
at org.lwjgl.devil.IL.ilGetError(Native Method)
at org.Texture.load(Texture.java:35)
at Schnitter.<init>(Schnitter.java:8)
at Schnitter.main(Schnitter.java:21)
So, I don't know, why this error appears.
I try to use devIL in my Texture-class. It's like the one in the wiki, but a bit changed.
Bye, Schnitter
are you calling IL.create prior to using it ?
Oh shit :-/
I didn't know that^^
I tried it with IL.create() and ILU.create().
It works well until I removed some other bugs, then I got a Exception at GL11.glCreateTextures(scratch);
To be sure, I just copied the text from the tutorial in the wiki - The same error :(
I copied the source of loadTexture() to an another class - TextureLoader, because I want to do some other things.
And I got the Exception again :(
Here's the exception-code:
Quote
java.lang.NullPointerException
at org.lwjgl.opengl.GL11.glGenTextures(GL11.java:1348)
at org.TextureLoader.loadTexture(TextureLoader.java:63)
at Schnitter.<init>(Schnitter.java:16)
at Schnitter.main(Schnitter.java:65)
Hope for help - Schnitter
Oh sorry :( I discovered, that GL11 can only be used, when the Display is created.
When you like to create the GL functions without a display, you have to create a PBuffer and use him instead of the display.
I wasn't aware that a PBuffer was gender specific :o
Quote from: Matzon on October 06, 2007, 15:30:01
I wasn't aware that a PBuffer was gender specific :o
U r so mean Matzon :P