public class ARBClipControl
extends java.lang.Object
This extension provides additional clip control modes to configure how clip space is mapped to window space. This extension's goal is to 1) allow OpenGL to effectively match Direct3D's coordinate system conventions, and 2) potentially improve the numerical precision of the Z coordinate mapping.
Promoted to core in OpenGL 4.5.
| Modifier and Type | Field and Description |
|---|---|
static int |
GL_CLIP_DEPTH_MODE
Accepted by the
pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. |
static int |
GL_CLIP_ORIGIN
Accepted by the
pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. |
static int |
GL_LOWER_LEFT
Accepted by the
origin parameter of ClipControl. |
static int |
GL_NEGATIVE_ONE_TO_ONE
Accepted by the
depth parameter of ClipControl. |
static int |
GL_UPPER_LEFT
Accepted by the
origin parameter of ClipControl. |
static int |
GL_ZERO_TO_ONE
Accepted by the
depth parameter of ClipControl. |
| Modifier and Type | Method and Description |
|---|---|
static void |
glClipControl(int origin,
int depth)
Controls the clipping volume behavior.
|
public static final int GL_LOWER_LEFT
origin parameter of ClipControl.public static final int GL_UPPER_LEFT
origin parameter of ClipControl.public static final int GL_NEGATIVE_ONE_TO_ONE
depth parameter of ClipControl.public static final int GL_ZERO_TO_ONE
depth parameter of ClipControl.public static final int GL_CLIP_ORIGIN
pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.public static final int GL_CLIP_DEPTH_MODE
pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.public static void glClipControl(int origin,
int depth)
These parameters update the clip control origin and depth mode respectively. The initial value of the clip control origin is LOWER_LEFT and the
initial value of the depth mode is NEGATIVE_ONE_TO_ONE.
The error INVALID_OPERATION is generated if ClipControl is executed between the execution of Begin and the corresponding
execution of End.
origin - the clip origin. One of:LOWER_LEFT | UPPER_LEFT |
depth - the clip depth mode. One of:NEGATIVE_ONE_TO_ONE | ZERO_TO_ONE |
Copyright LWJGL. All Rights Reserved. License terms.