Class TextureID
java.lang.Object
zombie.asset.Asset
zombie.core.textures.TextureID
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class zombie.asset.Asset
Asset.ObserverCallback, Asset.State -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTextureID(int _width, int _height, int _flags) TextureID(int int1, int int2, int int0, boolean var4) TextureID(int int1, int int2, int int0, int int3, int int4) TextureID(BufferedInputStream b, String path, boolean bDoMask) TextureID(AssetPath path, AssetManager manager, TextureID.TextureIDAssetParams params) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbind()binds the current texturebooleanstatic TextureIDcreateSteamAvatar(long steamID) voiddestroy()Description copied from interface: IDestroyablevoidfree memory spacegetData()intgetID()getType()booleanbooleanDescription copied from interface: IDestroyablebooleanisSolid()voidvoidsetData(ByteBuffer bdata) if the data is null will be free the memory from the RAM but not from the VRAMvoidsetImageData(ImageData _data) voidsetMagFilter(int filter) voidsetMinFilter(int filter) Methods inherited from class zombie.asset.Asset
addDependency, getAssetManager, getObserverCb, getPath, getRefCount, getState, isEmpty, isFailure, isReady, 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 -
assetParams
-
deleteTextureIDS
-
ASSET_TYPE
-
-
Constructor Details
-
TextureID
-
TextureID
public TextureID(int _width, int _height, int _flags) -
TextureID
public TextureID(int int1, int int2, int int0, int int3, int int4) -
TextureID
public TextureID(int int1, int int2, int int0, boolean var4) -
TextureID
-
TextureID
-
TextureID
-
TextureID
- Throws:
Exception
-
-
Method Details
-
createSteamAvatar
-
getID
public int getID() -
bind
public boolean bind()binds the current texture -
bindalways
public boolean bindalways() -
destroy
public void destroy()Description copied from interface: IDestroyable- Specified by:
destroyin interfaceIDestroyable
-
freeMemory
public void freeMemory()free memory space -
getData
-
setData
if the data is null will be free the memory from the RAM but not from the VRAM -
getImageData
-
setImageData
-
getPathFileName
-
isDestroyed
public boolean isDestroyed()Description copied from interface: IDestroyable- Specified by:
isDestroyedin interfaceIDestroyable
-
isSolid
public boolean isSolid() -
setMagFilter
public void setMagFilter(int filter) -
setMinFilter
public void setMinFilter(int filter) -
hasMipMaps
public boolean hasMipMaps() -
setAssetParams
- Overrides:
setAssetParamsin classAsset
-
getType
-