|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectzombie.core.textures.TextureID
public class TextureID
Field Summary | |
---|---|
static boolean |
FREE_MEMORY
|
static gnu.trove.map.hash.THashMap<java.lang.Integer,java.lang.String> |
TextureIDMap
|
static java.util.Stack<java.lang.Integer> |
TextureIDStack
|
static long |
totalGraphicMemory
|
static float |
totalMemUsed
|
static boolean |
USE_MIPMAP
|
static boolean |
UseFiltering
|
Constructor Summary | |
---|---|
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(ImageData image)
|
|
TextureID(int width,
int height)
|
|
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)
|
Method Summary | |
---|---|
boolean |
bind()
binds the current texture |
boolean |
bindalways()
|
void |
destroy()
destory the object |
void |
freeMemory()
free memory space |
WrappedBuffer |
getData()
|
ImageData |
getImageData()
|
java.lang.String |
getPathFileName()
|
boolean |
isDestroyed()
returns if the object is destryed or not |
boolean |
isSolid()
|
void |
setData(java.nio.ByteBuffer bdata)
if the data is null will be free the memory from the RAM but not from the VRAM |
void |
setImageData(ImageData data)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean USE_MIPMAP
public static boolean FREE_MEMORY
public static gnu.trove.map.hash.THashMap<java.lang.Integer,java.lang.String> TextureIDMap
public static java.util.Stack<java.lang.Integer> TextureIDStack
public static long totalGraphicMemory
public static boolean UseFiltering
public static float totalMemUsed
Constructor Detail |
---|
public TextureID(int width, int height)
public TextureID(ImageData image)
public TextureID(java.lang.String pcx, java.lang.String palette)
public TextureID(java.lang.String pcx, int[] palette)
public TextureID(java.lang.String path, int red, int green, int blue)
public TextureID(java.lang.String path)
public TextureID(java.io.BufferedInputStream b, java.lang.String path, boolean bDoMask, Texture.PZFileformat format)
public TextureID(java.io.BufferedInputStream b, java.lang.String path, boolean bDoMask)
Method Detail |
---|
public boolean bind()
public boolean bindalways()
public void destroy()
IDestroyable
destroy
in interface IDestroyable
public void freeMemory()
public WrappedBuffer getData()
public ImageData getImageData()
public java.lang.String getPathFileName()
public boolean isDestroyed()
IDestroyable
isDestroyed
in interface IDestroyable
public boolean isSolid()
public void setData(java.nio.ByteBuffer bdata)
public void setImageData(ImageData data)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |