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 classes/interfaces inherited from class zombie.asset.Asset
Asset.ObserverCallback, Asset.State
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTextureID
(int width, int height, int flags) TextureID
(BufferedInputStream b, String path, boolean bDoMask) TextureID
(BufferedInputStream b, String path, boolean bDoMask, Texture.PZFileformat format) TextureID
(AssetPath path, AssetManager manager, TextureID.TextureIDAssetParams params) -
Method Summary
Modifier and TypeMethodDescriptionboolean
bind()
binds the current textureboolean
static TextureID
createSteamAvatar
(long steamID) void
destroy()
destory the objectvoid
free memory spacegetData()
int
getID()
getType()
boolean
boolean
returns if the object is destryed or notboolean
isSolid()
void
void
setData
(ByteBuffer bdata) if the data is null will be free the memory from the RAM but not from the VRAMvoid
setImageData
(ImageData data) void
setMagFilter
(int filter) void
setMinFilter
(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
-
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
destory the object- Specified by:
destroy
in 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
returns if the object is destryed or not- Specified by:
isDestroyed
in interfaceIDestroyable
-
isSolid
public boolean isSolid() -
setMagFilter
public void setMagFilter(int filter) -
setMinFilter
public void setMinFilter(int filter) -
hasMipMaps
public boolean hasMipMaps() -
setAssetParams
- Overrides:
setAssetParams
in classAsset
-
getType
-