glDrawPixels in opengl or jogl
I have a file in i j r g b format, where i and j are pixel coordinates and r,g,b are colour values ranging from 0-255. I have scanned them fr开发者_如何学Pythonom the file in a single array(in row major order) but my draw pixel is not working as expected. Please help me out here. Do give the code also ..
It's hard to know for sure what your problem is since you don't explain it and you don't show your code, however, there is no ijrgb format in OpenGL. So you'll have to convert your data to a format that is supported (say, rgb, e.g.).
精彩评论