Code example for ShortBuffer

Methods: clear

0
		if(mTextureId[0]!=-1)			
			gl.glDeleteTextures(1, mTextureId, 0);
		mTextureId[0]=-1;
		mFVertexBuffer.clear();
	mTexBuffer.clear();
	mIndexBuffer.clear();	
 
	} 
 
	static public void drawMixed2D(Quad from, Quad to, float ratio) {
        final GL11 gl = to.mGL;
 
        // Bind "from" and "to" to TEXTURE0 and TEXTURE1, respectively. 
 
 
		gl.glActiveTexture(GL11.GL_TEXTURE0);
        gl.glBindTexture(GL11.GL_TEXTURE_2D, from.mTextureId[0]);
 
        gl.glActiveTexture(GL11.GL_TEXTURE1);
		gl.glBindTexture(GL11.GL_TEXTURE_2D, to.mTextureId[0]);