buf.put(color); buf.flip();
	public void setFogAttributes(int mode, float[] color, 			float density, float start, float end) {		FloatBuffer buf = ByteBuffer.allocateDirect(16).order(ByteOrder.nativeOrder()).asFloatBuffer();				GL.glFogi(GL.GL_FOG_MODE, mode);		GL.glFog(GL.GL_FOG_COLOR, buf);		GL.glFogf(GL.GL_FOG_DENSITY, density);		GL.glFogf(GL.GL_FOG_START, start);		GL.glFogf(GL.GL_FOG_END, end);	}