glViewportArray
glViewportArray is a function in the OpenGL API used for setting multiple viewports. Viewports define the rectangular region on the screen where rendering occurs. Traditionally, OpenGL supported a single viewport per rendering operation. However, with the introduction of geometry shaders and tessellation shaders, it became possible to output multiple primitive streams, each potentially requiring its own viewport.
The glViewportArray function allows applications to specify an array of viewports. When used, rendering commands will
Using glViewportArray requires that the OpenGL context supports the GL_ARB_viewport_array extension or is using a version