Package zombie.core.textures
Class Texture
java.lang.Object
zombie.core.textures.Texture
- All Implemented Interfaces:
java.io.Serializable
,IDestroyable
,IMaskerable
,ITexture
public class Texture extends java.lang.Object implements IDestroyable, ITexture, java.io.Serializable
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Texture.PZFileformat
-
Field Summary
Fields Modifier and Type Field Description static boolean
autoCreateMask
static boolean
bDoingQuad
boolean
bindAlways
static int
BindCount
static boolean
bWallColors
protected TextureID
dataid
boolean
flip
protected int
height
protected int
heightOrig
static float
la
static int
lastlastTextureID
static int
lastTextureID
static float
lb
static float
lg
static float
lr
protected Mask
mask
protected java.lang.String
name
static java.util.HashSet
nullTextures
float
offsetX
float
offsetY
static int
renderQuadBatchCount
protected boolean
solid
static int
startStack
static int
totalTextureID
static boolean
WarnFailFindTexture
protected int
width
protected int
widthOrig
float
xEnd
float
xStart
float
yEnd
float
yStart
-
Constructor Summary
Constructors Constructor Description Texture()
Texture(int int1, int int2)
Texture(int int1, int int2, java.lang.String string)
Texture(java.awt.image.BufferedImage bufferedImage, java.lang.String string)
Texture(java.lang.String string)
Texture(java.lang.String string, boolean boolean1)
Texture(java.lang.String string, boolean boolean1, boolean boolean2)
Texture(java.lang.String string, int[] intArray)
Texture(java.lang.String string, int int1, int int2, int int3)
Texture(java.lang.String string, java.io.BufferedInputStream bufferedInputStream, boolean boolean1)
Texture(java.lang.String string, java.io.BufferedInputStream bufferedInputStream, boolean boolean1, Texture.PZFileformat pZFileformat)
Texture(java.lang.String string, java.lang.String string2)
Texture(Texture texture)
Texture(TextureID textureID, java.lang.String string)
-
Method Summary
Modifier and Type Method Description void
bind()
void
bind(int int1)
static void
bindNone()
void
bindstrip(float float1, float float2, float float3, float float4)
void
bindstrip(int int1, float float1, float float2, float float3, float float4)
static void
clearTextures()
void
copyMaskRegion(Texture texture, int int1, int int2, int int3, int int4)
void
createMask()
void
createMask(boolean[] booleanArray)
void
createMask(WrappedBuffer wrappedBuffer)
void
destroy()
boolean
equals(Texture texture)
static void
forgetTexture(java.lang.String string)
WrappedBuffer
getData()
int
getHeight()
int
getHeightHW()
int
getHeightOrig()
int
getID()
Mask
getMask()
java.lang.String
getName()
float
getOffsetX()
float
getOffsetY()
int
getRealHeight()
int
getRealWidth()
static Texture
getSharedTexture(java.lang.String string)
static Texture
getSharedTexture(java.lang.String string, boolean boolean1)
static Texture
getSharedTexture(java.lang.String string, int[] intArray, java.lang.String string2)
static Texture
getSharedTexture(java.lang.String string, java.lang.String string2)
static Texture
getSteamAvatar(long long1)
static Texture
getTexture(java.lang.String string)
TextureID
getTextureId()
boolean
getUseAlphaChannel()
int
getWidth()
int
getWidthHW()
int
getWidthOrig()
float
getXEnd()
float
getXStart()
float
getYEnd()
float
getYStart()
boolean
isCollisionable()
boolean
isDestroyed()
boolean
isSolid()
boolean
isValid()
void
Load(java.awt.image.BufferedImage bufferedImage)
void
loadMaskRegion(java.nio.ByteBuffer byteBuffer)
void
makeTransp(int int1, int int2, int int3)
static void
reload(java.lang.String string)
void
render(int int1, int int2)
void
render(int int1, int int2, int int3, int int4)
void
render(int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4)
void
render(ObjectRenderEffects objectRenderEffects, int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4)
void
renderdiamond(int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4, float float5)
void
renderdiamond(int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12, float float13, float float14, float float15, float float16)
void
renderdiamond(int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8)
void
renderroofw(int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12, float float13, float float14, float float15, float float16)
void
rendershader(int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4)
void
rendershader2(int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8, float float1, float float2, float float3, float float4)
void
renderstrip(int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4)
void
renderwalln(int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12, float float13, float float14, float float15, float float16)
void
renderwalln(int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8)
void
renderwallncutoff(int int1, int int2, int int3, int int4)
void
renderwallnw(int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8, int int9, int int10)
void
renderwallw(int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12, float float13, float float14, float float15, float float16)
void
renderwallw(int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8)
void
saveMask(java.lang.String string)
void
saveMaskRegion(java.nio.ByteBuffer byteBuffer)
void
setAlphaForeach(int int1, int int2, int int3, int int4)
void
setCustomizedTexture()
void
setData(java.nio.ByteBuffer byteBuffer)
void
setHeight(int int1)
void
setMask(Mask mask)
void
setName(java.lang.String string)
void
setOffsetX(int int1)
void
setOffsetY(int int1)
void
setRealHeight(int int1)
void
setRealWidth(int int1)
void
setRegion(int int1, int int2, int int3, int int4)
void
setUseAlphaChannel(boolean boolean1)
void
setWidth(int int1)
Texture
split(int int1, int int2, int int3, int int4)
Texture[]
split(int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8)
Texture[][]
split2D(int[] intArray, int[] intArray2)
Texture
splitIcon()
static void
steamAvatarChanged(long long1)
java.lang.String
toString()
static Texture
trygetTexture(java.lang.String string)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
autoCreateMask
public static boolean autoCreateMask -
BindCount
public static int BindCount -
renderQuadBatchCount
public static int renderQuadBatchCount -
startStack
public static int startStack -
bDoingQuad
public static boolean bDoingQuad -
lr
public static float lr -
lg
public static float lg -
lb
public static float lb -
la
public static float la -
lastlastTextureID
public static int lastlastTextureID -
totalTextureID
public static int totalTextureID -
flip
public boolean flip -
offsetX
public float offsetX -
offsetY
public float offsetY -
bindAlways
public boolean bindAlways -
xEnd
public float xEnd -
yEnd
public float yEnd -
xStart
public float xStart -
yStart
public float yStart -
dataid
-
mask
-
name
protected java.lang.String name -
solid
protected boolean solid -
width
protected int width -
height
protected int height -
heightOrig
protected int heightOrig -
widthOrig
protected int widthOrig -
lastTextureID
public static int lastTextureID -
nullTextures
public static final java.util.HashSet nullTextures -
WarnFailFindTexture
public static boolean WarnFailFindTexture -
bWallColors
public static boolean bWallColors
-
-
Constructor Details
-
Texture
-
Texture
public Texture(java.awt.image.BufferedImage bufferedImage, java.lang.String string) -
Texture
public Texture(java.lang.String string) -
Texture
public Texture(java.lang.String string, java.io.BufferedInputStream bufferedInputStream, boolean boolean1, Texture.PZFileformat pZFileformat) -
Texture
public Texture(java.lang.String string, java.io.BufferedInputStream bufferedInputStream, boolean boolean1) -
Texture
public Texture(java.lang.String string, boolean boolean1, boolean boolean2) -
Texture
public Texture(java.lang.String string, java.lang.String string2) -
Texture
public Texture(java.lang.String string, int[] intArray) -
Texture
public Texture(java.lang.String string, boolean boolean1) -
Texture
public Texture(int int1, int int2, java.lang.String string) -
Texture
public Texture(int int1, int int2) -
Texture
public Texture(java.lang.String string, int int1, int int2, int int3) -
Texture
-
Texture
public Texture()
-
-
Method Details
-
Load
public void Load(java.awt.image.BufferedImage bufferedImage) -
bindNone
public static void bindNone() -
clearTextures
public static void clearTextures() -
trygetTexture
-
getTexture
-
getSteamAvatar
-
steamAvatarChanged
public static void steamAvatarChanged(long long1) -
forgetTexture
public static void forgetTexture(java.lang.String string) -
reload
public static void reload(java.lang.String string) -
bind
public void bind() -
bind
public void bind(int int1) -
bindstrip
public void bindstrip(float float1, float float2, float float3, float float4) -
bindstrip
public void bindstrip(int int1, float float1, float float2, float float3, float float4) -
copyMaskRegion
-
createMask
public void createMask() -
createMask
public void createMask(boolean[] booleanArray) -
createMask
-
destroy
public void destroy()- Specified by:
destroy
in interfaceIDestroyable
-
equals
-
getData
-
getHeight
public int getHeight() -
getHeightHW
public int getHeightHW()- Specified by:
getHeightHW
in interfaceITexture
-
getHeightOrig
public int getHeightOrig() -
getID
public int getID() -
getMask
- Specified by:
getMask
in interfaceIMaskerable
-
getName
public java.lang.String getName() -
getTextureId
-
getUseAlphaChannel
public boolean getUseAlphaChannel() -
getWidth
public int getWidth() -
getWidthHW
public int getWidthHW()- Specified by:
getWidthHW
in interfaceITexture
-
getWidthOrig
public int getWidthOrig() -
getXEnd
public float getXEnd() -
getXStart
public float getXStart() -
getYEnd
public float getYEnd() -
getYStart
public float getYStart() -
getOffsetX
public float getOffsetX() -
getOffsetY
public float getOffsetY() -
isCollisionable
public boolean isCollisionable() -
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyed
in interfaceIDestroyable
-
isSolid
public boolean isSolid() -
isValid
public boolean isValid() -
makeTransp
public void makeTransp(int int1, int int2, int int3)- Specified by:
makeTransp
in interfaceITexture
-
render
public void render(int int1, int int2, int int3, int int4) -
render
public void render(int int1, int int2) -
render
public void render(int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4) -
render
public void render(ObjectRenderEffects objectRenderEffects, int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4) -
rendershader
public void rendershader(int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4) -
rendershader2
public void rendershader2(int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8, float float1, float float2, float float3, float float4) -
renderdiamond
public void renderdiamond(int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4, float float5) -
renderdiamond
public void renderdiamond(int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12, float float13, float float14, float float15, float float16) -
renderdiamond
public void renderdiamond(int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8) -
renderwallw
public void renderwallw(int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12, float float13, float float14, float float15, float float16) -
renderwallw
public void renderwallw(int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8) -
renderwallnw
public void renderwallnw(int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8, int int9, int int10) -
renderroofw
public void renderroofw(int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12, float float13, float float14, float float15, float float16) -
renderwalln
public void renderwalln(int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, float float9, float float10, float float11, float float12, float float13, float float14, float float15, float float16) -
renderwalln
public void renderwalln(int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8) -
renderwallncutoff
public void renderwallncutoff(int int1, int int2, int int3, int int4) -
renderstrip
public void renderstrip(int int1, int int2, int int3, int int4, float float1, float float2, float float3, float float4) -
setAlphaForeach
public void setAlphaForeach(int int1, int int2, int int3, int int4)- Specified by:
setAlphaForeach
in interfaceITexture
-
setCustomizedTexture
public void setCustomizedTexture() -
setData
public void setData(java.nio.ByteBuffer byteBuffer) -
setMask
-
setName
public void setName(java.lang.String string) -
setRegion
public void setRegion(int int1, int int2, int int3, int int4) -
setUseAlphaChannel
public void setUseAlphaChannel(boolean boolean1) -
splitIcon
-
split
-
split
public Texture[] split(int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8) -
split2D
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
saveMask
public void saveMask(java.lang.String string) -
loadMaskRegion
public void loadMaskRegion(java.nio.ByteBuffer byteBuffer) -
saveMaskRegion
public void saveMaskRegion(java.nio.ByteBuffer byteBuffer) -
setWidth
public void setWidth(int int1) -
setHeight
public void setHeight(int int1) -
getRealWidth
public int getRealWidth() -
setRealWidth
public void setRealWidth(int int1) -
getRealHeight
public int getRealHeight() -
setRealHeight
public void setRealHeight(int int1) -
setOffsetX
public void setOffsetX(int int1) -
setOffsetY
public void setOffsetY(int int1)
-