Class Texture

java.lang.Object
zombie.asset.Asset
zombie.core.textures.Texture
All Implemented Interfaces:
java.io.Serializable, IDestroyable, IMaskerable, ITexture
Direct Known Subclasses:
AngelCodeFont.CharDefTexture, SmartTexture

public class Texture
extends Asset
implements IDestroyable, ITexture, java.io.Serializable
See Also:
Serialized Form
  • Field Details

    • nullTextures

      public static final java.util.HashSet nullTextures
    • BindCount

      public static int BindCount
    • 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
    • lastTextureID

      public static int lastTextureID
    • WarnFailFindTexture

      public static boolean WarnFailFindTexture
    • 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

      protected TextureID dataid
    • mask

      protected Mask 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
    • subTexture

      protected FileSystem.SubTexture subTexture
    • assetParams

      public Texture.TextureAssetParams assetParams
    • ASSET_TYPE

      public static final AssetType ASSET_TYPE
  • Constructor Details

    • Texture

      public Texture​(AssetPath assetPath, AssetManager assetManager, Texture.TextureAssetParams textureAssetParams)
    • Texture

      public Texture​(TextureID textureID, java.lang.String string)
    • Texture

      public Texture​(java.lang.String string) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • 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) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • Texture

      public Texture​(java.lang.String string, boolean boolean1, boolean boolean2) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • 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) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • Texture

      public Texture​(int int1, int int2, java.lang.String string, int int3)
    • Texture

      public Texture​(int int1, int int2, int int3)
    • Texture

      public Texture​(java.lang.String string, int int1, int int2, int int3) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • Texture

      public Texture​(Texture texture)
    • Texture

      public Texture()
  • Method Details

    • processFilePath

      public static java.lang.String processFilePath​(java.lang.String string)
    • bindNone

      public static void bindNone()
    • getWhite

      public static Texture getWhite()
    • getErrorTexture

      public static Texture getErrorTexture()
    • getEngineMipmapTexture

      public static Texture getEngineMipmapTexture()
    • clearTextures

      public static void clearTextures()
    • getSharedTexture

      public static Texture getSharedTexture​(java.lang.String string)
    • getSharedTexture

      public static Texture getSharedTexture​(java.lang.String string, int int1)
    • trygetTexture

      public static Texture trygetTexture​(java.lang.String string)
    • onTexturePacksChanged

      public static void onTexturePacksChanged()
    • getSharedTexture

      public static Texture getSharedTexture​(java.lang.String string, java.lang.String string2)
    • getSharedTexture

      public static Texture getSharedTexture​(java.lang.String string, int[] intArray, java.lang.String string2)
    • getTexture

      public static Texture getTexture​(java.lang.String string)
    • getSteamAvatar

      public static Texture getSteamAvatar​(long long1)
    • 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)
    • flipPixels

      public static int[] flipPixels​(int[] intArray, int int1, int int2)
    • reloadFromFile

      public void reloadFromFile​(java.lang.String string)
    • bind

      public void bind()
      Specified by:
      bind in interface ITexture
    • bind

      public void bind​(int int1)
      Specified by:
      bind in interface ITexture
    • copyMaskRegion

      public void copyMaskRegion​(Texture texture, int int1, int int2, int int3, int int4)
    • createMask

      public void createMask()
    • createMask

      public void createMask​(boolean[] booleanArray)
    • createMask

      public void createMask​(BooleanGrid booleanGrid)
    • createMask

      public void createMask​(WrappedBuffer wrappedBuffer)
    • destroy

      public void destroy()
      Specified by:
      destroy in interface IDestroyable
    • equals

      public boolean equals​(Texture texture)
    • getData

      public WrappedBuffer getData()
      Specified by:
      getData in interface ITexture
    • setData

      public void setData​(java.nio.ByteBuffer byteBuffer)
      Specified by:
      setData in interface ITexture
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface ITexture
    • setHeight

      public void setHeight​(int int1)
    • getHeightHW

      public int getHeightHW()
      Specified by:
      getHeightHW in interface ITexture
    • getHeightOrig

      public int getHeightOrig()
    • getID

      public int getID()
      Specified by:
      getID in interface ITexture
    • getMask

      public Mask getMask()
      Specified by:
      getMask in interface IMaskerable
    • setMask

      public void setMask​(Mask mask)
      Specified by:
      setMask in interface ITexture
    • getName

      public java.lang.String getName()
    • setName

      public void setName​(java.lang.String string)
    • getTextureId

      public TextureID getTextureId()
    • getUseAlphaChannel

      public boolean getUseAlphaChannel()
    • setUseAlphaChannel

      public void setUseAlphaChannel​(boolean boolean1)
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface ITexture
    • setWidth

      public void setWidth​(int int1)
    • getWidthHW

      public int getWidthHW()
      Specified by:
      getWidthHW in interface ITexture
    • getWidthOrig

      public int getWidthOrig()
    • getXEnd

      public float getXEnd()
      Specified by:
      getXEnd in interface ITexture
    • getXStart

      public float getXStart()
      Specified by:
      getXStart in interface ITexture
    • getYEnd

      public float getYEnd()
      Specified by:
      getYEnd in interface ITexture
    • getYStart

      public float getYStart()
      Specified by:
      getYStart in interface ITexture
    • getOffsetX

      public float getOffsetX()
    • setOffsetX

      public void setOffsetX​(int int1)
    • getOffsetY

      public float getOffsetY()
    • setOffsetY

      public void setOffsetY​(int int1)
    • isCollisionable

      public boolean isCollisionable()
    • isDestroyed

      public boolean isDestroyed()
      Specified by:
      isDestroyed in interface IDestroyable
    • isSolid

      public boolean isSolid()
      Specified by:
      isSolid in interface ITexture
    • isValid

      public boolean isValid()
    • makeTransp

      public void makeTransp​(int int1, int int2, int int3)
      Specified by:
      makeTransp in interface ITexture
    • render

      public void render​(float float1, float float2, float float3, float float4)
    • render

      public void render​(float float1, float float2)
    • render

      public void render​(float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, java.util.function.Consumer consumer)
    • render

      public void render​(ObjectRenderEffects objectRenderEffects, float float1, float float2, float float3, float float4, float float5, float float6, float float7, float float8, java.util.function.Consumer consumer)
    • rendershader2

      public void rendershader2​(float float1, float float2, float float3, float float4, int int1, int int2, int int3, int int4, float float5, float float6, float float7, float float8)
    • renderdiamond

      public void renderdiamond​(float float1, float float2, float float3, float float4, int int1, int int2, int int3, int int4)
    • renderwallnw

      public void renderwallnw​(float float1, float float2, float float3, float float4, int int1, int int2, int int3, int int4, int int5, int int6)
    • renderwallw

      public void renderwallw​(float float1, float float2, float float3, float float4, int int1, int int2, int int3, int int4)
    • renderwalln

      public void renderwalln​(float float1, float float2, float float3, float float4, 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, java.util.function.Consumer consumer)
    • setAlphaForeach

      public void setAlphaForeach​(int int1, int int2, int int3, int int4)
      Specified by:
      setAlphaForeach in interface ITexture
    • setCustomizedTexture

      public void setCustomizedTexture()
    • setNameOnly

      public void setNameOnly​(java.lang.String string)
    • setRegion

      public void setRegion​(int int1, int int2, int int3, int int4)
      Specified by:
      setRegion in interface ITexture
    • splitIcon

      public Texture splitIcon()
    • split

      public Texture split​(int int1, int int2, int int3, int int4)
    • split

      public Texture split​(java.lang.String string, int int1, int int2, int int3, int int4)
    • split

      public Texture[] split​(int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8)
    • split2D

      public Texture[][] split2D​(int[] intArray, int[] intArray2)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • saveMask

      public void saveMask​(java.lang.String string)
    • save

      public void save​(java.lang.String string)
    • loadMaskRegion

      public void loadMaskRegion​(java.nio.ByteBuffer byteBuffer)
    • saveMaskRegion

      public void saveMaskRegion​(java.nio.ByteBuffer byteBuffer)
    • getRealWidth

      public int getRealWidth()
    • setRealWidth

      public void setRealWidth​(int int1)
    • getRealHeight

      public int getRealHeight()
    • setRealHeight

      public void setRealHeight​(int int1)
    • getUVScale

      public Vector2 getUVScale​(Vector2 vector2)
    • getType

      public AssetType getType()
      Specified by:
      getType in class Asset
    • onBeforeReady

      public void onBeforeReady()
      Overrides:
      onBeforeReady in class Asset
    • collectAllIcons

      public static void collectAllIcons​(java.util.HashMap hashMap, java.util.HashMap hashMap2)