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 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 boolean
bind()
boolean
bindalways()
static TextureID
createSteamAvatar(long steamID)
void
destroy()
void
freeMemory()
void
generateMipmap()
WrappedBuffer
getData()
ImageData
getImageData()
java.lang.String
getPathFileName()
boolean
isDestroyed()
boolean
isSolid()
void
setData(java.nio.ByteBuffer bdata)
void
setImageData(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:
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 bdata) -
setImageData
-
generateMipmap
public void generateMipmap()
-