gl.glEnable(GL.GL_LIGHTING);
gl.glEnable(GL.GL_BLEND);
gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);
gl.glEnable(GL.GL_COLOR_MATERIAL);
gl.glColorMaterial(GL.GL_FRONT_AND_BACK, GL.GL_AMBIENT_AND_DIFFUSE);
gl.glShadeModel(GL.GL_SMOOTH);
// Anti-Aliasing (Polygon antialiasing causes problems on most graphics cards, don't use it!)
// FloatBuffer buf = FloatBuffer.allocate(2);
// gl.glGetFloatv(gl.GL_POINT_SIZE_RANGE, buf);
// gl.glPointSize(buf.get());