Package org.ngengine

Interface ViewPortManager

All Known Implementing Classes:
Jme3ViewPortManager

public interface ViewPortManager
Get and manage ViewPorts in the application.
  • Method Details

    • getMainSceneViewPort

      ViewPort getMainSceneViewPort()
      Get the main scene ViewPort.
      Returns:
      the main scene ViewPort
    • getGuiViewPort

      ViewPort getGuiViewPort()
      Get the GUI ViewPort.
      Returns:
      the GUI ViewPort
    • getSceneViewPorts

      List<ViewPort> getSceneViewPorts()
      Get all scene ViewPorts (read-only).
      Returns:
      the list of scene ViewPorts
    • createNewSceneViewPort

      ViewPort createNewSceneViewPort(String name, Camera cam)
      Create a new scene ViewPort with the given name and camera.
      Parameters:
      name - the name of the ViewPort
      cam - the camera to use
      Returns:
      the created ViewPort
    • getFilterPostProcessor

      FilterPostProcessor getFilterPostProcessor(ViewPort vp)
      Get and create if needed a FilterPostProcessor for the given ViewPort.
      Parameters:
      vp - the ViewPort
      Returns:
      the FilterPostProcessor
    • getRootNode

      default Node getRootNode(ViewPort vp)
      Get the first scene node of the ViewPort. This is usually the root node of the scene graph.
      Parameters:
      vp - the ViewPort instance
      Returns:
      the root node of the scene graph
      See Also: