GLSCISSORINDEXED(3G)
β¨ NAME β¨
okay bestie, this is GLSCISSORINDEXED(3G) β the manual page for glScissorIndexed, and its whole thing is: define the scissor box for a specific viewport π
. also glScissorIndexedv is on this page, iykyk π«Ά.
π» C SPECIFICATION π»
void glScissorIndexed(GLuint index, GLint left, GLint bottom,
GLsizei width, GLsizei height);
void glScissorIndexedv(GLuint index, const GLint *v);
π PARAMETERS π
indexβ tells you the index of the viewport whose scissor box to modify. πleft,bottomβ the coordinate of the bottom left corner of the scissor box, in pixels. πwidth,heightβ Specify ths dimensions of the scissor box, in pixels (yes, βthsβ is the original typo, bestie π). π¦vβ forglScissorIndexedv, the address of an array containing theleft,bottom,widthandheightof each scissor box, in that order. β¨
π¦ DESCRIPTION π¦
okay so glScissorIndexed defines the scissor box for a specified viewport. index specifies the index of scissor box to modify, and it must be less than the value of GL_MAX_VIEWPORTS β no cap, bestie, respect the limit π. For glScissorIndexed, left, bottom, width and height specify the left, bottom, width and height of the scissor box, in pixels, respectively. For glScissorIndexedv, v specifies the address of an array containing integers specifying the lower left corner of the scissor box, and the width and height of the scissor box, in that order. π«Ά
To enable and disable the scissor test, call glEnable() and glDisable with argument GL_SCISSOR_TEST. The test is initially disabled for all viewports. While the test is enabled, only pixels that lie within the scissor box can be modified by drawing commands. Window coordinates have integer values at the shared corners of frame buffer pixels. glScissor(0,0,1,1) allows modification of only the lower left pixel in the window, and glScissor(0,0,0,0) doesn't allow modification of any pixels in the window. π
When the scissor test is disabled, it is as though the scissor box includes the entire window. slay, honestly π.
tiny vibe check: disabled scissor test = whole window is fair game, no clipping gatekeeping π
π ERRORS π
GL_INVALID_VALUEis generated ifindexis greater than or equal to the value ofGL_MAX_VIEWPORTS. πGL_INVALID_VALUEis generated if anywidthorheightspecified in the arrayvis negative. π
π ASSOCIATED GETS π
glGet()with argumentGL_SCISSOR_BOXπglIsEnabled()with argumentGL_SCISSOR_TESTβ¨
π VERSION SUPPORT π
The columns are Function / Feature Name and OpenGL Version, and hereβs the full vibe check β β means yes, - means nope, no columns skipped π
:
- OpenGL versions:
2.0,2.1,3.0,3.1,3.2,3.3,4.0,4.1,4.2,4.3,4.4,4.5 glScissorIndexedβ2.0:-;2.1:-;3.0:-;3.1:-;3.2:-;3.3:-;4.0:-;4.1:β;4.2:β;4.3:β;4.4:β;4.5:βglScissorIndexedvβ2.0:-;2.1:-;3.0:-;3.1:-;3.2:-;3.3:-;4.0:-;4.1:β;4.2:β;4.3:β;4.4:β;4.5:β
π SEE ALSO π
glEnable()glScissor()glScissorArray()
π 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 π
Copyright Β© 2010-2014 Khronos Group
xoxo, your Unix bestie π β this pageβs source/version is [FIXME: source], itβs dated 08/09/2021, and itβs the GLSCISSORINDEXED(3G) manual page. periodt. π
π¦ 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