Package sk.tuke.kpi.gamelib.graphics
Interface Overlay
-
- All Known Implementing Classes:
BatchOverlay
public interface Overlay
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull OverlayDrawing<?>
drawAnimation(@NotNull Animation animation, int x, int y)
Drawsanimation
at [x, y].@NotNull OverlayDrawing<?>
drawAnimation(@NotNull Animation animation, int x, int y, float scale)
Drawsanimation
at [x, y], scaled at scale.@NotNull OverlayDrawing<?>
drawAnimation(@NotNull Animation animation, int x, int y, float scale, float rotation)
Drawsanimation
at [x, y], scaled at scale and rotated at rotation degrees.@NotNull OverlayDrawing<?>
drawLine(int x1, int y1, int x2, int y2, @NotNull Color color)
Draws line from point [x1, y1] to point [x2, y2] with color.@NotNull OverlayDrawing<?>
drawRectangle(int x, int y, int width, int height, @NotNull Color color)
Draws rectangle with bottom left corner at [x, y] of specified width and height.@NotNull OverlayDrawing<?>
drawRectangle(int x, int y, int width, int height, @NotNull Color color, float borderWidth, @NotNull Color borderColor)
Draws rectangle with bottom left corner at [x, y] of specified width and height.@NotNull OverlayDrawing<?>
drawText(@NotNull java.lang.String text, int x, int y)
Draws a text string at [x, y] with default font.@NotNull OverlayDrawing<?>
drawText(@NotNull java.lang.String text, int x, int y, @NotNull Font font)
Draws a text string at [x, y] with font.@NotNull OverlayDrawing<?>
drawText(@NotNull java.lang.String text, int x, int y, @NotNull Font font, float rotation)
Draws a text string at [x, y] with font, rotated at rotation degrees.@NotNull OverlayDrawing<?>
drawTextLayout(@NotNull TextLayout textLayout, int x, int y)
Draws a pre-renderedtext layout
at [x, y].@NotNull OverlayDrawing<?>
drawTextLayout(@NotNull TextLayout textLayout, int x, int y, float rotation)
Draws a pre-renderedtext layout
at [x, y] rotated at rotation degrees.void
render(float deltaTime)
Renders the overlay layer.
-
-
-
Method Detail
-
drawLine
@NotNull @NotNull OverlayDrawing<?> drawLine(int x1, int y1, int x2, int y2, @NotNull @NotNull Color color)
Draws line from point [x1, y1] to point [x2, y2] with color.
-
drawRectangle
@NotNull @NotNull OverlayDrawing<?> drawRectangle(int x, int y, int width, int height, @NotNull @NotNull Color color)
Draws rectangle with bottom left corner at [x, y] of specified width and height.- Parameters:
color
- fill color.
-
drawRectangle
@NotNull @NotNull OverlayDrawing<?> drawRectangle(int x, int y, int width, int height, @NotNull @NotNull Color color, float borderWidth, @NotNull @NotNull Color borderColor)
Draws rectangle with bottom left corner at [x, y] of specified width and height.- Parameters:
color
- fill color.borderWidth
- border line widthborderColor
- border line color
-
drawText
@NotNull @NotNull OverlayDrawing<?> drawText(@NotNull @NotNull java.lang.String text, int x, int y)
Draws a text string at [x, y] with default font.
-
drawText
@NotNull @NotNull OverlayDrawing<?> drawText(@NotNull @NotNull java.lang.String text, int x, int y, @NotNull @NotNull Font font)
Draws a text string at [x, y] with font.
-
drawText
@NotNull @NotNull OverlayDrawing<?> drawText(@NotNull @NotNull java.lang.String text, int x, int y, @NotNull @NotNull Font font, float rotation)
Draws a text string at [x, y] with font, rotated at rotation degrees.
-
drawTextLayout
@NotNull @NotNull OverlayDrawing<?> drawTextLayout(@NotNull @NotNull TextLayout textLayout, int x, int y)
Draws a pre-renderedtext layout
at [x, y].
-
drawTextLayout
@NotNull @NotNull OverlayDrawing<?> drawTextLayout(@NotNull @NotNull TextLayout textLayout, int x, int y, float rotation)
Draws a pre-renderedtext layout
at [x, y] rotated at rotation degrees.
-
drawAnimation
@NotNull @NotNull OverlayDrawing<?> drawAnimation(@NotNull @NotNull Animation animation, int x, int y)
Drawsanimation
at [x, y]. The animation is always rendered at its first frame.
-
drawAnimation
@NotNull @NotNull OverlayDrawing<?> drawAnimation(@NotNull @NotNull Animation animation, int x, int y, float scale)
Drawsanimation
at [x, y], scaled at scale. The animation is always rendered at its first frame.
-
drawAnimation
@NotNull @NotNull OverlayDrawing<?> drawAnimation(@NotNull @NotNull Animation animation, int x, int y, float scale, float rotation)
Drawsanimation
at [x, y], scaled at scale and rotated at rotation degrees. The animation is always rendered at its first frame.
-
render
void render(float deltaTime)
Renders the overlay layer.
-
-