Hi, it would be very nice if DevIL would have some sort of way to access the pixel of the current image. Something like...
Which would get the current pixel at location X and Y. The problem is, how would you deal with all the types (byte, short. int. float, double) and formats (RGB,RGBA,BGR,BGRA,Luminance)?
I suppose you could have a different function for all permutations of types and formats, maybe there is a better way?
The unique way would be to return a pointer at the pixel data and an integer to specify the size of the data about the pixel data
Log in to post a comment.