
11 Jan
2010
11 Jan
'10
3:26 p.m.
Kenny Riddile wrote:
I do this to load GIL images as OpenGL textures and it works fine for me:
reinterpret_cast
( interleaved_view_get_raw_data(imageView) )
Also, I've noticed that OpenGL interprets the image data upside down, so I flip it prior to calling glTexImage2D using flipped_up_down_view. Flipping the image data seems to be common practice when loading OpenGL textures based on what I've read online.