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 Asset
Asset.ObserverCallback, Asset.State -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTextureID(int width, int height, int flags) TextureID(int width, int height, int flags, boolean defered) TextureID(int width, int height, int flags, int format, int internalFormat) 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 Asset
addDependency, getAssetManager, getObserverCb, getPath, getRefCount, getState, isEmpty, isFailure, isReady, onCreated, removeDependency
-
Field Details
-
totalGraphicMemory
public static long totalGraphicMemory -
useFiltering
public static boolean useFiltering -
useCompression
public static boolean useCompression -
useCompressionOption
public static boolean useCompressionOption -
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 width, int height, int flags, int format, int internalFormat) -
TextureID
public TextureID(int width, int height, int flags, boolean defered) -
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
-