Class Demo3D

java.lang.Object
nl.colorize.multimedialib.tool.Demo3D
All Implemented Interfaces:
ErrorHandler, Scene

public class Demo3D extends Object implements Scene, ErrorHandler
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 Details

  • Constructor Details

    • Demo3D

      public Demo3D()
  • Method Details

    • start

      public void start(SceneContext context)
      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.

      Specified by:
      start in interface Scene
    • update

      public void update(SceneContext context, float deltaTime)
      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.
      Specified by:
      update in interface Scene
    • onError

      public void onError(SceneContext context, Exception cause)
      Specified by:
      onError in interface ErrorHandler