LWJGL
May 19, 2013, 23:30:46
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
LWJGL 2.9.0 released!
Home
Help
Search
Login
Register
LWJGL
>
Archive
>
DevIL
>
Null Pointer Exception
Pages: [
1
]
« previous
next »
Print
Author
Topic: Null Pointer Exception (Read 4233 times)
mcsquared
Newbie
Posts: 9
Null Pointer Exception
«
on:
February 14, 2007, 09:22:11 »
Hi
I'm trying to use devil to load a bitmap, the tutorial on the wiki.
The only difference in the code I am using is that i've added:
IL.create();
ILU.create();
ILUT.create();
ILUT.ilutRenderer( ILUT.ILUT_OPENGL );
before trying to load the image, and:
IL.ilLoadFromURL(IL.class.getClassLoader().getResource(name))
has been changed to:
IL.ilLoadImage(name)
But I keep getting a Null Pointer Exception at the line:
GL11.glGenTextures(scratch);
If you can't tell, I am very new to this and have no idea why this is happening.
Can anybody please help?
Cheers
Logged
Matzon
Administrator
Demigod
Posts: 2237
Re: Null Pointer Exception
«
Reply #1 on:
February 14, 2007, 14:00:45 »
have you created the Display prior to this ?
Logged
http://lwjgl.org
mcsquared
Newbie
Posts: 9
Re: Null Pointer Exception
«
Reply #2 on:
February 14, 2007, 14:51:49 »
sorry for wasting you time.
i
was
calling it before creating the display
Logged
mcsquared
Newbie
Posts: 9
Re: Null Pointer Exception
«
Reply #3 on:
February 15, 2007, 14:16:01 »
http://lwjgl.org/forum/index.php/topic,1600.0.html
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Programming
-----------------------------
=> Lightweight Java Library Game Development
=> LWJGL Documentation
=> Bug Reports / RFE
=> OpenGL
=> OpenAL
=> General Java Game Development
-----------------------------
Archive
-----------------------------
=> Resolved Bugs/RFE
=> DirectX
=> DevIL
=> FMOD
Loading...