Package zombie.core.textures
Class TextureID
java.lang.Object
zombie.core.textures.TextureID
- All Implemented Interfaces:
java.io.Serializable,IDestroyable
public class TextureID extends java.lang.Object implements IDestroyable, java.io.Serializable
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static booleanbUseCompressionstatic booleanbUseCompressionOptionprotected ImageDatadatastatic booleanFREE_MEMORYprotected intheightprotected intheightHWprotected intidprotected java.nio.IntBufferidBufferprotected java.lang.StringpathFileNameprotected booleansolidstatic java.util.HashMapTextureIDMapstatic java.util.StackTextureIDStackstatic longtotalGraphicMemorystatic floattotalMemUsedstatic booleanUSE_MIPMAPstatic booleanUseFilteringprotected intwidthprotected intwidthHW -
Constructor Summary
Constructors Modifier Constructor Description protectedTextureID()TextureID(int width, int height)TextureID(java.io.BufferedInputStream b, java.lang.String path, boolean bDoMask)TextureID(java.io.BufferedInputStream b, java.lang.String path, boolean bDoMask, Texture.PZFileformat format)TextureID(java.lang.String path)TextureID(java.lang.String pcx, int[] palette)TextureID(java.lang.String path, int red, int green, int blue)TextureID(java.lang.String pcx, java.lang.String palette)TextureID(ImageData image) -
Method Summary
Modifier and Type Method Description booleanbind()booleanbindalways()static TextureIDcreateSteamAvatar(long steamID)voiddestroy()voidfreeMemory()voidgenerateMipmap()WrappedBuffergetData()ImageDatagetImageData()java.lang.StringgetPathFileName()booleanisDestroyed()booleanisSolid()voidsetData(java.nio.ByteBuffer bdata)voidsetImageData(ImageData data)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
USE_MIPMAP
public static boolean USE_MIPMAP -
FREE_MEMORY
public static boolean FREE_MEMORY -
TextureIDMap
public static java.util.HashMap TextureIDMap -
TextureIDStack
public static java.util.Stack TextureIDStack -
data
-
height
protected int height -
heightHW
protected int heightHW -
id
protected transient int id -
idBuffer
protected transient java.nio.IntBuffer idBuffer -
pathFileName
protected java.lang.String pathFileName -
solid
protected boolean solid -
width
protected int width -
widthHW
protected int widthHW -
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
-
-
Constructor Details
-
TextureID
protected TextureID() -
TextureID
public TextureID(int width, int height) -
TextureID
-
TextureID
public TextureID(java.lang.String pcx, java.lang.String palette) -
TextureID
public TextureID(java.lang.String pcx, int[] palette) -
TextureID
public TextureID(java.lang.String path, int red, int green, int blue) -
TextureID
public TextureID(java.lang.String path) -
TextureID
public TextureID(java.io.BufferedInputStream b, java.lang.String path, boolean bDoMask, Texture.PZFileformat format) -
TextureID
public TextureID(java.io.BufferedInputStream b, java.lang.String path, boolean bDoMask)
-
-
Method Details
-
createSteamAvatar
-
bind
public boolean bind() -
bindalways
public boolean bindalways() -
destroy
public void destroy()- Specified by:
destroyin interfaceIDestroyable
-
freeMemory
public void freeMemory() -
getData
-
getImageData
-
getPathFileName
public java.lang.String getPathFileName() -
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfaceIDestroyable
-
isSolid
public boolean isSolid() -
setData
public void setData(java.nio.ByteBuffer bdata) -
setImageData
-
generateMipmap
public void generateMipmap()
-