Class GuiDocumentGraphicsModule

java.lang.Object
technology.sola.engine.graphics.modules.SolaGraphicsModule
technology.sola.engine.graphics.modules.GuiDocumentGraphicsModule
All Implemented Interfaces:
Comparable<SolaGraphicsModule>

@NullMarked public class GuiDocumentGraphicsModule extends SolaGraphicsModule
SolaGraphicsModule for rendering a GuiDocument. This will render on top of Layers if they are present.
  • Field Details

    • ORDER

      public static final int ORDER
      The render order for this graphics module.
      See Also:
  • Constructor Details

    • GuiDocumentGraphicsModule

      public GuiDocumentGraphicsModule(GuiDocument guiDocument)
      Creates an instance of this graphics module.
      Parameters:
      guiDocument - the GuiDocument to render
  • Method Details

    • renderMethod

      public void renderMethod(Renderer renderer, technology.sola.ecs.World world, Matrix3D cameraScaleTransform, Matrix3D cameraTranslationTransform)
      Description copied from class: SolaGraphicsModule
      The specific render method for a graphics module that is called once per frame if active.
      Specified by:
      renderMethod in class SolaGraphicsModule
      Parameters:
      renderer - tbe Renderer instance
      world - the World instance
      cameraScaleTransform - the camera's scale
      cameraTranslationTransform - the camera's translation
    • getOrder

      public int getOrder()
      Description copied from class: SolaGraphicsModule
      Gets the order of this graphics module. A higher value means it will be rendered on top.
      Overrides:
      getOrder in class SolaGraphicsModule
      Returns:
      the order of this graphics module