Contents / Previous / Next


Point Size

To control the size of a rendered point, use glPointSize() and supply the desired size in pixels as the argument.

void glPointSize(GLfloat size);

Sets the width in pixels for rendered points; size must be greater than 0.0 and by default is 1.0.

Most OpenGL implementations support very large point sizes. A particular implementation, however, might limit the size of nonantialiased points to its maximum antialiased point size, rounded to the nearest integer value.

You can obtain this floating-point value by using GL_POINT_SIZE_RANGE with glGetFloatv():

 float val[] = new float[2];
 gl.glGetFloatv( GL.GL_POINT_SIZE_RANGE, val, 0  );
 System.out.println("min="+val[0]+" max="+val[1]);


Get-Functions

void glGetFloatv(int pname, float[] params, int params_offset)

void glGetFloatv(int pname, FloatBuffer params)
Interface to C language function:
void glGetFloatv(GLenum pname, GLfloat * params);
void glGetIntegerv(int pname, int[] params, int params_offset)

void glGetIntegerv(int pname, IntBuffer params)
Interface to C language function:
void glGetIntegerv(GLenum pname, GLint * params);
void glGetBooleanv(int pname, byte[] params, int params_offset)

void glGetBooleanv(int pname, ByteBuffer params)
Interface to C language function:
void glGetBooleanv(GLenum pname, GLboolean * params);