Top Description Fields Constructors Methods
org.lwjgl.opengl

public Class ARBPointParameters

extends Object
Class Inheritance
Imports
java.nio.*, org.lwjgl.system.*

Native bindings to the ARB_point_parameters extension.

This extension supports additional geometric characteristics of points. It can be used to render particles or tiny light sources, commonly referred to as "Light points".

The raster brightness of a point is a function of the point area, point color, point transparency, and the response of the display's electron gun and phosphor. The point area and the point transparency are derived from the point size, currently provided with the size parameter of PointSize.

The primary motivation is to allow the size of a point to be affected by distance attenuation. When distance attenuation has an effect, the final point size decreases as the distance of the point from the eye increases.

The secondary motivation is a mean to control the mapping from the point size to the raster point area and point transparency. This is done in order to increase the dynamic range of the raster brightness of points. In other words, the alpha component of a point may be decreased (and its transparency increased) as its area shrinks below a defined threshold.

Promoted to core in OpenGL 1.4.

Field Summary

Modifier and TypeField and Description
public static final int
GL_POINT_DISTANCE_ATTENUATION_ARB

Accepted by the pname parameter of PointParameterfvARB, and the pname of Get.

public static final int
GL_POINT_FADE_THRESHOLD_SIZE_ARB

Accepted by the pname parameter of PointParameterfvARB, and the pname of Get.

public static final int
GL_POINT_SIZE_MAX_ARB

Accepted by the pname parameter of PointParameterfvARB, and the pname of Get.

public static final int
GL_POINT_SIZE_MIN_ARB

Accepted by the pname parameter of PointParameterfvARB, and the pname of Get.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static native void
glPointParameterfARB(int pname, float
the parameter value
param
)

Sets the float value of a pointer parameter.

public static void
glPointParameterfvARB(int
the parameter to set. Must be:
POINT_DISTANCE_ATTENUATION_ARB
pname
,
FloatBuffer
the parameter value
params
)

Pointer version of PointParameterfARB.

public static void
glPointParameterfvARB(int pname, float[] params)

Array version of: PointParameterfvARB

public static native void
nglPointParameterfvARB(int pname, long params)

Unsafe version of: PointParameterfvARB

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_POINT_DISTANCE_ATTENUATION_ARBback to summary
public static final int GL_POINT_DISTANCE_ATTENUATION_ARB

Accepted by the pname parameter of PointParameterfvARB, and the pname of Get.

GL_POINT_FADE_THRESHOLD_SIZE_ARBback to summary
public static final int GL_POINT_FADE_THRESHOLD_SIZE_ARB

Accepted by the pname parameter of PointParameterfvARB, and the pname of Get.

GL_POINT_SIZE_MAX_ARBback to summary
public static final int GL_POINT_SIZE_MAX_ARB

Accepted by the pname parameter of PointParameterfvARB, and the pname of Get.

GL_POINT_SIZE_MIN_ARBback to summary
public static final int GL_POINT_SIZE_MIN_ARB

Accepted by the pname parameter of PointParameterfvARB, and the pname of Get.

Constructor Detail

ARBPointParametersback to summary
protected ARBPointParameters()

Method Detail

glPointParameterfARBback to summary
public static native void glPointParameterfARB(int pname, float param)

Sets the float value of a pointer parameter.

Parameters
pname:int

the parameter to set. One of:

POINT_SIZE_MIN_ARBPOINT_SIZE_MAX_ARBPOINT_FADE_THRESHOLD_SIZE_ARB
param:float

the parameter value

glPointParameterfvARBback to summary
public static void glPointParameterfvARB(int pname, FloatBuffer params)

Pointer version of PointParameterfARB.

Parameters
pname:int

the parameter to set. Must be:

POINT_DISTANCE_ATTENUATION_ARB
params:FloatBuffer

the parameter value

glPointParameterfvARBback to summary
public static void glPointParameterfvARB(int pname, float[] params)

Array version of: PointParameterfvARB

nglPointParameterfvARBback to summary
public static native void nglPointParameterfvARB(int pname, long params)

Unsafe version of: PointParameterfvARB