All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.opengl.ARBClipControl Maven / Gradle / Ivy

Go to download

The most widely adopted 2D and 3D graphics API in the industry, bringing thousands of applications to a wide variety of computer platforms.

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.opengl;

import 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 {@link GL45 OpenGL 4.5}.

*/ public class ARBClipControl { static { GL.initialize(); } /** Accepted by the {@code origin} parameter of {@link #glClipControl ClipControl}. */ public static final int GL_LOWER_LEFT = 0x8CA1, GL_UPPER_LEFT = 0x8CA2; /** Accepted by the {@code depth} parameter of {@link #glClipControl ClipControl}. */ public static final int GL_NEGATIVE_ONE_TO_ONE = 0x935E, GL_ZERO_TO_ONE = 0x935F; /** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. */ public static final int GL_CLIP_ORIGIN = 0x935C, GL_CLIP_DEPTH_MODE = 0x935D; protected ARBClipControl() { throw new UnsupportedOperationException(); } // --- [ glClipControl ] --- /** * 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 {@link GL20#GL_LOWER_LEFT LOWER_LEFT} and the * initial value of the depth mode is {@link GL45C#GL_NEGATIVE_ONE_TO_ONE NEGATIVE_ONE_TO_ONE}.

* *

The error {@link GL11#GL_INVALID_OPERATION INVALID_OPERATION} is generated if ClipControl is executed between the execution of {@link GL11#glBegin Begin} and the corresponding * execution of {@link GL11#glEnd End}.

* * @param origin the clip origin. One of:
{@link GL20#GL_LOWER_LEFT LOWER_LEFT}{@link GL20#GL_UPPER_LEFT UPPER_LEFT}
* @param depth the clip depth mode. One of:
{@link GL45C#GL_NEGATIVE_ONE_TO_ONE NEGATIVE_ONE_TO_ONE}{@link GL45C#GL_ZERO_TO_ONE ZERO_TO_ONE}
*/ public static void glClipControl(@NativeType("GLenum") int origin, @NativeType("GLenum") int depth) { GL45C.glClipControl(origin, depth); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy