OpenGL ES is modeled on a pipeline of operations. The final stage in this pipeline before rasterization is the viewport transformation. This stage transforms vertices from view space into window coordinates and allows the application to specify a rectangular region of screen space into which OpenGL should draw primitives. Unextended OpenGL implementations provide a single viewport per context. In order to draw primitives into multiple viewports, the OpenGL viewport may be changed between several draw calls. With the advent of Geometry Shaders, it has become possible for an application to amplify geometry and produce multiple output primitives for each primitive input to the Geometry Shader. It is possible to direct these primitives to render into a selected render target. However, all render targets share the same, global OpenGL viewport.
This extension enhances OpenGL by providing a mechanism to expose multiple viewports. Each viewport is specified as a rectangle. The destination viewport may be selected per-primitive by the geometry shader. This allows the Geometry Shader to produce different versions of primitives destined for separate viewport rectangles on the same surface. Additionally, when combined with multiple framebuffer attachments, it allows a different viewport rectangle to be selected for each. This extension also exposes a separate scissor rectangle for each viewport. Finally, the viewport bounds are now floating point quantities allowing fractional pixel offsets to be applied during the viewport transform.
Requires GLES 3. and EXT_geometry_shader.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | GL_MAX_VIEWPORTS_NV
Accepted by the |
| public static final int | GL_VIEWPORT_BOUNDS_RANGE_NV
Accepted by the |
| public static final int | GL_VIEWPORT_INDEX_PROVOKING_VERTEX_NV
Accepted by the |
| public static final int | GL_VIEWPORT_SUBPIXEL_BITS_NV
Accepted by the |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | |
| public static native void | |
| public static native void | |
| public static native void | |
| public static void | |
| public static void | |
| public static float | |
| public static native boolean | |
| public static void | |
| public static void | |
| public static native void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static native void | |
| public static void | |
| public static void | |
| public static native void | |
| public static native void | |
| public static native void | |
| public static native void | |
| public static native void | |
| public static native void |
| GL_MAX_VIEWPORTS_NV | back to summary |
|---|---|
| public static final int GL_MAX_VIEWPORTS_NV Accepted by the | |
| GL_VIEWPORT_BOUNDS_RANGE_NV | back to summary |
|---|---|
| public static final int GL_VIEWPORT_BOUNDS_RANGE_NV Accepted by the | |
| GL_VIEWPORT_INDEX_PROVOKING_VERTEX_NV | back to summary |
|---|---|
| public static final int GL_VIEWPORT_INDEX_PROVOKING_VERTEX_NV Accepted by the | |
| GL_VIEWPORT_SUBPIXEL_BITS_NV | back to summary |
|---|---|
| public static final int GL_VIEWPORT_SUBPIXEL_BITS_NV Accepted by the | |
| NVViewportArray | back to summary |
|---|---|
| protected NVViewportArray() | |
| glDepthRangeArrayfvNV | back to summary |
|---|---|
| public static void glDepthRangeArrayfvNV(int first, FloatBuffer v) | |
| glDepthRangeArrayfvNV | back to summary |
|---|---|
| public static void glDepthRangeArrayfvNV(int first, float[] v) Array version of: | |
| glDepthRangeIndexedfNV | back to summary |
|---|---|
| public static native void glDepthRangeIndexedfNV(int index, float n, float f) | |
| glDisableiNV | back to summary |
|---|---|
| public static native void glDisableiNV(int target, int index) | |
| glEnableiNV | back to summary |
|---|---|
| public static native void glEnableiNV(int target, int index) | |
| glGetFloati_vNV | back to summary |
|---|---|
| public static void glGetFloati_vNV(int target, int index, FloatBuffer data) | |
| glGetFloati_vNV | back to summary |
|---|---|
| public static void glGetFloati_vNV(int target, int index, float[] data) Array version of: | |
| glGetFloatiNV | back to summary |
|---|---|
public static float glGetFloatiNV(int target, int index)
| |
| glIsEnablediNV | back to summary |
|---|---|
public static native boolean glIsEnablediNV(int target, int index)
| |
| glScissorArrayvNV | back to summary |
|---|---|
| public static void glScissorArrayvNV(int first, IntBuffer v) | |
| glScissorArrayvNV | back to summary |
|---|---|
| public static void glScissorArrayvNV(int first, int[] v) Array version of: | |
| glScissorIndexedNV | back to summary |
|---|---|
| public static native void glScissorIndexedNV(int index, int left, int bottom, int width, int height) | |
| glScissorIndexedvNV | back to summary |
|---|---|
| public static void glScissorIndexedvNV(int index, IntBuffer v) | |
| glScissorIndexedvNV | back to summary |
|---|---|
| public static void glScissorIndexedvNV(int index, int[] v) Array version of: | |
| glViewportArrayvNV | back to summary |
|---|---|
| public static void glViewportArrayvNV(int first, FloatBuffer v) | |
| glViewportArrayvNV | back to summary |
|---|---|
| public static void glViewportArrayvNV(int first, float[] v) Array version of: | |
| glViewportIndexedfNV | back to summary |
|---|---|
| public static native void glViewportIndexedfNV(int index, float x, float y, float w, float h) | |
| glViewportIndexedfvNV | back to summary |
|---|---|
| public static void glViewportIndexedfvNV(int index, FloatBuffer v) | |
| glViewportIndexedfvNV | back to summary |
|---|---|
| public static void glViewportIndexedfvNV(int index, float[] v) Array version of: | |
| nglDepthRangeArrayfvNV | back to summary |
|---|---|
| public static native void nglDepthRangeArrayfvNV(int first, int count, long v) | |
| nglGetFloati_vNV | back to summary |
|---|---|
| public static native void nglGetFloati_vNV(int target, int index, long data) | |
| nglScissorArrayvNV | back to summary |
|---|---|
| public static native void nglScissorArrayvNV(int first, int count, long v) | |
| nglScissorIndexedvNV | back to summary |
|---|---|
| public static native void nglScissorIndexedvNV(int index, long v) | |
| nglViewportArrayvNV | back to summary |
|---|---|
| public static native void nglViewportArrayvNV(int first, int count, long v) | |
| nglViewportIndexedfvNV | back to summary |
|---|---|
| public static native void nglViewportIndexedfvNV(int index, long v) | |