Code example for IntBuffer

Methods: get

0
	 
	/// Texture public methods 
	 
	/* Returns the id for this texture in OGL ES. Must be called after the texture has been loaded into the driver memory */ 
	public int getTextureId(){ 
		return _textureIds.get(0);
	} 
	 
	public void bindTexture(int unit){
		//if(_driverDataDirty) 
		//	onDriverLoad(null); // WARNING!!!!!!!!!!!! null 
		 
		if(null == _bmps || null == _textureIds){
			_driverDataDirty = true;
			return; 
		} 
			 
		 
		GLES20.glActiveTexture(GLES20.GL_TEXTURE0 + unit);
		GLES20.glBindTexture(_target, _textureIds.get(0));