Class JoglBasicExample

java.lang.Object
com.ardor3d.example.basic.JoglBasicExample
All Implemented Interfaces:
Scene

public class JoglBasicExample extends Object implements Scene

This jogl-based example is meant to show how to use Ardor3D at the most primitive level, forsaking the use of ExampleBase and much of our framework classes and interfaces.

Also of note, this example does not allow choosing of properties on launch. It also does not handle input or show any special debugging. This is to simplify the example to the basic essentials.

  • Constructor Details

    • JoglBasicExample

      public JoglBasicExample()
      Constructs the example class, also creating the native window and GL surface.
  • Method Details

    • main

      public static void main(String[] args)
    • 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