Interface ITexture
- All Superinterfaces:
IAsset,IDisposable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final ResourceNamestatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidbind()voidbind(TextureBank bank, boolean revertAfterBind) voiddraw(float x, float y) voiddraw(float x, float y, float scale) voiddraw(float x, float y, float width, float height) voiddraw(float x, float y, float x2, float y2, float srcX, float srcY, float srcX2, float srcY2) voiddraw(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) voiddraw(float x, float y, float x2, float y2, float srcX, float srcY, float srcX2, float srcY2, int filter) voiddraw(float x, float y, float x2, float y2, float srcX, float srcY, float srcX2, float srcY2, int[] light) voiddraw(float x, float y, float x2, float y2, float srcX, float srcY, float srcX2, float srcY2, int[] light, int filter) voiddraw(float x, float y, float width, float height, int filter) voiddraw(float x, float y, float width, float height, int[] light) voiddraw(float x, float y, float width, float height, int[] light, int filter) voiddraw(float x, float y, float width, float height, int[] light, int filter, boolean mirrorHor, boolean mirrorVert) voiddraw(float x, float y, float width, float height, int filter, boolean mirrorHor, boolean mirrorVert) com.google.gson.JsonElementgetAdditionalData(String name) intgetId()getPositionalVariation(int x, int y) intintintintgetSubTexture(int x, int y, int width, int height) getSubTexture(int x, int y, int width, int height, boolean inheritVariations, boolean inheritData) intgetTextureColor(int x, int y) intintgetVariation(Random random) voidparam(int param, int value) voidsetAdditionalData(Map<String, com.google.gson.JsonElement> data) voidsetVariations(List<ITexture> variations) voidunbind()voidunbind(TextureBank bank, boolean revertAfterUnbind) Methods inherited from interface de.ellpeck.rockbottom.api.render.engine.IDisposable
dispose
-
Field Details
-
ID
-
TOP_LEFT
static final int TOP_LEFT- See Also:
-
BOTTOM_LEFT
static final int BOTTOM_LEFT- See Also:
-
BOTTOM_RIGHT
static final int BOTTOM_RIGHT- See Also:
-
TOP_RIGHT
static final int TOP_RIGHT- See Also:
-
-
Method Details
-
bind
-
bind
void bind() -
param
void param(int param, int value) -
getId
int getId() -
getTextureWidth
int getTextureWidth() -
getTextureHeight
int getTextureHeight() -
getPixelData
ByteBuffer getPixelData() -
unbind
-
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
-
setVariations
-
getAdditionalData
-
getVariation
-
getPositionalVariation
-
getSubTexture
-
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()
-