summaryrefslogtreecommitdiff
path: root/html/en
diff options
context:
space:
mode:
Diffstat (limited to 'html/en')
-rw-r--r--html/en/guide.html4
1 files changed, 3 insertions, 1 deletions
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);
}</pre>
- <p>If you just want to save your OpenGL buffer then you can use:</p>
+ <p>If you are using the <strong>imImage</strong> structure then you can
+ instead use the function <strong>imImageGetOpenGLData</strong>.</p>
+<p>If you just want to save your OpenGL buffer then you can use:</p>
<pre>glPixelStorei(GL_PACK_ALIGNMENT, 1); /* data alignment must be 1 */
glReadPixels(x, y, width, height, GL_RGB, GL_UNSIGNED_BYTE, (GLvoid*)gl_data);