Top Description Fields Constructors Methods
org.lwjgl.opengl

public final Class NVDepthClamp

extends Object
Class Inheritance

Native bindings to the NV_depth_clamp extension.

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 [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.

Field Summary

Modifier and TypeField and Description
public static final int
GL_DEPTH_CLAMP_NV

Accepted by the cap parameter Enable, Disable, and IsEnabled, and by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_DEPTH_CLAMP_NVback to summary
public static final int GL_DEPTH_CLAMP_NV

Accepted by the cap parameter Enable, Disable, and IsEnabled, and by the pname parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev.

Constructor Detail

NVDepthClampback to summary
private NVDepthClamp()