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 boolean
bUseCompression
static boolean
bUseCompressionOption
protected ImageData
data
static boolean
FREE_MEMORY
protected int
height
protected int
heightHW
protected int
id
protected java.nio.IntBuffer
idBuffer
protected java.lang.String
pathFileName
protected boolean
solid
static java.util.HashMap
TextureIDMap
static java.util.Stack
TextureIDStack
static long
totalGraphicMemory
static float
totalMemUsed
static boolean
USE_MIPMAP
static boolean
UseFiltering
protected int
width
protected int
widthHW
-
Constructor Summary
Constructors Modifier Constructor Description protected
TextureID()
TextureID(int int1, int int2)
TextureID(java.io.BufferedInputStream bufferedInputStream, java.lang.String string, boolean boolean1)
TextureID(java.io.BufferedInputStream bufferedInputStream, java.lang.String string, boolean boolean1, Texture.PZFileformat pZFileformat)
TextureID(java.lang.String string)
TextureID(java.lang.String string, int[] intArray)
TextureID(java.lang.String string, int int1, int int2, int int3)
TextureID(java.lang.String string, java.lang.String string2)
TextureID(ImageData imageData)
-
Method Summary
Modifier and Type Method Description boolean
bind()
boolean
bindalways()
static TextureID
createSteamAvatar(long long1)
void
destroy()
void
freeMemory()
void
generateMipmap()
WrappedBuffer
getData()
ImageData
getImageData()
java.lang.String
getPathFileName()
boolean
isDestroyed()
boolean
isSolid()
void
setData(java.nio.ByteBuffer byteBuffer)
void
setImageData(ImageData imageData)
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 int1, int int2) -
TextureID
-
TextureID
public TextureID(java.lang.String string, java.lang.String string2) -
TextureID
public TextureID(java.lang.String string, int[] intArray) -
TextureID
public TextureID(java.lang.String string, int int1, int int2, int int3) -
TextureID
public TextureID(java.lang.String string) -
TextureID
public TextureID(java.io.BufferedInputStream bufferedInputStream, java.lang.String string, boolean boolean1, Texture.PZFileformat pZFileformat) -
TextureID
public TextureID(java.io.BufferedInputStream bufferedInputStream, java.lang.String string, boolean boolean1)
-
-
Method Details
-
createSteamAvatar
-
bind
public boolean bind() -
bindalways
public boolean bindalways() -
destroy
public void destroy()- Specified by:
destroy
in interfaceIDestroyable
-
freeMemory
public void freeMemory() -
getData
-
getImageData
-
getPathFileName
public java.lang.String getPathFileName() -
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyed
in interfaceIDestroyable
-
isSolid
public boolean isSolid() -
setData
public void setData(java.nio.ByteBuffer byteBuffer) -
setImageData
-
generateMipmap
public void generateMipmap()
-