Package nl.colorize.multimedialib.tool
Class Demo3D
java.lang.Object
nl.colorize.multimedialib.tool.Demo3D
- All Implemented Interfaces:
ErrorHandler
,Scene
Simple demo application for 3D graphics, that shows a checkerboard floor and
a number of models randomly walking around. Using this demo application
requires a renderer that supports 3D graphics.
-
Field Summary
Fields inherited from interface nl.colorize.multimedialib.renderer.ErrorHandler
DEFAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onError
(SceneContext context, Exception cause) void
start
(SceneContext context) Initialization logic that should be performed when the scene is started.void
update
(SceneContext context, float deltaTime) Called during every frame update for as long as the scene is active.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nl.colorize.multimedialib.scene.Scene
end, isCompleted, resize
-
Field Details
-
CANVAS_WIDTH
public static final int CANVAS_WIDTH- See Also:
-
CANVAS_HEIGHT
public static final int CANVAS_HEIGHT- See Also:
-
-
Constructor Details
-
Demo3D
public Demo3D()
-
-
Method Details
-
start
Description copied from interface:Scene
Initialization logic that should be performed when the scene is started. Note that this method is called *every* time the scene is started, not just the first time.This method is optional, the default implementation does nothing.
-
update
Description copied from interface:Scene
Called during every frame update for as long as the scene is active.deltaTime
indicates the elapsed time since the last frame, in seconds. -
onError
- Specified by:
onError
in interfaceErrorHandler
-