Code example for FloatBuffer

Methods: get

0
	 * Create a component based on the first 4 elements of a float buffer 
	 *  
	 * @param buffer The buffer to read the color from 
	 */ 
	public Color(FloatBuffer buffer) {
		this.r = buffer.get();
		this.g = buffer.get();
		this.b = buffer.get();
		this.a = buffer.get();
	} 
	 
	/** 
	 * Create a 3 component colour 
	 *  
	 * @param r The red component of the colour (0.0 -> 1.0) 
	 * @param g The green component of the colour (0.0 -> 1.0) 
	 * @param b The blue component of the colour (0.0 -> 1.0) 
	 */ 
	public Color(float r,float g,float b) {
		this.r = r;
		this.g = g;