Code example for FloatBuffer

Methods: rewindput

0
		mVertexBuffer.put( new float[] {0,0, 1,0, 1,1,
				   1,1, 0,1, 0,0 }); 
		mVertexBuffer.rewind();
 
		mTexCoordBuffer = ByteBuffer.allocateDirect(6*2*4).order(ByteOrder.nativeOrder()).asFloatBuffer();//FloatBuffer.allocate(6*2);
		mTexCoordBuffer.put( new float[] {0,0, 1,0, 1,1,
				   1,1, 0,1, 0,0 }); 
		mTexCoordBuffer.rewind();
 
		setRenderer(this);
		  
	} 
	public void setGameState(GameState gs) {
		mGameState = gs;
	} 
 
	public void onPause() { 
		super.onPause(); 
		mGameState.onPause();
	} 
Contextual code suggestions in your IDE  Get Codota for Java