Class OESViewportArray
- java.lang.Object
-
- org.lwjgl.opengles.OESViewportArray
-
public class OESViewportArray extends java.lang.Object
Native bindings to the OES_viewport_array extension.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 ES should draw primitives. Unextended OpenGL ES implementations provide a single viewport per context. In order to draw primitives into multiple viewports, the OpenGL ES 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 ES viewport.
This extension enhances OpenGL ES 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
GLES32
,EXT_geometry_shader
orOES_geometry_shader
.
-
-
Field Summary
Fields Modifier and Type Field Description static int
GL_MAX_VIEWPORTS_OES
GL_VIEWPORT_BOUNDS_RANGE_OES
GL_VIEWPORT_INDEX_PROVOKING_VERTEX_OES
GL_VIEWPORT_SUBPIXEL_BITS_OESAccepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetInteger64v.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
glDepthRangeArrayfvOES(int first, float[] v)
Array version of:DepthRangeArrayfvOES
static void
glDepthRangeArrayfvOES(int first, java.nio.FloatBuffer v)
static void
glDepthRangeIndexedfOES(int index, float n, float f)
static void
glDisableiOES(int target, int index)
static void
glEnableiOES(int target, int index)
static void
glGetFloati_vOES(int target, int index, float[] data)
Array version of:GetFloati_vOES
static void
glGetFloati_vOES(int target, int index, java.nio.FloatBuffer data)
static float
glGetFloatiOES(int target, int index)
static boolean
glIsEnablediOES(int target, int index)
static void
glScissorArrayvOES(int first, int[] v)
Array version of:ScissorArrayvOES
static void
glScissorArrayvOES(int first, java.nio.IntBuffer v)
static void
glScissorIndexedOES(int index, int left, int bottom, int width, int height)
static void
glScissorIndexedvOES(int index, int[] v)
Array version of:ScissorIndexedvOES
static void
glScissorIndexedvOES(int index, java.nio.IntBuffer v)
static void
glViewportArrayvOES(int first, float[] v)
Array version of:ViewportArrayvOES
static void
glViewportArrayvOES(int first, java.nio.FloatBuffer v)
static void
glViewportIndexedfOES(int index, float x, float y, float w, float h)
static void
glViewportIndexedfvOES(int index, float[] v)
Array version of:ViewportIndexedfvOES
static void
glViewportIndexedfvOES(int index, java.nio.FloatBuffer v)
static void
nglDepthRangeArrayfvOES(int first, int count, long v)
static void
nglGetFloati_vOES(int target, int index, long data)
static void
nglScissorArrayvOES(int first, int count, long v)
static void
nglScissorIndexedvOES(int index, long v)
static void
nglViewportArrayvOES(int first, int count, long v)
static void
nglViewportIndexedfvOES(int index, long v)
-
-
-
Field Detail
-
GL_MAX_VIEWPORTS_OES, GL_VIEWPORT_SUBPIXEL_BITS_OES, GL_VIEWPORT_BOUNDS_RANGE_OES, GL_VIEWPORT_INDEX_PROVOKING_VERTEX_OES
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetInteger64v.
-
-
Method Detail
-
nglViewportArrayvOES
public static void nglViewportArrayvOES(int first, int count, long v)
-
glViewportArrayvOES
public static void glViewportArrayvOES(int first, java.nio.FloatBuffer v)
-
glViewportIndexedfOES
public static void glViewportIndexedfOES(int index, float x, float y, float w, float h)
-
nglViewportIndexedfvOES
public static void nglViewportIndexedfvOES(int index, long v)
-
glViewportIndexedfvOES
public static void glViewportIndexedfvOES(int index, java.nio.FloatBuffer v)
-
nglScissorArrayvOES
public static void nglScissorArrayvOES(int first, int count, long v)
-
glScissorArrayvOES
public static void glScissorArrayvOES(int first, java.nio.IntBuffer v)
-
glScissorIndexedOES
public static void glScissorIndexedOES(int index, int left, int bottom, int width, int height)
-
nglScissorIndexedvOES
public static void nglScissorIndexedvOES(int index, long v)
-
glScissorIndexedvOES
public static void glScissorIndexedvOES(int index, java.nio.IntBuffer v)
-
nglDepthRangeArrayfvOES
public static void nglDepthRangeArrayfvOES(int first, int count, long v)
-
glDepthRangeArrayfvOES
public static void glDepthRangeArrayfvOES(int first, java.nio.FloatBuffer v)
-
glDepthRangeIndexedfOES
public static void glDepthRangeIndexedfOES(int index, float n, float f)
-
nglGetFloati_vOES
public static void nglGetFloati_vOES(int target, int index, long data)
-
glGetFloati_vOES
public static void glGetFloati_vOES(int target, int index, java.nio.FloatBuffer data)
-
glGetFloatiOES
public static float glGetFloatiOES(int target, int index)
-
glEnableiOES
public static void glEnableiOES(int target, int index)
-
glDisableiOES
public static void glDisableiOES(int target, int index)
-
glIsEnablediOES
public static boolean glIsEnablediOES(int target, int index)
-
glViewportArrayvOES
public static void glViewportArrayvOES(int first, float[] v)
Array version of:ViewportArrayvOES
-
glViewportIndexedfvOES
public static void glViewportIndexedfvOES(int index, float[] v)
Array version of:ViewportIndexedfvOES
-
glScissorArrayvOES
public static void glScissorArrayvOES(int first, int[] v)
Array version of:ScissorArrayvOES
-
glScissorIndexedvOES
public static void glScissorIndexedvOES(int index, int[] v)
Array version of:ScissorIndexedvOES
-
glDepthRangeArrayfvOES
public static void glDepthRangeArrayfvOES(int first, float[] v)
Array version of:DepthRangeArrayfvOES
-
glGetFloati_vOES
public static void glGetFloati_vOES(int target, int index, float[] data)
Array version of:GetFloati_vOES
-
-