From: Sven G. <sgo...@ja...> - 2000-02-08 23:00:25
|
Dear Erwin, to generate a snapshot for GLMame32, I used to setup the pixel packing modes, like this: glPixelStorei(GL_PACK_ALIGNMENT, 1); /* byte alignment - I guess THIS IS THE VALUE FOR YOU, default is 4 */ glPixelStorei(GL_PACK_ROW_LENGTH, width); /* pixels in a row */ glPixelStorei(GL_PACK_LSB_FIRST, GL_TRUE); /* Intel data :-) */ glReadPixels(0,0, width, height, GL_RGB, GL_UNSIGNED_BYTE, pixels); glPixelStorei(GL_PACK_ALIGNMENT,4); /* reset the data */ glPixelStorei(GL_PACK_ROW_LENGTH, 0); I hope this will help. Sven -- mailto:sgo...@ja... www : http://www.jausoft.com voice : +49-521-2399440, +49-170-2115963; fax: +49-521-2399442 |