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

org.lwjgl.opengles.EXTDepthClamp 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;

/**
 * Native bindings to the EXT_depth_clamp extension.
 * 
 * 

Conventional OpenGL clips geometric primitives to a clip volume with six faces, two of which are the near and far clip planes. Clipping to the near and * far planes of the clip volume ensures that interpolated depth values (after the depth range transform) must be in the {@code [0,1]} range.

* *

In some rendering applications such as shadow volumes, it is useful to allow line and polygon primitives to be rasterized without clipping the * primitive to the near or far clip volume planes (side clip volume planes clip normally). Without the near and far clip planes, rasterization (pixel * coverage determination) in X and Y can proceed normally if we ignore the near and far clip planes. The one major issue is that fragments of a primitive * may extend beyond the conventional window space depth range for depth values (typically the range {@code [0,1]}). Rather than discarding fragments that * defy the window space depth range (effectively what near and far plane clipping accomplish), the depth values can be clamped to the current depth * range.

* *

This extension provides exactly such functionality. This functionality is useful to obviate the need for near plane capping of stenciled shadow * volumes. The functionality may also be useful for rendering geometry "beyond" the far plane if an alternative algorithm (rather than depth testing) for * hidden surface removal is applied to such geometry (specifically, the painter's algorithm). Similar situations at the near clip plane can be avoided at * the near clip plane where apparently solid objects can be "seen through" if they intersect the near clip plane.

* *

Requires {@link GLES20 GLES 2.0}.

*/ public final class EXTDepthClamp { /** Accepted by the {@code cap} parameter of Enable, Disable, and IsEnabled, and by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv. */ public static final int GL_DEPTH_CLAMP_EXT = 0x864F; private EXTDepthClamp() {} }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy