Class ArdorBaseApplication

java.lang.Object
com.ardor3d.example.craft.base.ArdorBaseApplication
All Implemented Interfaces:
Scene, Updater, Runnable
Direct Known Subclasses:
AdvancedApplication, IntermediateApplication, RealGameApplication, SimpleApplication

public abstract class ArdorBaseApplication extends Object implements Runnable, Updater, Scene
  • Field Details

    • QUIT_VM_ON_EXIT

      public static boolean QUIT_VM_ON_EXIT
      If true (the default) we will call System.exit on end of demo.
    • _logicalLayer

      protected final LogicalLayer _logicalLayer
    • _physicalLayer

      protected PhysicalLayer _physicalLayer
    • _timer

      protected final Timer _timer
    • _frameHandler

      protected final FrameHandler _frameHandler
    • _settings

      protected DisplaySettings _settings
    • _root

      protected final Node _root
    • _wireframeState

      protected WireframeState _wireframeState
    • _exit

      protected volatile boolean _exit
    • _canvas

      protected NativeCanvas _canvas
    • _screenShotExp

      protected ScreenShotImageExporter _screenShotExp
    • _showBounds

      protected boolean _showBounds
    • _doShot

      protected boolean _doShot
    • _mouseManager

      protected MouseManager _mouseManager
    • _minDepthBits

      protected static int _minDepthBits
    • _minAlphaBits

      protected static int _minAlphaBits
    • _minStencilBits

      protected static int _minStencilBits
  • Constructor Details

    • ArdorBaseApplication

      public ArdorBaseApplication(ArdorCraftGame ardorCraft)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • exit

      public void exit()
    • init

      public void init()
      Specified by:
      init in interface Updater
    • update

      public void update(ReadOnlyTimer timer)
      Specified by:
      update in interface Updater
    • updateLogicalLayer

      protected void updateLogicalLayer(ReadOnlyTimer timer)
    • renderUnto

      public boolean renderUnto(Renderer renderer)
      Specified by:
      renderUnto in interface Scene
      Parameters:
      renderer - the renderer
      Returns:
      true if a render occurred and we should swap the buffers.
    • doPick

      public PickResults doPick(Ray3 pickRay)
      Description copied from interface: Scene
      A scene should be able to handle a pick execution as it is the only thing that has a complete picture of the scenegraph(s).
      Specified by:
      doPick in interface Scene
      Parameters:
      pickRay - the pick ray
      Returns:
      the pick results
    • processPicks

      protected void processPicks(PrimitivePickResults pickResults)
    • quit

      protected void quit(Renderer renderer)
    • getAttributes

      protected static PropertiesGameSettings getAttributes(PropertiesGameSettings settings)
    • registerInputTriggers

      protected void registerInputTriggers()