Top Description Fields Constructors Methods
org.lwjgl.opengles

public Class OESViewportArray

extends Object
Class Inheritance
Imports
java.nio.*, org.lwjgl.system.*

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 or OES_geometry_shader.

Field Summary

Modifier and TypeField and Description
public static final int
GL_MAX_VIEWPORTS_OES

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetInteger64v.

public static final int
GL_VIEWPORT_BOUNDS_RANGE_OES

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetInteger64v.

public static final int
GL_VIEWPORT_INDEX_PROVOKING_VERTEX_OES

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetInteger64v.

public static final int
GL_VIEWPORT_SUBPIXEL_BITS_OES

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetInteger64v.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
public static void
glDepthRangeArrayfvOES(int first, float[] v)

Array version of: DepthRangeArrayfvOES

public static native void
glDepthRangeIndexedfOES(int index, float n, float f)

public static void
glDisableiOES(int target, int index)

public static void
glEnableiOES(int target, int index)

public static void
glGetFloati_vOES(int target, int index, FloatBuffer data)

public static void
glGetFloati_vOES(int target, int index, float[] data)

Array version of: GetFloati_vOES

public static float
glGetFloatiOES(int target, int index)

public static boolean
glIsEnablediOES(int target, int index)

public static void
public static void
glScissorArrayvOES(int first, int[] v)

Array version of: ScissorArrayvOES

public static native void
glScissorIndexedOES(int index, int left, int bottom, int width, int height)

public static void
public static void
glScissorIndexedvOES(int index, int[] v)

Array version of: ScissorIndexedvOES

public static void
public static void
glViewportArrayvOES(int first, float[] v)

Array version of: ViewportArrayvOES

public static native void
glViewportIndexedfOES(int index, float x, float y, float w, float h)

public static void
public static void
glViewportIndexedfvOES(int index, float[] v)

Array version of: ViewportIndexedfvOES

public static native void
nglDepthRangeArrayfvOES(int first, int count, long v)

public static native void
nglGetFloati_vOES(int target, int index, long data)

public static native void
nglScissorArrayvOES(int first, int count, long v)

public static native void
nglScissorIndexedvOES(int index, long v)

public static native void
nglViewportArrayvOES(int first, int count, long v)

public static native void
nglViewportIndexedfvOES(int index, long v)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_MAX_VIEWPORTS_OESback to summary
public static final int GL_MAX_VIEWPORTS_OES

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetInteger64v.

GL_VIEWPORT_BOUNDS_RANGE_OESback to summary
public static final int GL_VIEWPORT_BOUNDS_RANGE_OES

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetInteger64v.

GL_VIEWPORT_INDEX_PROVOKING_VERTEX_OESback to summary
public static final int GL_VIEWPORT_INDEX_PROVOKING_VERTEX_OES

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetInteger64v.

GL_VIEWPORT_SUBPIXEL_BITS_OESback to summary
public static final int GL_VIEWPORT_SUBPIXEL_BITS_OES

Accepted by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetInteger64v.

Constructor Detail

OESViewportArrayback to summary
protected OESViewportArray()

Method Detail

glDepthRangeArrayfvOESback to summary
public static void glDepthRangeArrayfvOES(int first, FloatBuffer v)
glDepthRangeArrayfvOESback to summary
public static void glDepthRangeArrayfvOES(int first, float[] v)

Array version of: DepthRangeArrayfvOES

glDepthRangeIndexedfOESback to summary
public static native void glDepthRangeIndexedfOES(int index, float n, float f)
glDisableiOESback to summary
public static void glDisableiOES(int target, int index)
glEnableiOESback to summary
public static void glEnableiOES(int target, int index)
glGetFloati_vOESback to summary
public static void glGetFloati_vOES(int target, int index, FloatBuffer data)
glGetFloati_vOESback to summary
public static void glGetFloati_vOES(int target, int index, float[] data)

Array version of: GetFloati_vOES

glGetFloatiOESback to summary
public static float glGetFloatiOES(int target, int index)
Annotations
@NativeType:void
glIsEnablediOESback to summary
public static boolean glIsEnablediOES(int target, int index)
Annotations
@NativeType:GLboolean
glScissorArrayvOESback to summary
public static void glScissorArrayvOES(int first, IntBuffer v)
glScissorArrayvOESback to summary
public static void glScissorArrayvOES(int first, int[] v)

Array version of: ScissorArrayvOES

glScissorIndexedOESback to summary
public static native void glScissorIndexedOES(int index, int left, int bottom, int width, int height)
glScissorIndexedvOESback to summary
public static void glScissorIndexedvOES(int index, IntBuffer v)
glScissorIndexedvOESback to summary
public static void glScissorIndexedvOES(int index, int[] v)

Array version of: ScissorIndexedvOES

glViewportArrayvOESback to summary
public static void glViewportArrayvOES(int first, FloatBuffer v)
glViewportArrayvOESback to summary
public static void glViewportArrayvOES(int first, float[] v)

Array version of: ViewportArrayvOES

glViewportIndexedfOESback to summary
public static native void glViewportIndexedfOES(int index, float x, float y, float w, float h)
glViewportIndexedfvOESback to summary
public static void glViewportIndexedfvOES(int index, FloatBuffer v)
glViewportIndexedfvOESback to summary
public static void glViewportIndexedfvOES(int index, float[] v)

Array version of: ViewportIndexedfvOES

nglDepthRangeArrayfvOESback to summary
public static native void nglDepthRangeArrayfvOES(int first, int count, long v)
nglGetFloati_vOESback to summary
public static native void nglGetFloati_vOES(int target, int index, long data)
nglScissorArrayvOESback to summary
public static native void nglScissorArrayvOES(int first, int count, long v)
nglScissorIndexedvOESback to summary
public static native void nglScissorIndexedvOES(int index, long v)
nglViewportArrayvOESback to summary
public static native void nglViewportArrayvOES(int first, int count, long v)
nglViewportIndexedfvOESback to summary
public static native void nglViewportIndexedfvOES(int index, long v)