All Implemented Interfaces:
Lifecycle

public class TextRenderer extends RenderSystem
Renders text elements to the screen.
  • Constructor Details

    • TextRenderer

      public TextRenderer()
  • Method Details

    • process

      public void process(EntityChunk chunk, Renderer renderer)
      Description copied from class: RenderSystem
      Renders a single entity, each frame.
      Specified by:
      process in class RenderSystem
      Parameters:
      chunk - Entity that matches this system's query
    • renderText

      public static void renderText(Renderer renderer, TextNode textNode, Node node, float z)
    • renderText

      public static void renderText(Renderer renderer, TextNode textNode, float x, float y, float z, Color color)
    • renderText

      public static void renderText(Renderer renderer, String text, Font font, float x, float y, float width, float height, float z, Color color)
      Renders text on the screen on a given position.
      Parameters:
      x - X position
      y - Y position