APIdia Launch Partner
Top Fields Constructors Methods
com.badlogic.gdx.graphics.glutils

public Class MipMapGenerator

extends Object
Class Inheritance
Imports
com.badlogic.gdx.Application.ApplicationType, .Gdx, com.badlogic.gdx.graphics.GL20, .Pixmap, .Pixmap.Blending, .Texture, com.badlogic.gdx.utils.GdxRuntimeException

Field Summary

Modifier and TypeField and Description
private static boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
generateMipMap(Pixmap
the Pixmap
pixmap
,
int textureWidth, int textureHeight)

Sets the image data of the Texture based on the Pixmap.

public static void
generateMipMap(int target, Pixmap pixmap, int textureWidth, int textureHeight)

Sets the image data of the Texture based on the Pixmap.

private static void
generateMipMapCPU(int target, Pixmap pixmap, int textureWidth, int textureHeight)

private static void
generateMipMapDesktop(int target, Pixmap pixmap, int textureWidth, int textureHeight)

private static void
generateMipMapGLES20(int target, Pixmap pixmap)

public static void
setUseHardwareMipMap(boolean useHWMipMap)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

useHWMipMapback to summary
private static boolean useHWMipMap

Constructor Detail

MipMapGeneratorback to summary
private MipMapGenerator()

Method Detail

generateMipMapback to summary
public static void generateMipMap(Pixmap pixmap, int textureWidth, int textureHeight)

Sets the image data of the Texture based on the Pixmap. The texture must be bound for this to work. If disposePixmap is true, the pixmap will be disposed at the end of the method.

Parameters
pixmap:Pixmap

the Pixmap

generateMipMapback to summary
public static void generateMipMap(int target, Pixmap pixmap, int textureWidth, int textureHeight)

Sets the image data of the Texture based on the Pixmap. The texture must be bound for this to work. If disposePixmap is true, the pixmap will be disposed at the end of the method.

generateMipMapCPUback to summary
private static void generateMipMapCPU(int target, Pixmap pixmap, int textureWidth, int textureHeight)
generateMipMapDesktopback to summary
private static void generateMipMapDesktop(int target, Pixmap pixmap, int textureWidth, int textureHeight)
generateMipMapGLES20back to summary
private static void generateMipMapGLES20(int target, Pixmap pixmap)
setUseHardwareMipMapback to summary
public static void setUseHardwareMipMap(boolean useHWMipMap)