Package zombie.core.textures
Class TextureID
java.lang.Object
zombie.asset.Asset
zombie.core.textures.TextureID
- All Implemented Interfaces:
Serializable,IDestroyable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class zombie.asset.Asset
Asset.ObserverCallback, Asset.State -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AssetTypestatic booleanstatic booleanprotected ImageDatastatic final IntBufferprotected intprotected intprotected intprotected intprotected Stringprotected booleanstatic longstatic floatstatic booleanprotected intprotected intFields inherited from class zombie.asset.Asset
m_asset_manager -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTextureID(int int1, int int2, int int3) TextureID(BufferedInputStream bufferedInputStream, String string, boolean boolean1) TextureID(BufferedInputStream bufferedInputStream, String string, boolean boolean1, Texture.PZFileformat pZFileformat) TextureID(AssetPath assetPath, AssetManager assetManager, TextureID.TextureIDAssetParams textureIDAssetParams) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbind()booleanstatic TextureIDcreateSteamAvatar(long long1) voiddestroy()voidgetData()intgetID()getType()booleanbooleanbooleanisSolid()voidsetAssetParams(AssetManager.AssetParams assetParams) voidsetData(ByteBuffer byteBuffer) voidsetImageData(ImageData imageData) voidsetMagFilter(int int1) voidsetMinFilter(int int1) Methods inherited from class zombie.asset.Asset
addDependency, getAssetManager, getObserverCb, getPath, getRefCount, getState, isEmpty, isFailure, isReady, onBeforeEmpty, onBeforeReady, onCreated, removeDependency
-
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
-
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
-
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
-
TextureID
-
TextureID
- Throws:
Exception
-
TextureID
- Throws:
Exception
-
TextureID
public TextureID(BufferedInputStream bufferedInputStream, String string, boolean boolean1, Texture.PZFileformat pZFileformat) -
TextureID
public TextureID(BufferedInputStream bufferedInputStream, String string, boolean boolean1) throws Exception - Throws:
Exception
-
-
Method Details
-
createSteamAvatar
-
getID
public int getID() -
bind
public boolean bind() -
bindalways
public boolean bindalways() -
destroy
public void destroy()- Specified by:
destroyin interfaceIDestroyable
-
freeMemory
public void freeMemory() -
getData
-
setData
-
getImageData
-
setImageData
-
getPathFileName
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfaceIDestroyable
-
isSolid
public boolean isSolid() -
setMagFilter
public void setMagFilter(int int1) -
setMinFilter
public void setMinFilter(int int1) -
hasMipMaps
public boolean hasMipMaps() -
setAssetParams
- Overrides:
setAssetParamsin classAsset
-
getType
-