Module technology.sola.engine
Class GuiDocumentGraphicsModule
java.lang.Object
technology.sola.engine.graphics.modules.SolaGraphicsModule
technology.sola.engine.graphics.modules.GuiDocumentGraphicsModule
- All Implemented Interfaces:
Comparable<SolaGraphicsModule>
SolaGraphicsModule for rendering a
GuiDocument
. This will render on top
of Layer
s if they are present.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The render order for this graphics module. -
Constructor Summary
ConstructorsConstructorDescriptionGuiDocumentGraphicsModule
(GuiDocument guiDocument) Creates an instance of this graphics module. -
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
Gets the order of this graphics module.void
renderMethod
(Renderer renderer, technology.sola.ecs.World world, Matrix3D cameraScaleTransform, Matrix3D cameraTranslationTransform) The specific render method for a graphics module that is called once per frame if active.Methods inherited from class technology.sola.engine.graphics.modules.SolaGraphicsModule
compareTo, isActive, render, setActive
-
Field Details
-
ORDER
public static final int ORDERThe render order for this graphics module.- See Also:
-
-
Constructor Details
-
GuiDocumentGraphicsModule
Creates an instance of this graphics module.- Parameters:
guiDocument
- theGuiDocument
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 classSolaGraphicsModule
- Parameters:
renderer
- tbeRenderer
instanceworld
- theWorld
instancecameraScaleTransform
- the camera's scalecameraTranslationTransform
- 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 classSolaGraphicsModule
- Returns:
- the order of this graphics module
-