GLGETHISTOGRAMPARAMETER(3G)
β¨ GLGETHISTOGRAMPARAMETER β¨
okay bestie, welcome to GLGETHISTOGRAMPARAMETER(3G) π this is the section 3G glow-up of your fave little query function β it's how you peek at histogram parameters without touching anything. no cap, it's giving "tell me everything but don't change a thing" π
πΈ NAME πΈ
glGetHistogramParameterfv, glGetHistogramParameteriv β get histogram parameters π
π¦ C SPECIFICATION π¦
void glGetHistogramParameterfv( GLenum target,
GLenum pname,
GLfloat *params )
void glGetHistogramParameteriv( GLenum target,
GLenum pname,
GLint *params )
two flavors, same energy: one hands you GLfloats, the other hands you GLints. pick your fighter π
π PARAMETERS π
targetβ has to be one ofGL_HISTOGRAMorGL_PROXY_HISTOGRAM. those are the only two vibes allowed here.pnameβ the name of the parameter you're trying to pull. must be one ofGL_HISTOGRAM_WIDTH,GL_HISTOGRAM_FORMAT,GL_HISTOGRAM_RED_SIZE,GL_HISTOGRAM_GREEN_SIZE,GL_HISTOGRAM_BLUE_SIZE,GL_HISTOGRAM_ALPHA_SIZE,GL_HISTOGRAM_LUMINANCE_SIZE, orGL_HISTOGRAM_SINK. literally that whole list, no substitutions π«Άparamsβ a pointer to storage where the returned values go. you bring the bucket, it fills the bucket π
π DESCRIPTION π
so glGetHistogramParameter is the girl who asks the questions. she queries parameter values for the current histogram or for a proxy β that's it, that's the job. β¨
you call her with a target of either:
GL_HISTOGRAMβ to obtain information for the current histogram tableGL_PROXY_HISTOGRAMβ to obtain information from the most recent proxy request
β¦and then one of these values for the pname argument π
GL_HISTOGRAM_WIDTHβ Histogram table widthGL_HISTOGRAM_FORMATβ InternalGL_HISTOGRAM_RED_SIZEβ Red component counter size, in bitsGL_HISTOGRAM_GREEN_SIZEβ Green component counter size, in bitsGL_HISTOGRAM_BLUE_SIZEβ Blue component counter size, in bitsGL_HISTOGRAM_ALPHA_SIZEβ Alpha component counter size, in bitsGL_HISTOGRAM_LUMINANCE_SIZEβ Luminance component counter size, in bitsGL_HISTOGRAM_SINKβ Value of the sink parameter
every single one of those, accounted for. the way that list just keeps going and every entry still matters ππ
π NOTES π
glGetHistogramParameteris present only ifGL_ARB_imagingis returned whenglGetStringis called with an argument ofGL_EXTENSIONS. so likeβ¦ check first, bestie. don't come crying to me if it's not there π
π ERRORS π
GL_INVALID_ENUMis generated iftargetis not one of the allowable values. rude of you, honestly.GL_INVALID_ENUMis generated ifpnameis not one of the allowable values. also rude.GL_INVALID_OPERATIONis generated ifglGetHistogramParameteris executed between the execution ofglBeginand the corresponding execution ofglEnd. do NOT do that. that's the forbidden window, the no-fly zone, the "not me doing a query inside aglBegin/glEndblock" moment π
π SEE ALSO π
glGetHistogram(3G)glHistogram(3G)
go read those too, they're iconic, iykyk π
and that's the whole page, fr fr β this was GLGETHISTOGRAMPARAMETER(3G), the section 3G edition, brought to you by the fine folks who keep the man pages alive. slay, stay safe, and always check your target π
β¨π¦π
π¦ where this page comes from
- opensuse-leap 16.0: Mesa-libGL-devel 24.1.7-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms