I found some errors in the code above and changed it to the code below. But I still get no point attenuation. Does anyone know why it doesn't work?
glPointSize( 4 );
GLfloat min=0.1f;
glPointParameterf(GL_POINT_SIZE_MIN, min);
GLfloat max=4f;
glPointParameterf(GL_POINT_SIZE_MAX, max);
//the coordinates for calcluting point atenuation
iPointSizeCoords[0] = 0f;
iPointSizeCoords...



