Code example for IntBuffer

Methods: capacitylimitpositionget

0
	protected static TextureData createTextureData (FileHandle file, boolean useMipMaps) {
		return createTextureData(file, null, useMipMaps);
	} 
 
	protected static int createGLHandle () { 
		buffer.position(0);
		buffer.limit(buffer.capacity());
		Gdx.gl.glGenTextures(1, buffer);
		return buffer.get(0);
	} 
	 
	protected static void uploadImageData (int target, TextureData data) {
		uploadImageData(target, data, 0);
	} 
	 
	public static void uploadImageData (int target, TextureData data, int miplevel) {
		if (data == null) {
			// FIXME: remove texture on target? 
			return; 
		}