LWJGL
May 17, 2012, 02:13:23 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: Newbie:Problem with DevIL method signature  (Read 5230 times)
Toby
Newbie
*
Posts: 4


« on: April 13, 2005, 01:18:34 »

Hi,

I've run into an issue with the NeHe Lesson06 with the line:

IL.ilGenImages(1,image);

according to the method signature it should be:

IL.ilGenImages(image)

but this does not load the texture correctly, anyone got any ideas?

MacOSX, version 0.96 of lwjgl
Logged
Matzon
Administrator
Demigod
*****
Posts: 2177



« Reply #1 on: April 13, 2005, 01:53:20 »

I recently changed the signature to reflect the rest of lwjgl.

The buffer supplied is now checked for its position, and limit to determine how many images to create.

However, judging from the nehe 06 code, everything should work fine? - position should be 0 and limit should be 1, thus producing 1 image. Indeed the GL11.glGenTextures(buf); called a bit below, uses the same syntax, and has always worked fine... Have you confirmed that it used to wrok fine on mac os x ?
Logged

http://certusgames.com (Free Online Multiplayer Java Games)
http://lwjgl.org (OpenGL/OpenAL for Java)
Matzon
Administrator
Demigod
*****
Posts: 2177



« Reply #2 on: April 13, 2005, 02:04:11 »

Everything seems in order ? - must be the nehe code?

Quote
MacBeth:/Users/matzon/Development/lwjgl $ java -cp .:bin/: -Djava.library.path=libs/ org.lwjgl.test.devil.BasicTest
error = no error
ilGenImages
ilBindImage
error = no error
ilLoadFromURL file:/Users/matzon/Development/lwjgl/res/ILtest.tga
load lump = true
error = no error
ilGetData
error = no error
limit = 48
0 0 0
0 0 -1
-1 0 0
0 -1 0
-1 -1 -1
-1 -1 -1
-1 -1 -1
-1 -1 -1
-1 -1 -1
-1 -1 -1
-1 -1 -1
-1 -1 -1
-1 -1 -1
-1 -1 -1
-1 -1 -1
-1 -1 -1
current image = 2 IL.ilGetInteger(IL.IL_ACTIVE_IMAGE) = 0
Version: 161
error = no error
info.id         = 3
info.width      = 4
info.height     = 4
info.depth      = 1
info.bpp        = 3
info.sizeOfData = 48
info.format     = 32992
info.type       = 5121
info.origin     = 1537
info.palType    = 1024
info.palSize    = 0
info.numNext    = 0
info.numMips    = 0
info.numLayers  = 0
error = no error
ILUT Vendor: Abysmal Software
Logged

http://certusgames.com (Free Online Multiplayer Java Games)
http://lwjgl.org (OpenGL/OpenAL for Java)
Toby
Newbie
*
Posts: 4


« Reply #3 on: April 13, 2005, 02:32:28 »

Only came to lwjgl at version 0.96. so cannot say if it worked or not in previous releases. But the texture is definately not loading in Lesson06

Ran the BasicTest and all that appeared to be fine,
Logged
Toby
Newbie
*
Posts: 4


« Reply #4 on: April 13, 2005, 05:08:01 »

My mistake, path to the texture was wrong.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!