java.lang.Object
technology.sola.engine.graphics.SolaGraphics
SolaGraphics provides default rendering capabilities while also allowing for adding new rendering
capabilities via
SolaGraphicsModules.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGraphicsModules(SolaGraphicsModule... graphicsModules) AddsSolaGraphicsModules to be rendered.<T extends SolaGraphicsModule>
TgetGraphicsModule(Class<T> solaGraphicsModuleClass) Gets aSolaGraphicsModulethat has been added or else null.TheGuiDocumentinstance for this Sola.voidRenders allSolaGraphicsModules that have been added.screenToWorldCoordinate(Vector2D screenCoordinate) Using the camera's transform, this method calculates theWorldcoordinate based on the screen's coordinate system.
-
Method Details
-
addGraphicsModules
AddsSolaGraphicsModules to be rendered.- Parameters:
graphicsModules- the modules to add
-
getGraphicsModule
Gets aSolaGraphicsModulethat has been added or else null.- Type Parameters:
T- the type of graphics module- Parameters:
solaGraphicsModuleClass- the class of the SolaGraphicsModule- Returns:
- the graphics module
-
render
Renders allSolaGraphicsModules that have been added. Passes each the current camera's translation and scale.- Parameters:
renderer- theRendererinstance
-
screenToWorldCoordinate
Using the camera's transform, this method calculates theWorldcoordinate based on the screen's coordinate system.- Parameters:
screenCoordinate- the coordinate of the screen to map- Returns:
- the coordinate mapped to the
World's coordinate system
-
guiDocument
TheGuiDocumentinstance for this Sola. CallSolaGraphics.Builder.withGui(MouseInput)to configure.- Returns:
GuiDocumentinstance
-
getSpriteAnimatorSystem
- Returns:
- the
SpriteAnimatorSystem
-
getTransformAnimatorSystem
- Returns:
- the
TransformAnimatorSystem
-