public interface ImageRenderer
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
The height of the area this renderer uses.
|
int |
getWidth()
The width of the area this renderer uses.
|
void |
render(com.mojang.blaze3d.matrix.MatrixStack stack,
int mouseX,
int mouseY)
Render the image, with specified maximum width.
|
int getWidth()
render(MatrixStack, int, int)
, to correctly align the image horizontally.int getHeight()
render(MatrixStack, int, int)
, as well as to know where to resume rendering
other content below the image.void render(com.mojang.blaze3d.matrix.MatrixStack stack, int mouseX, int mouseY)
stack
- the render transformation for this imagemouseX
- the X position of the mouse relative to the element.mouseY
- the Y position of the mouse relative to the element.