Class MipMapGenerator
- java.lang.Object
-
- com.badlogic.gdx.graphics.glutils.MipMapGenerator
-
public class MipMapGenerator extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidgenerateMipMap(int target, Pixmap pixmap, int textureWidth, int textureHeight)static voidgenerateMipMap(Pixmap pixmap, int textureWidth, int textureHeight)static voidsetUseHardwareMipMap(boolean useHWMipMap)
-
-
-
Method Detail
-
setUseHardwareMipMap
public static void setUseHardwareMipMap(boolean useHWMipMap)
-
generateMipMap
public static void generateMipMap(Pixmap pixmap, int textureWidth, int textureHeight)
Sets the image data of theTexturebased on thePixmap. The texture must be bound for this to work. IfdisposePixmapis true, the pixmap will be disposed at the end of the method.- Parameters:
pixmap- the Pixmap
-
generateMipMap
public static void generateMipMap(int target, Pixmap pixmap, int textureWidth, int textureHeight)
-
-