Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class ARBClipControl

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

Native 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

Modifier and TypeField and Description
public static final int
GL_CLIP_DEPTH_MODE

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

public static final int
GL_CLIP_ORIGIN

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

public static final int
GL_LOWER_LEFT

Accepted by the origin parameter of ClipControl.

public static final int
GL_NEGATIVE_ONE_TO_ONE

Accepted by the depth parameter of ClipControl.

public static final int
GL_UPPER_LEFT

Accepted by the origin parameter of ClipControl.

public static final int
GL_ZERO_TO_ONE

Accepted by the depth parameter of ClipControl.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
glClipControl(int
the clip origin. One of:
LOWER_LEFTUPPER_LEFT
origin
,
int
the clip depth mode. One of:
NEGATIVE_ONE_TO_ONEZERO_TO_ONE
depth
)

Controls the clipping volume behavior.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_CLIP_DEPTH_MODEback to summary
public static final int GL_CLIP_DEPTH_MODE

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

GL_CLIP_ORIGINback to summary
public static final int GL_CLIP_ORIGIN

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

GL_LOWER_LEFTback to summary
public static final int GL_LOWER_LEFT

Accepted by the origin parameter of ClipControl.

GL_NEGATIVE_ONE_TO_ONEback to summary
public static final int GL_NEGATIVE_ONE_TO_ONE

Accepted by the depth parameter of ClipControl.

GL_UPPER_LEFTback to summary
public static final int GL_UPPER_LEFT

Accepted by the origin parameter of ClipControl.

GL_ZERO_TO_ONEback to summary
public static final int GL_ZERO_TO_ONE

Accepted by the depth parameter of ClipControl.

Constructor Detail

ARBClipControlback to summary
protected ARBClipControl()

Method Detail

glClipControlback to summary
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_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.

Parameters
origin:int

the clip origin. One of:

LOWER_LEFTUPPER_LEFT
depth:int

the clip depth mode. One of:

NEGATIVE_ONE_TO_ONEZERO_TO_ONE