GLGETRENDERBUFFERPAR(3G)
π GLGETRENDERBUFFERPAR(3G) β the renderbuffer interrogation page
okay so bestie, this is a section 3G manpage (that's the GL family, iykyk) and it's literally all about asking a renderbuffer object nosy little questions. no cap. β¨
πΈ NAME πΈ
glGetRenderbufferParameteriv, glGetNamedRenderbufferParameteriv β query a named parameter of a renderbuffer object π
π¦ C SPECIFICATION π¦
void glGetRenderbufferParameteriv(GLenum target, GLenum pname,
GLint *params);
void glGetNamedRenderbufferParameteriv(GLuint renderbuffer,
GLenum pname, GLint *params);
π PARAMETERS π
targetβ tells us which target the renderbuffer object is bound to, forglGetRenderbufferParameteriv. and like,targetmust beGL_RENDERBUFFER. no exceptions, periodt.renderbufferβ the name of the renderbuffer object, forglGetNamedRenderbufferParameteriv. this one's the "named" one, you see the pattern πpnameβ the parameter of the renderbuffer object you want to query. which question are we asking today, queen?paramsβ returns the value of parameterpnamefor the renderbuffer object. that's your answer slot right there π«Ά
β¨ DESCRIPTION β¨
glGetRenderbufferParameteriv and glGetNamedRenderbufferParameteriv query parameters of a specified renderbuffer object. that's the whole vibe. π§
for glGetRenderbufferParameteriv, the renderbuffer object is the one bound to target, which must be GL_RENDERBUFFER.
for glGetNamedRenderbufferParameteriv, renderbuffer is the name of the renderbuffer object.
upon successful return, param will contain the value of the renderbuffer parameter specified by pname, as described below. π
GL_RENDERBUFFER_WIDTH,GL_RENDERBUFFER_HEIGHT,GL_RENDERBUFFER_INTERNAL_FORMATorGL_RENDERBUFFER_SAMPLESβparamsreturns the width in pixels, the height in pixels, internal format, or the number of samples, respectively, of the image of the specified renderbuffer object. so like. size, format, samples. iconic info dump πGL_RENDERBUFFER_RED_SIZE,GL_RENDERBUFFER_GREEN_SIZE,GL_RENDERBUFFER_BLUE_SIZE,GL_RENDERBUFFER_ALPHA_SIZE,GL_RENDERBUFFER_DEPTH_SIZEorGL_RENDERBUFFER_STENCIL_SIZEβparamsreturns the actual resolution in bits (not the resolution specified when the image was defined) for the red, green, blue, alpha, depth or stencil components, respectively, of the image of the renderbuffer object. read that again bestie: actual, not what you asked for when you defined it. the truth, not the dream π
π ERRORS π
GL_INVALID_ENUMis generated byglGetRenderbufferParameteriviftargetis notGL_RENDERBUFFER. wrong target, bestie.GL_INVALID_OPERATIONis generated byglGetRenderbufferParameterivif zero is bound totarget. nothing's bound, so there's nothing to interrogate πGL_INVALID_OPERATIONis generated byglGetNamedRenderbufferParameterivifrenderbufferis not the name of an existing renderbuffer object. ghost name. doesn't exist. girl where π«₯GL_INVALID_ENUMis generated ifpnameis not one of the accepted parameter names described above. you made up a question, and the GL did not care for it π
π VERSION SUPPORT π
here's the whole grid, laid out for you, no table needed:
glGetNamedRenderbufferParameterivβ-for2.0,-for2.1,-for3.0,-for3.1,-for3.2,-for3.3,-for4.0,-for4.1,-for4.2,-for4.3,-for4.4, and β for4.5. so basically:4.5only. late bloomer, main character energy β¨glGetRenderbufferParameterivβ-for2.0,-for2.1, β for3.0, β for3.1, β for3.2, β for3.3, β for4.0, β for4.1, β for4.2, β for4.3, β for4.4, and β for4.5. been here since3.0and never left. ate. π₯
(the column headers in the original are just "OpenGL Version" over 2.0 2.1 3.0 3.1 3.2 3.3 4.0 4.1 4.2 4.3 4.4 4.5, and the row headers are "Function / Feature Name" β that's the whole structure, you're not missing anything π)
π SEE ALSO π
glGenRenderbuffers()glFramebufferRenderbuffer()glBindRenderbuffer()glRenderbufferStorage()glRenderbufferStorageMultisample()
go read those next, bestie, they're the whole friend group π«Ά
π COPYRIGHT π
Copyright Β© 2010-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
Copyright Β© 2010-2014 Khronos Group
lowkey important: the source line on this one is literally[FIXME: source]and the date is08/09/2021β yes, the manpage itself is wearing a "FIXME" sticker, and honestly? relatable. π
k that's the page, love u, go query some renderbuffers, mwah ππ¦πΈ
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms