From 11b9733af55c2e4f08317a65ec2a7acfaf849871 Mon Sep 17 00:00:00 2001 From: scuri Date: Wed, 19 Aug 2009 16:33:03 +0000 Subject: *** empty log message *** --- html/en/guide.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'html') diff --git a/html/en/guide.html b/html/en/guide.html index d174f9a..4404462 100644 --- a/html/en/guide.html +++ b/html/en/guide.html @@ -214,7 +214,9 @@ glDrawPixels(image->width, image->height, GL_RGB, GL_UNSIGNED_BYTE, (GLvoi imConvertMapToRGB(gl_data, width*height, depth, packed, palette, palette_count); } -

If you just want to save your OpenGL buffer then you can use:

+

If you are using the imImage structure then you can + instead use the function imImageGetOpenGLData.

+

If you just want to save your OpenGL buffer then you can use:

glPixelStorei(GL_PACK_ALIGNMENT, 1); /* data alignment must be 1 */
 glReadPixels(x, y, width, height, GL_RGB, GL_UNSIGNED_BYTE, (GLvoid*)gl_data);
-- 
cgit v1.2.3