glDrawPixels in opengl or jogl

492 Views Asked by At

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 from 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 ..

1

There are 1 best solutions below

0
On

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.).