I cannot use devIL

Started by Schnitter, October 05, 2007, 14:04:56

Previous topic - Next topic

Schnitter

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

Matzon

are you calling IL.create prior to using it ?

Schnitter

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

Schnitter

Oh sorry :( I discovered, that GL11 can only be used, when the Display is created.

Evil-Devil

When you like to create the GL functions without a display, you have to create a PBuffer and use him instead of the display.

Matzon

I wasn't aware that a PBuffer was gender specific  :o

Evil-Devil

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