Class GDXRenderer
java.lang.Object
nl.colorize.multimedialib.renderer.libgdx.GDXRenderer
- All Implemented Interfaces:
com.badlogic.gdx.ApplicationListener
,Renderer
Renderer built on top of the libGDX framework. In turn, libGDX supports multiple
back-end implementations that determine which platforms are supported and which
libraries are used.
-
Constructor Summary
ConstructorDescriptionGDXRenderer
(GraphicsMode graphicsMode, DisplayMode displayMode, WindowOptions window) -
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
void
dispose()
void
pause()
void
render()
void
resize
(int width, int height) void
resume()
void
start
(Scene initialScene, ErrorHandler errorHandler) Initializes this renderer and starts playing the requested scene.void
Ends the animation loop, stops this renderer, and quits the application.toString()
-
Constructor Details
-
GDXRenderer
-
-
Method Details
-
start
Description copied from interface:Renderer
Initializes this renderer and starts playing the requested scene. Errors that occur during the application will be forwarded to the specified error handler.As explained in the class documentation, this is the only method in
Renderer
that can be safely called from outside the renderer's application loop. -
create
public void create()- Specified by:
create
in interfacecom.badlogic.gdx.ApplicationListener
-
dispose
public void dispose()- Specified by:
dispose
in interfacecom.badlogic.gdx.ApplicationListener
-
resize
public void resize(int width, int height) - Specified by:
resize
in interfacecom.badlogic.gdx.ApplicationListener
-
pause
public void pause()- Specified by:
pause
in interfacecom.badlogic.gdx.ApplicationListener
-
resume
public void resume()- Specified by:
resume
in interfacecom.badlogic.gdx.ApplicationListener
-
render
public void render()- Specified by:
render
in interfacecom.badlogic.gdx.ApplicationListener
-
getGraphicsMode
- Specified by:
getGraphicsMode
in interfaceRenderer
-
getDisplayMode
- Specified by:
getDisplayMode
in interfaceRenderer
-
terminate
public void terminate()Description copied from interface:Renderer
Ends the animation loop, stops this renderer, and quits the application.Renderer
instances cannot be reused, restarting a previously terminated renderer is not possible. -
toString
-