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
FieldsModifier and TypeFieldDescriptionstatic final AssetType
static boolean
static boolean
protected ImageData
static final IntBuffer
protected int
protected int
protected int
protected int
protected String
protected boolean
static long
static float
static boolean
protected int
protected int
Fields inherited from class zombie.asset.Asset
isDefered, m_asset_manager
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TextureID
(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 TypeMethodDescriptionboolean
bind()
binds the current textureboolean
static TextureID
createSteamAvatar
(long steamID) void
destroy()
Description copied from interface: IDestroyablevoid
free memory spacegetData()
int
getID()
getType()
boolean
boolean
Description copied from interface: IDestroyableboolean
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, 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
-
TextureID
protected 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:
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- 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
-