O'Reilly logo

OpenGL SuperBible: Comprehensive Tutorial and Reference, Fourth Edition by Nicholas Haemel, Benjamin Lipchak, Richard S. Wright

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

glGetHistogram

Get histogram table

C Specification

void glGetHistogram(GLenum    target,                                GLboolean reset,                                GLenum    format,                                GLenum    type,                                GLvoid *  values);

Parameters

Image

Description

glGetHistogram returns the current histogram table as a one-dimensional image with the same width as the histogram. No pixel transfer operations are performed on this image, but pixel storage modes that are applicable to 1D images are honored.

If a nonzero named buffer object is bound to the GL_PIXEL_PACK_BUFFER target (see glBindBuffer) while ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required