Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class ARBColorBufferFloat

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

Native bindings to the ARB_color_buffer_float extension.

The standard OpenGL pipeline is based on a fixed-point pipeline. While color components are nominally floating-point values in the pipeline, components are frequently clamped to the range [0,1] to accomodate the fixed-point color buffer representation and allow for fixed-point computational hardware.

This extension adds pixel formats or visuals with floating-point RGBA color components and controls for clamping of color components within the pipeline.

For a floating-point RGBA pixel format, the size of each float components is specified using the same attributes that are used for defining the size of fixed-point components. 32-bit floating-point components are in the standard IEEE float format. 16-bit floating-point components have 1 sign bit, 5 exponent bits, and 10 mantissa bits.

Clamping control provides a way to disable certain color clamps and allow programs, and the fixed-function pipeline, to deal in unclamped colors. There are controls to modify clamping of vertex colors, clamping of fragment colors throughout the pipeline, and for pixel return data.

The default state for fragment clamping is FIXED_ONLY_ARB, which has the behavior of clamping colors for fixed-point color buffers and not clamping colors for floating-pont color buffers.

Vertex colors are clamped by default.

Promoted to core in OpenGL 3.0.

Field Summary

Modifier and TypeField and Description
public static final int
GL_CLAMP_FRAGMENT_COLOR_ARB

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

public static final int
GL_CLAMP_READ_COLOR_ARB

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

public static final int
GL_CLAMP_VERTEX_COLOR_ARB

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

public static final int
GL_FIXED_ONLY_ARB

Accepted by the clamp parameter of ClampColorARB.

public static final int
GL_RGBA_FLOAT_MODE_ARB

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

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static native void
glClampColorARB(int target, int
the new clamping state. One of:
TRUEFALSEFIXED_ONLY_ARB
clamp
)

Controls color clamping.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_CLAMP_FRAGMENT_COLOR_ARBback to summary
public static final int GL_CLAMP_FRAGMENT_COLOR_ARB

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

GL_CLAMP_READ_COLOR_ARBback to summary
public static final int GL_CLAMP_READ_COLOR_ARB

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

GL_CLAMP_VERTEX_COLOR_ARBback to summary
public static final int GL_CLAMP_VERTEX_COLOR_ARB

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

GL_FIXED_ONLY_ARBback to summary
public static final int GL_FIXED_ONLY_ARB

Accepted by the clamp parameter of ClampColorARB.

GL_RGBA_FLOAT_MODE_ARBback to summary
public static final int GL_RGBA_FLOAT_MODE_ARB

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

Constructor Detail

ARBColorBufferFloatback to summary
protected ARBColorBufferFloat()

Method Detail

glClampColorARBback to summary
public static native void glClampColorARB(int target, int clamp)

Controls color clamping.

Parameters
target:int

the color target. One of:

CLAMP_VERTEX_COLOR_ARBCLAMP_FRAGMENT_COLOR_ARBCLAMP_READ_COLOR_ARB
clamp:int

the new clamping state. One of:

TRUEFALSEFIXED_ONLY_ARB