There is no book in DevIL, i guess.
for example, when i see on the documentation:
ilIsValid(int Type, java.lang.String FileName)
I dont know what is it for, what is "Type" param and which constant values are valid for it, etc.
anyhoo, i've got the following code:
1 2 3 4 5 6 7 8
| IntBuffer image = BufferUtil.newIntBuffer(1); IL.ilGenImages(image); IL.ilBindImage(image.get(0)); IL.ilLoadImage("Data/heightmap1.bmp"); IL.ilConvertImage(IL.IL_RGB, IL.IL_BYTE); ByteBuffer scratch = IL.ilGetData(); for (int i=0;i<500;i++) System.out.println(""+i+": "+scratch.get(i)); |
why do i see negative numbers on the output?