Interface TexturedDrawable

All Superinterfaces:
ColoredDrawable, Drawable
All Known Implementing Classes:
Circle, Rect, RoundedRect, Shape
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TexturedDrawable extends ColoredDrawable
An object that can be drawn on the screen with a given texture, color and depth.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    draw(Renderer renderer, TextureAsset texture, float depth)
    Draws this object with a given texture.
    void
    draw(Renderer renderer, TextureAsset texture, Color color, float depth)
    Draws this object with a given texture and color.
    default void
    draw(Renderer renderer, Color color, float depth)
    Draws this object with a given color.

    Methods inherited from interface dev.prozilla.pine.core.rendering.shape.ColoredDrawable

    draw
  • Method Details

    • draw

      default void draw(Renderer renderer, Color color, float depth)
      Description copied from interface: ColoredDrawable
      Draws this object with a given color.
      Specified by:
      draw in interface ColoredDrawable
      Parameters:
      renderer - The renderer
      color - The color to draw with
      depth - The depth of the entity
    • draw

      default void draw(Renderer renderer, TextureAsset texture, float depth)
      Draws this object with a given texture.
      Parameters:
      renderer - The renderer
      texture - The texture to draw with
      depth - The depth of the entity
    • draw

      void draw(Renderer renderer, TextureAsset texture, Color color, float depth)
      Draws this object with a given texture and color.
      Parameters:
      renderer - The renderer
      texture - The texture to draw with
      color - The color to draw with
      depth - The depth of the entity