I posted a similar message at the opengl ng, but it’s time I post it here too in case…
I find it very strange that the counterpart of ReadPixels, which is DrawPixels doesn’t have a similar format.
ReadPixels takes as parameters the start position and final positions for reading. So why not DrawPixels? DrawPixels is dependent on RasterPos which is hard to use because RasterPos is effected by the current transformation matrices.
I will suggest a new function for OpenGL 1.3
let’s call it glDrawPixels2 and it’s format should be
void glDrawPixels2(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid pixels);