Package org.lwjgl.opengl
Class ARBClipControl
- java.lang.Object
-
- org.lwjgl.opengl.ARBClipControl
-
public class ARBClipControl extends java.lang.ObjectNative bindings to the ARB_clip_control extension.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.
-
-
Field Summary
Fields Modifier and Type Field and Description static intGL_CLIP_DEPTH_MODE
GL_CLIP_ORIGINAccepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.static intGL_LOWER_LEFTAccepted by theoriginparameter ofClipControl.static intGL_NEGATIVE_ONE_TO_ONEAccepted by thedepthparameter ofClipControl.static intGL_UPPER_LEFTAccepted by theoriginparameter ofClipControl.static intGL_ZERO_TO_ONEAccepted by thedepthparameter ofClipControl.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidglClipControl(int origin, int depth)Controls the clipping volume behavior.
-
-
-
Field Detail
-
GL_LOWER_LEFT, GL_UPPER_LEFT
Accepted by theoriginparameter ofClipControl.
-
GL_NEGATIVE_ONE_TO_ONE, GL_ZERO_TO_ONE
Accepted by thedepthparameter ofClipControl.
-
GL_CLIP_ORIGIN, GL_CLIP_DEPTH_MODE
Accepted by thepnameparameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.
-
-
Method Detail
-
glClipControl
public static void glClipControl(int origin, int depth)Controls the clipping volume behavior.These parameters update the clip control origin and depth mode respectively. The initial value of the clip control origin is
LOWER_LEFTand the initial value of the depth mode isNEGATIVE_ONE_TO_ONE.The error
INVALID_OPERATIONis generated if ClipControl is executed between the execution ofBeginand the corresponding execution ofEnd.- Parameters:
origin- the clip origin. One of:LOWER_LEFTUPPER_LEFTdepth- the clip depth mode. One of:NEGATIVE_ONE_TO_ONEZERO_TO_ONE
-
-