Class ARBPointParameters
- java.lang.Object
-
- org.lwjgl.opengl.ARBPointParameters
-
public class ARBPointParameters extends java.lang.Object
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 ofPointSize
.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
Fields Modifier and Type Field Description static int
GL_POINT_DISTANCE_ATTENUATION_ARB
GL_POINT_FADE_THRESHOLD_SIZE_ARB
GL_POINT_SIZE_MAX_ARB
GL_POINT_SIZE_MIN_ARBAccepted by thepname
parameter of PointParameterfvARB, and thepname
of Get.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
glPointParameterfARB(int pname, float param)
Sets the float value of a pointer parameter.static void
glPointParameterfvARB(int pname, float[] params)
Array version of:PointParameterfvARB
static void
glPointParameterfvARB(int pname, java.nio.FloatBuffer params)
Pointer version ofPointParameterfARB
.static void
nglPointParameterfvARB(int pname, long params)
Unsafe version of:PointParameterfvARB
-
-
-
Field Detail
-
GL_POINT_SIZE_MIN_ARB, GL_POINT_SIZE_MAX_ARB, GL_POINT_FADE_THRESHOLD_SIZE_ARB, GL_POINT_DISTANCE_ATTENUATION_ARB
Accepted by thepname
parameter of PointParameterfvARB, and thepname
of Get.
-
-
Method Detail
-
glPointParameterfARB
public static void glPointParameterfARB(int pname, float param)
Sets the float value of a pointer parameter.- Parameters:
pname
- the parameter to set. One of:POINT_SIZE_MIN_ARB
POINT_SIZE_MAX_ARB
POINT_FADE_THRESHOLD_SIZE_ARB
param
- the parameter value
-
nglPointParameterfvARB
public static void nglPointParameterfvARB(int pname, long params)
Unsafe version of:PointParameterfvARB
-
glPointParameterfvARB
public static void glPointParameterfvARB(int pname, java.nio.FloatBuffer params)
Pointer version ofPointParameterfARB
.- Parameters:
pname
- the parameter to set. Must be:POINT_DISTANCE_ATTENUATION_ARB
params
- the parameter value
-
glPointParameterfvARB
public static void glPointParameterfvARB(int pname, float[] params)
Array version of:PointParameterfvARB
-
-