public class RendererDemo extends CommandLineTool implements Scene
The demo can be configured using two ways. The first is to create a subclass and provide a renderer programatically, the second is running the demo from the command line, and specifying the renderer class as a command line argument.
| Constructor and Description |
|---|
RendererDemo() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMarios(int amount) |
static void |
main(java.lang.String[] args) |
void |
onFrame(float deltaTime,
InputDevice input) |
void |
onRender(RenderContext context) |
void |
onSceneEnd() |
void |
onSceneStart(MediaLoader mediaLoader) |
void |
run()
Runs this tool.
|
getDescription, parseInputDirectory, parseInputFile, parseOutputDirectory, parseOutputFile, startpublic static void main(java.lang.String[] args)
public void run()
CommandLineToolCommandLineTool.start(String[]). When
this method is called it can be assumed that arguments have already been
mapped to fields.run in class CommandLineToolpublic void onSceneStart(MediaLoader mediaLoader)
onSceneStart in interface Scenepublic void onFrame(float deltaTime,
InputDevice input)
public void onRender(RenderContext context)
public void onSceneEnd()
onSceneEnd in interface Scenepublic void addMarios(int amount)