Interface ITexture

All Superinterfaces:
IAsset, IDisposable

public interface ITexture extends IAsset
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final ResourceName
     
    static final int
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    bind(TextureBank bank, boolean revertAfterBind)
     
    void
    draw(float x, float y)
     
    void
    draw(float x, float y, float scale)
     
    void
    draw(float x, float y, float width, float height)
     
    void
    draw(float x, float y, float x2, float y2, float srcX, float srcY, float srcX2, float srcY2)
     
    void
    draw(float x, float y, float x2, float y2, float x3, float y3, float x4, float y4, float srcX, float srcY, float srcX2, float srcY2, int[] light, int filter)
     
    void
    draw(float x, float y, float x2, float y2, float srcX, float srcY, float srcX2, float srcY2, int filter)
     
    void
    draw(float x, float y, float x2, float y2, float srcX, float srcY, float srcX2, float srcY2, int[] light)
     
    void
    draw(float x, float y, float x2, float y2, float srcX, float srcY, float srcX2, float srcY2, int[] light, int filter)
     
    void
    draw(float x, float y, float width, float height, int filter)
     
    void
    draw(float x, float y, float width, float height, int[] light)
     
    void
    draw(float x, float y, float width, float height, int[] light, int filter)
     
    void
    draw(float x, float y, float width, float height, int[] light, int filter, boolean mirrorHor, boolean mirrorVert)
     
    void
    draw(float x, float y, float width, float height, int filter, boolean mirrorHor, boolean mirrorVert)
     
    com.google.gson.JsonElement
     
    int
     
     
    getPositionalVariation(int x, int y)
     
    int
     
    int
     
    int
     
    int
     
    getSubTexture(int x, int y, int width, int height)
     
    getSubTexture(int x, int y, int width, int height, boolean inheritVariations, boolean inheritData)
     
    int
    getTextureColor(int x, int y)
     
    int
     
    int
     
     
    void
    param(int param, int value)
     
    void
    setAdditionalData(Map<String,com.google.gson.JsonElement> data)
     
    void
     
    void
     
    void
    unbind(TextureBank bank, boolean revertAfterUnbind)
     

    Methods inherited from interface de.ellpeck.rockbottom.api.render.engine.IDisposable

    dispose
  • Field Details

  • Method Details

    • bind

      void bind(TextureBank bank, boolean revertAfterBind)
    • bind

      void bind()
    • param

      void param(int param, int value)
    • getId

      int getId()
    • getTextureWidth

      int getTextureWidth()
    • getTextureHeight

      int getTextureHeight()
    • getPixelData

      ByteBuffer getPixelData()
    • unbind

      void unbind(TextureBank bank, boolean revertAfterUnbind)
    • unbind

      void unbind()
    • draw

      void draw(float x, float y)
    • draw

      void draw(float x, float y, float scale)
    • draw

      void draw(float x, float y, float width, float height)
    • draw

      void draw(float x, float y, float width, float height, int[] light)
    • draw

      void draw(float x, float y, float width, float height, int filter)
    • draw

      void draw(float x, float y, float width, float height, int[] light, int filter)
    • draw

      void draw(float x, float y, float width, float height, int filter, boolean mirrorHor, boolean mirrorVert)
    • draw

      void draw(float x, float y, float width, float height, int[] light, int filter, boolean mirrorHor, boolean mirrorVert)
    • draw

      void draw(float x, float y, float x2, float y2, float srcX, float srcY, float srcX2, float srcY2)
    • draw

      void draw(float x, float y, float x2, float y2, float srcX, float srcY, float srcX2, float srcY2, int[] light)
    • draw

      void draw(float x, float y, float x2, float y2, float srcX, float srcY, float srcX2, float srcY2, int filter)
    • draw

      void draw(float x, float y, float x2, float y2, float srcX, float srcY, float srcX2, float srcY2, int[] light, int filter)
    • draw

      void draw(float x, float y, float x2, float y2, float x3, float y3, float x4, float y4, float srcX, float srcY, float srcX2, float srcY2, int[] light, int filter)
    • setAdditionalData

      @ApiInternal void setAdditionalData(Map<String,com.google.gson.JsonElement> data)
    • setVariations

      @ApiInternal void setVariations(List<ITexture> variations)
    • getAdditionalData

      com.google.gson.JsonElement getAdditionalData(String name)
    • getVariation

      ITexture getVariation(Random random)
    • getPositionalVariation

      ITexture getPositionalVariation(int x, int y)
    • getSubTexture

      ITexture getSubTexture(int x, int y, int width, int height)
    • getSubTexture

      ITexture getSubTexture(int x, int y, int width, int height, boolean inheritVariations, boolean inheritData)
    • getTextureColor

      int getTextureColor(int x, int y)
    • getRenderWidth

      int getRenderWidth()
    • getRenderHeight

      int getRenderHeight()
    • getRenderOffsetX

      int getRenderOffsetX()
    • getRenderOffsetY

      int getRenderOffsetY()