Package org.ngengine
Interface ViewPortManager
- All Known Implementing Classes:
Jme3ViewPortManager
public interface ViewPortManager
Get and manage ViewPorts in the application.
-
Method Summary
Modifier and TypeMethodDescriptioncreateNewSceneViewPort
(String name, Camera cam) Create a new scene ViewPort with the given name and camera.Get and create if needed a FilterPostProcessor for the given ViewPort.Get the GUI ViewPort.Get the main scene ViewPort.default Node
getRootNode
(ViewPort vp) Get the first scene node of the ViewPort.Get all scene ViewPorts (read-only).
-
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
Get all scene ViewPorts (read-only).- Returns:
- the list of scene ViewPorts
-
createNewSceneViewPort
Create a new scene ViewPort with the given name and camera.- Parameters:
name
- the name of the ViewPortcam
- the camera to use- Returns:
- the created ViewPort
-
getFilterPostProcessor
Get and create if needed a FilterPostProcessor for the given ViewPort.- Parameters:
vp
- the ViewPort- Returns:
- the FilterPostProcessor
-
getRootNode
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:
-