public interface IGraphics
| Modifier and Type | Method and Description |
|---|---|
void |
backgroundColor(float r,
float g,
float b,
float a) |
void |
backgroundColor(int color) |
void |
bindColor(float r,
float g,
float b,
float a) |
void |
bindColor(int color) |
void |
describeItem(IGameInstance game,
IAssetManager manager,
ItemInstance instance)
Describes an item using a hovering info (
drawHoverInfo(IGameInstance, IAssetManager, float, float, float, boolean, boolean, int, List)) |
void |
drawHoverInfo(IGameInstance game,
IAssetManager manager,
float x,
float y,
float scale,
boolean firstLineOffset,
boolean canLeaveScreen,
int maxLength,
java.util.List<java.lang.String> text)
Draws a hovering info at the specified coordinates
|
void |
drawHoverInfoAtMouse(IGameInstance game,
IAssetManager manager,
boolean firstLineOffset,
int maxLength,
java.util.List<java.lang.String> text)
Draws a hovering info (
drawHoverInfo(IGameInstance, IAssetManager, float, float, float, boolean, boolean, int, List))
at the specified mouse coordinates |
void |
drawHoverInfoAtMouse(IGameInstance game,
IAssetManager manager,
boolean firstLineOffset,
int maxLength,
java.lang.String... text)
Draws a hovering info (
drawHoverInfo(IGameInstance, IAssetManager, float, float, float, boolean, boolean, int, List))
at the specified mouse coordinates |
void |
drawRect(float x,
float y,
float width,
float height,
float lineWidth,
int color) |
void |
drawRect(float x,
float y,
float width,
float height,
int color) |
void |
fillRect(float x,
float y,
float width,
float height,
int color) |
void |
popMatrix() |
void |
pushMatrix() |
void |
renderItemInGui(IGameInstance game,
IAssetManager manager,
ItemInstance slot,
float x,
float y,
float scale,
int color)
Renders an
ItemInstance in a Gui at the specified x and y coordinates |
void |
renderSlotInGui(IGameInstance game,
IAssetManager manager,
ItemInstance slot,
float x,
float y,
float scale,
boolean hovered)
Renders a slot icon in a
Gui at the specified x and y coordinates
containg the specified ItemInstance |
void |
scale(float scaleX,
float scaleY) |
void renderSlotInGui(IGameInstance game, IAssetManager manager, ItemInstance slot, float x, float y, float scale, boolean hovered)
Gui at the specified x and y coordinates
containg the specified ItemInstancegame - The current game instancemanager - The current instance of IAssetManagerslot - The ItemInstance to be drawn inside of the slotx - The x coordinatey - The y coordinatescale - The scalevoid renderItemInGui(IGameInstance game, IAssetManager manager, ItemInstance slot, float x, float y, float scale, int color)
ItemInstance in a Gui at the specified x and y coordinatesgame - The current game instancemanager - The current instance of IAssetManagerslot - The ItemInstance to be drawn inside of the slotx - The x coordinatey - The y coordinatescale - The scalecolor - The filter to be applied to the Item renderervoid describeItem(IGameInstance game, IAssetManager manager, ItemInstance instance)
drawHoverInfo(IGameInstance, IAssetManager, float, float, float, boolean, boolean, int, List))game - The current game instancemanager - The current isntance of IAssetManagerinstance - The ItemInstance to be describedvoid drawHoverInfoAtMouse(IGameInstance game, IAssetManager manager, boolean firstLineOffset, int maxLength, java.lang.String... text)
drawHoverInfo(IGameInstance, IAssetManager, float, float, float, boolean, boolean, int, List))
at the specified mouse coordinatesgame - The current game instancemanager - The current isntance of IAssetManagerfirstLineOffset - The offset between the first line and the other linesmaxLength - The maximum length before the info wraps aroundtext - The text to be displayedvoid drawHoverInfoAtMouse(IGameInstance game, IAssetManager manager, boolean firstLineOffset, int maxLength, java.util.List<java.lang.String> text)
drawHoverInfo(IGameInstance, IAssetManager, float, float, float, boolean, boolean, int, List))
at the specified mouse coordinatesgame - The current game instancemanager - The current isntance of IAssetManagerfirstLineOffset - The offset between the first line and the other linesmaxLength - The maximum length before the info wraps aroundtext - The text to be displayedvoid drawHoverInfo(IGameInstance game, IAssetManager manager, float x, float y, float scale, boolean firstLineOffset, boolean canLeaveScreen, int maxLength, java.util.List<java.lang.String> text)
game - The current game instancemanager - The current isntance of IAssetManagerx - The x coordinatey - The y coordinatescale - The scale of the infofirstLineOffset - The offset between the first line and the other linescanLeaveScreen - If the hover info can leave the screenmaxLength - The maximum length before the info wraps aroundtext - The text to be displayedvoid pushMatrix()
void popMatrix()
void bindColor(int color)
void bindColor(float r,
float g,
float b,
float a)
void backgroundColor(int color)
void backgroundColor(float r,
float g,
float b,
float a)
void scale(float scaleX,
float scaleY)
void drawRect(float x,
float y,
float width,
float height,
int color)
void drawRect(float x,
float y,
float width,
float height,
float lineWidth,
int color)
void fillRect(float x,
float y,
float width,
float height,
int color)