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

org.lwjgl.opengles.EXTClipControl Maven / Gradle / Ivy

Go to download

A royalty-free, cross-platform API for full-function 2D and 3D graphics on embedded systems - including consoles, phones, appliances and vehicles.

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.opengles;

import org.lwjgl.system.*;

import static org.lwjgl.system.Checks.*;

/**
 * Native bindings to the EXT_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. *
  3. potentially improve the numerical precision of the Z coordinate mapping.
  4. *
* *

This extension is a port of GL_ARB_clip_control to OpenGL ES. For the complete overview of this extension, refer to the "Overview" section of * {@code GL_ARB_clip_control}.

*/ public class EXTClipControl { /** Accepted by the {@code origin} parameter of {@link #glClipControlEXT ClipControlEXT}. */ public static final int GL_LOWER_LEFT_EXT = 0x8CA1, GL_UPPER_LEFT_EXT = 0x8CA2; /** Accepted by the {@code depth} parameter of {@link #glClipControlEXT ClipControlEXT}. */ public static final int GL_NEGATIVE_ONE_TO_ONE_EXT = 0x935E, GL_ZERO_TO_ONE_EXT = 0x935F; /** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. */ public static final int GL_CLIP_ORIGIN_EXT = 0x935C, GL_CLIP_DEPTH_MODE_EXT = 0x935D; static { GLES.initialize(); } protected EXTClipControl() { throw new UnsupportedOperationException(); } static boolean isAvailable(GLESCapabilities caps) { return checkFunctions( caps.glClipControlEXT ); } // --- [ glClipControlEXT ] --- /** * @param origin one of:
{@link #GL_LOWER_LEFT_EXT LOWER_LEFT_EXT}{@link #GL_UPPER_LEFT_EXT UPPER_LEFT_EXT}
* @param depth one of:
{@link #GL_NEGATIVE_ONE_TO_ONE_EXT NEGATIVE_ONE_TO_ONE_EXT}{@link #GL_ZERO_TO_ONE_EXT ZERO_TO_ONE_EXT}
*/ public static native void glClipControlEXT(@NativeType("GLenum") int origin, @NativeType("GLenum") int depth); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy