Package zombie.core.textures
Class TextureID
java.lang.Object
zombie.asset.Asset
zombie.core.textures.TextureID
- All Implemented Interfaces:
java.io.Serializable
,IDestroyable
public final class TextureID extends Asset implements IDestroyable, java.io.Serializable
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TextureID.TextureIDAssetParams
Nested classes/interfaces inherited from class zombie.asset.Asset
Asset.ObserverCallback, Asset.State
-
Field Summary
Fields Modifier and Type Field Description static AssetType
ASSET_TYPE
TextureID.TextureIDAssetParams
assetParams
static boolean
bUseCompression
static boolean
bUseCompressionOption
protected ImageData
data
static java.nio.IntBuffer
deleteTextureIDS
protected int
flags
protected int
height
protected int
heightHW
protected int
id
protected java.lang.String
pathFileName
protected boolean
solid
static long
totalGraphicMemory
static float
totalMemUsed
static boolean
UseFiltering
protected int
width
protected int
widthHW
Fields inherited from class zombie.asset.Asset
m_asset_manager
-
Constructor Summary
Constructors Modifier Constructor Description protected
TextureID()
TextureID(int int1, int int2, int int3)
TextureID(java.io.BufferedInputStream bufferedInputStream, java.lang.String string, boolean boolean1)
TextureID(java.io.BufferedInputStream bufferedInputStream, java.lang.String string, boolean boolean1, Texture.PZFileformat pZFileformat)
TextureID(java.lang.String string)
TextureID(java.lang.String string, int[] intArray)
TextureID(java.lang.String string, int int1, int int2, int int3)
TextureID(java.lang.String string, java.lang.String string2)
TextureID(AssetPath assetPath, AssetManager assetManager, TextureID.TextureIDAssetParams textureIDAssetParams)
TextureID(ImageData imageData)
-
Method Summary
Modifier and Type Method Description boolean
bind()
boolean
bindalways()
static TextureID
createSteamAvatar(long long1)
void
destroy()
void
freeMemory()
WrappedBuffer
getData()
int
getID()
ImageData
getImageData()
java.lang.String
getPathFileName()
AssetType
getType()
boolean
hasMipMaps()
boolean
isDestroyed()
boolean
isSolid()
void
setAssetParams(AssetManager.AssetParams assetParams)
void
setData(java.nio.ByteBuffer byteBuffer)
void
setImageData(ImageData imageData)
void
setMagFilter(int int1)
void
setMinFilter(int int1)
Methods inherited from class zombie.asset.Asset
addDependency, getAssetManager, getObserverCb, getPath, getRefCount, getState, isEmpty, isFailure, isReady, onBeforeEmpty, onBeforeReady, onCreated, removeDependency
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
totalGraphicMemory
public static long totalGraphicMemory -
UseFiltering
public static boolean UseFiltering -
bUseCompression
public static boolean bUseCompression -
bUseCompressionOption
public static boolean bUseCompressionOption -
totalMemUsed
public static float totalMemUsed -
pathFileName
protected java.lang.String pathFileName -
solid
protected boolean solid -
width
protected int width -
widthHW
protected int widthHW -
height
protected int height -
heightHW
protected int heightHW -
data
-
id
protected transient int id -
flags
protected int flags -
assetParams
-
deleteTextureIDS
public static final java.nio.IntBuffer deleteTextureIDS -
ASSET_TYPE
-
-
Constructor Details
-
TextureID
public TextureID(AssetPath assetPath, AssetManager assetManager, TextureID.TextureIDAssetParams textureIDAssetParams) -
TextureID
protected TextureID() -
TextureID
public TextureID(int int1, int int2, int int3) -
TextureID
-
TextureID
public TextureID(java.lang.String string, java.lang.String string2) -
TextureID
public TextureID(java.lang.String string, int[] intArray) -
TextureID
public TextureID(java.lang.String string, int int1, int int2, int int3) throws java.lang.Exception- Throws:
java.lang.Exception
-
TextureID
public TextureID(java.lang.String string) throws java.lang.Exception- Throws:
java.lang.Exception
-
TextureID
public TextureID(java.io.BufferedInputStream bufferedInputStream, java.lang.String string, boolean boolean1, Texture.PZFileformat pZFileformat) -
TextureID
public TextureID(java.io.BufferedInputStream bufferedInputStream, java.lang.String string, boolean boolean1) throws java.lang.Exception- Throws:
java.lang.Exception
-
-
Method Details
-
createSteamAvatar
-
getID
public int getID() -
bind
public boolean bind() -
bindalways
public boolean bindalways() -
destroy
public void destroy()- Specified by:
destroy
in interfaceIDestroyable
-
freeMemory
public void freeMemory() -
getData
-
setData
public void setData(java.nio.ByteBuffer byteBuffer) -
getImageData
-
setImageData
-
getPathFileName
public java.lang.String getPathFileName() -
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyed
in interfaceIDestroyable
-
isSolid
public boolean isSolid() -
setMagFilter
public void setMagFilter(int int1) -
setMinFilter
public void setMinFilter(int int1) -
hasMipMaps
public boolean hasMipMaps() -
setAssetParams
- Overrides:
setAssetParams
in classAsset
-
getType
-