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(int width, int height, ByteBuffer pixels) TextureID(BufferedInputStream b, String path, boolean bDoMask) TextureID(AssetPath path, AssetManager manager, TextureID.TextureIDAssetParams params) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbind()booleanstatic TextureIDcreateSteamAvatar(long steamID) voiddestroy()voidgetData()intgetID()getType()booleanbooleanbooleanisSolid()voidvoidsetData(ByteBuffer bdata) voidsetImageData(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
-
TextureID
- 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 filter) -
setMinFilter
public void setMinFilter(int filter) -
hasMipMaps
public boolean hasMipMaps() -
setAssetParams
- Overrides:
setAssetParamsin classAsset
-
getType
-