public class TextureManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TextureManager.TextureType
Texture types.
|
Constructor and Description |
---|
TextureManager() |
Modifier and Type | Method and Description |
---|---|
TextureInfo |
addCubemapTextures(Bitmap[] textures) |
TextureInfo |
addCubemapTextures(Bitmap[] textures,
boolean mipmap) |
TextureInfo |
addCubemapTextures(Bitmap[] textures,
boolean mipmap,
boolean recycle) |
TextureInfo |
addCubemapTextures(Bitmap[] textures,
boolean mipmap,
boolean recycle,
boolean isExistingTexture) |
TextureInfo |
addTexture(Bitmap texture) |
TextureInfo |
addTexture(Bitmap texture,
boolean mipmap,
boolean recycle) |
TextureInfo |
addTexture(Bitmap texture,
TextureManager.TextureType textureType) |
TextureInfo |
addTexture(Bitmap texture,
TextureManager.TextureType textureType,
boolean mipmap) |
TextureInfo |
addTexture(Bitmap texture,
TextureManager.TextureType textureType,
boolean mipmap,
boolean recycle) |
TextureInfo |
addTexture(java.nio.ByteBuffer buffer,
Bitmap texture,
int width,
int height,
TextureManager.TextureType textureType,
Config bitmapConfig,
boolean mipmap,
boolean recycle) |
TextureInfo |
addTexture(java.nio.ByteBuffer buffer,
Bitmap texture,
int width,
int height,
TextureManager.TextureType textureType,
Config bitmapConfig,
boolean mipmap,
boolean recycle,
boolean isExistingTexture) |
TextureInfo |
addTexture(java.nio.ByteBuffer buffer,
int width,
int height) |
TextureInfo |
addTexture(java.nio.ByteBuffer buffer,
int width,
int height,
TextureManager.TextureType textureType) |
java.nio.ByteBuffer |
bitmapToByteBuffer(Bitmap bitmap) |
int |
getNumTextures() |
java.util.ArrayList<TextureInfo> |
getTextureInfoList() |
void |
reload() |
void |
removeTextures(java.util.ArrayList<TextureInfo> textureInfoList) |
void |
reset() |
void |
updateTexture(java.lang.Integer textureId,
Bitmap texture) |
public TextureInfo addTexture(Bitmap texture)
public TextureInfo addTexture(Bitmap texture, TextureManager.TextureType textureType)
public TextureInfo addTexture(Bitmap texture, TextureManager.TextureType textureType, boolean mipmap)
public TextureInfo addTexture(Bitmap texture, boolean mipmap, boolean recycle)
public TextureInfo addTexture(Bitmap texture, TextureManager.TextureType textureType, boolean mipmap, boolean recycle)
public TextureInfo addTexture(java.nio.ByteBuffer buffer, int width, int height)
public TextureInfo addTexture(java.nio.ByteBuffer buffer, int width, int height, TextureManager.TextureType textureType)
public TextureInfo addTexture(java.nio.ByteBuffer buffer, Bitmap texture, int width, int height, TextureManager.TextureType textureType, Config bitmapConfig, boolean mipmap, boolean recycle)
public TextureInfo addTexture(java.nio.ByteBuffer buffer, Bitmap texture, int width, int height, TextureManager.TextureType textureType, Config bitmapConfig, boolean mipmap, boolean recycle, boolean isExistingTexture)
public TextureInfo addCubemapTextures(Bitmap[] textures)
public TextureInfo addCubemapTextures(Bitmap[] textures, boolean mipmap)
public TextureInfo addCubemapTextures(Bitmap[] textures, boolean mipmap, boolean recycle)
public TextureInfo addCubemapTextures(Bitmap[] textures, boolean mipmap, boolean recycle, boolean isExistingTexture)
public int getNumTextures()
public void updateTexture(java.lang.Integer textureId, Bitmap texture)
public void reload()
public void reset()
public void removeTextures(java.util.ArrayList<TextureInfo> textureInfoList)
public java.util.ArrayList<TextureInfo> getTextureInfoList()
public java.nio.ByteBuffer bitmapToByteBuffer(Bitmap bitmap)