org.xith3d.render
Class BackgroundRenderPass

java.lang.Object
  extended by org.xith3d.render.RenderPass
      extended by org.xith3d.render.BackgroundRenderPass
All Implemented Interfaces:
org.jagatoo.datatypes.Enableable, org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject
Direct Known Subclasses:
BackgroundImage, SkyBox, SkyGeoHemisphere, SkyGeoSphere, SkySphere

public class BackgroundRenderPass
extends RenderPass

This is a simple RenderPass extension, that automatically sets up itself to be rendered in the foreground.


Constructor Summary
BackgroundRenderPass(BranchGroup branchGroup, RenderPassConfig config)
          Creates a new RenderPass assotiated with the given BranchGroup.
BackgroundRenderPass(RenderPassConfig config)
          Creates a new RenderPass assotiated with a new BranchGroup.
 
Method Summary
static BackgroundRenderPass createParallel()
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(BranchGroup branchGroup)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(BranchGroup branchGroup, float frontClipDistance, float backClipDistance)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(BranchGroup branchGroup, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(BranchGroup branchGroup, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(BranchGroup branchGroup, int screenWidth, int screenHeight, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static BackgroundRenderPass createParallel(BranchGroup branchGroup, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(BranchGroup branchGroup, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(BranchGroup branchGroup, org.openmali.types.twodee.Sized2iRO screenSize, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static BackgroundRenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode, int screenWidth, int screenHeight, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static BackgroundRenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode, org.openmali.types.twodee.Sized2iRO screenSize, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static BackgroundRenderPass createParallel(float frontClipDistance, float backClipDistance)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(float frontClipDistance, float backClipDistance, float screenScale)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(int screenWidth, int screenHeight, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static BackgroundRenderPass createParallel(Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(org.openmali.types.twodee.Sized2iRO screenSize, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static BackgroundRenderPass createParallel(View.CameraMode cameraMode)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(View.CameraMode cameraMode, float frontClipDistance, float backClipDistance)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(View.CameraMode cameraMode, int screenWidth, int screenHeight, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static BackgroundRenderPass createParallel(View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new parallel RenderPass with the given config parameters.
static BackgroundRenderPass createParallel(View.CameraMode cameraMode, org.openmali.types.twodee.Sized2iRO screenSize, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static BackgroundRenderPass createPerspective()
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(BranchGroup branchGroup)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(BranchGroup branchGroup, float frontClipDistance, float backClipDistance)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(BranchGroup branchGroup, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(BranchGroup branchGroup, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(BranchGroup branchGroup, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(BranchGroup branchGroup, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(BranchGroup branchGroup, View.CameraMode cameraMode)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(BranchGroup branchGroup, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(BranchGroup branchGroup, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(BranchGroup branchGroup, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(BranchGroup branchGroup, View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(BranchGroup branchGroup, View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(float frontClipDistance, float backClipDistance)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(float frontClipDistance, float backClipDistance, float screenScale)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(View.CameraMode cameraMode)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(View.CameraMode cameraMode, float frontClipDistance, float backClipDistance)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new perspective RenderPass with the given config parameters.
static BackgroundRenderPass createPerspective(View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new perspective RenderPass with the given config parameters.
 boolean isFrustumCullingEnabled()
          
 void setFrustumCullingEnabled(boolean enabled)
          Enables or disables Frustum culling for this RenderPass.
 
Methods inherited from class org.xith3d.render.RenderPass
addRenderCallback, create2D, create2D, create2D, create2D, create2D, create2D, create2D, create2D, create2D, create2D, create2D, create2D, create2D, create2D, create2D, create2D, create2D, create2D, create2D, create2D, create2D, create2D, create2D, create2D, createRenderBinProvider, freeOpenGLResources, freeOpenGLResources, getBranchGroup, getConfig, getName, getRenderBinProvider, getRenderCallbackNotifier, getRenderTarget, getShadowCasterLight, isClipperEnabled, isEnabled, isLayeredModeForced, isScissorEnabled, isUnlayeredModeForced, removeRenderCallback, setBranchGroup, setClipperEnabled, setConfig, setEnabled, setLayeredModeForced, setName, setRenderTarget, setScissorEnabled, setShadowCasterLight, setUnlayeredModeForced, switchWireframeMode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackgroundRenderPass

public BackgroundRenderPass(BranchGroup branchGroup,
                            RenderPassConfig config)
Creates a new RenderPass assotiated with the given BranchGroup.

Parameters:
branchGroup - the BranchGroup assotiated with this RenderPass
config - this RenderPass'es configuration

BackgroundRenderPass

public BackgroundRenderPass(RenderPassConfig config)
Creates a new RenderPass assotiated with a new BranchGroup.

Parameters:
config - this RenderPass'es configuration
Method Detail

setFrustumCullingEnabled

public void setFrustumCullingEnabled(boolean enabled)
Enables or disables Frustum culling for this RenderPass.

Overrides:
setFrustumCullingEnabled in class RenderPass

isFrustumCullingEnabled

public final boolean isFrustumCullingEnabled()

Overrides:
isFrustumCullingEnabled in class RenderPass
Returns:
if Frustum culling is enabled for this RenderPass

createPerspective

public static BackgroundRenderPass createPerspective(BranchGroup branchGroup,
                                                     View.CameraMode cameraMode,
                                                     Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                                     Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                                     float frontClipDistance,
                                                     float backClipDistance,
                                                     float screenScale,
                                                     float fieldOfView)
Creates new perspective RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
cameraMode - the CameraMode to use for the new RenderPass
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set
fieldOfView - the field of view to set

createPerspective

public static BackgroundRenderPass createPerspective(BranchGroup branchGroup,
                                                     Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                                     Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                                     float frontClipDistance,
                                                     float backClipDistance,
                                                     float screenScale,
                                                     float fieldOfView)
Creates new perspective RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set
fieldOfView - the field of view to set

createPerspective

public static BackgroundRenderPass createPerspective(View.CameraMode cameraMode,
                                                     Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                                     Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                                     float frontClipDistance,
                                                     float backClipDistance,
                                                     float screenScale,
                                                     float fieldOfView)
Creates new perspective RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
cameraMode - the CameraMode to use for the new RenderPass
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set
fieldOfView - the field of view to set

createPerspective

public static BackgroundRenderPass createPerspective(Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                                     Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                                     float frontClipDistance,
                                                     float backClipDistance,
                                                     float screenScale,
                                                     float fieldOfView)
Creates new perspective RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set
fieldOfView - the field of view to set

createPerspective

public static BackgroundRenderPass createPerspective(BranchGroup branchGroup,
                                                     View.CameraMode cameraMode,
                                                     float frontClipDistance,
                                                     float backClipDistance,
                                                     float screenScale,
                                                     float fieldOfView)
Creates new perspective RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
cameraMode - the CameraMode to use for the new RenderPass
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set
fieldOfView - the field of view to set

createPerspective

public static BackgroundRenderPass createPerspective(BranchGroup branchGroup,
                                                     float frontClipDistance,
                                                     float backClipDistance,
                                                     float screenScale,
                                                     float fieldOfView)
Creates new perspective RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set
fieldOfView - the field of view to set

createPerspective

public static BackgroundRenderPass createPerspective(View.CameraMode cameraMode,
                                                     float frontClipDistance,
                                                     float backClipDistance,
                                                     float screenScale,
                                                     float fieldOfView)
Creates new perspective RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
cameraMode - the CameraMode to use for the new RenderPass
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set
fieldOfView - the field of view to set

createPerspective

public static BackgroundRenderPass createPerspective(float frontClipDistance,
                                                     float backClipDistance,
                                                     float screenScale,
                                                     float fieldOfView)
Creates new perspective RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set
fieldOfView - the field of view to set

createPerspective

public static BackgroundRenderPass createPerspective(BranchGroup branchGroup,
                                                     View.CameraMode cameraMode,
                                                     float frontClipDistance,
                                                     float backClipDistance,
                                                     float screenScale)
Creates new perspective RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
cameraMode - the CameraMode to use for the new RenderPass
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set

createPerspective

public static BackgroundRenderPass createPerspective(BranchGroup branchGroup,
                                                     float frontClipDistance,
                                                     float backClipDistance,
                                                     float screenScale)
Creates new perspective RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set

createPerspective

public static BackgroundRenderPass createPerspective(View.CameraMode cameraMode,
                                                     float frontClipDistance,
                                                     float backClipDistance,
                                                     float screenScale)
Creates new perspective RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
cameraMode - the CameraMode to use for the new RenderPass
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set

createPerspective

public static BackgroundRenderPass createPerspective(float frontClipDistance,
                                                     float backClipDistance,
                                                     float screenScale)
Creates new perspective RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set

createPerspective

public static BackgroundRenderPass createPerspective(BranchGroup branchGroup,
                                                     View.CameraMode cameraMode,
                                                     float frontClipDistance,
                                                     float backClipDistance)
Creates new perspective RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
cameraMode - the CameraMode to use for the new RenderPass
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set

createPerspective

public static BackgroundRenderPass createPerspective(BranchGroup branchGroup,
                                                     float frontClipDistance,
                                                     float backClipDistance)
Creates new perspective RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set

createPerspective

public static BackgroundRenderPass createPerspective(View.CameraMode cameraMode,
                                                     float frontClipDistance,
                                                     float backClipDistance)
Creates new perspective RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
cameraMode - the CameraMode to use for the new RenderPass
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set

createPerspective

public static BackgroundRenderPass createPerspective(float frontClipDistance,
                                                     float backClipDistance)
Creates new perspective RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set

createPerspective

public static BackgroundRenderPass createPerspective(BranchGroup branchGroup,
                                                     View.CameraMode cameraMode,
                                                     Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                                     Renderer.TransparentSortingPolicy transparentSortingPolicy)
Creates new perspective RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
cameraMode - the CameraMode to use for the new RenderPass
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes

createPerspective

public static BackgroundRenderPass createPerspective(BranchGroup branchGroup,
                                                     Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                                     Renderer.TransparentSortingPolicy transparentSortingPolicy)
Creates new perspective RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes

createPerspective

public static BackgroundRenderPass createPerspective(View.CameraMode cameraMode,
                                                     Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                                     Renderer.TransparentSortingPolicy transparentSortingPolicy)
Creates new perspective RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
cameraMode - the CameraMode to use for the new RenderPass
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes

createPerspective

public static BackgroundRenderPass createPerspective(Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                                     Renderer.TransparentSortingPolicy transparentSortingPolicy)
Creates new perspective RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes

createPerspective

public static BackgroundRenderPass createPerspective(BranchGroup branchGroup,
                                                     View.CameraMode cameraMode)
Creates new perspective RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
cameraMode - the CameraMode to use for the new RenderPass

createPerspective

public static BackgroundRenderPass createPerspective(BranchGroup branchGroup)
Creates new perspective RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass

createPerspective

public static BackgroundRenderPass createPerspective(View.CameraMode cameraMode)
Creates new perspective RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
cameraMode - the CameraMode to use for the new RenderPass

createPerspective

public static BackgroundRenderPass createPerspective()
Creates new perspective RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.


createParallel

public static BackgroundRenderPass createParallel(BranchGroup branchGroup,
                                                  View.CameraMode cameraMode,
                                                  Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                                  float frontClipDistance,
                                                  float backClipDistance,
                                                  float screenScale,
                                                  float fieldOfView)
Creates new parallel RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
cameraMode - the CameraMode to use for the new RenderPass
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set
fieldOfView - the field of view to set

createParallel

public static BackgroundRenderPass createParallel(BranchGroup branchGroup,
                                                  Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                                  float frontClipDistance,
                                                  float backClipDistance,
                                                  float screenScale,
                                                  float fieldOfView)
Creates new parallel RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set
fieldOfView - the field of view to set

createParallel

public static BackgroundRenderPass createParallel(View.CameraMode cameraMode,
                                                  Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                                  float frontClipDistance,
                                                  float backClipDistance,
                                                  float screenScale,
                                                  float fieldOfView)
Creates new parallel RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
cameraMode - the CameraMode to use for the new RenderPass
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set
fieldOfView - the field of view to set

createParallel

public static BackgroundRenderPass createParallel(Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                                  float frontClipDistance,
                                                  float backClipDistance,
                                                  float screenScale,
                                                  float fieldOfView)
Creates new parallel RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set
fieldOfView - the field of view to set

createParallel

public static BackgroundRenderPass createParallel(BranchGroup branchGroup,
                                                  View.CameraMode cameraMode,
                                                  float frontClipDistance,
                                                  float backClipDistance,
                                                  float screenScale,
                                                  float fieldOfView)
Creates new parallel RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
cameraMode - the CameraMode to use for the new RenderPass
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set
fieldOfView - the field of view to set

createParallel

public static BackgroundRenderPass createParallel(BranchGroup branchGroup,
                                                  float frontClipDistance,
                                                  float backClipDistance,
                                                  float screenScale,
                                                  float fieldOfView)
Creates new parallel RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set
fieldOfView - the field of view to set

createParallel

public static BackgroundRenderPass createParallel(View.CameraMode cameraMode,
                                                  float frontClipDistance,
                                                  float backClipDistance,
                                                  float screenScale,
                                                  float fieldOfView)
Creates new parallel RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
cameraMode - the CameraMode to use for the new RenderPass
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set
fieldOfView - the field of view to set

createParallel

public static BackgroundRenderPass createParallel(float frontClipDistance,
                                                  float backClipDistance,
                                                  float screenScale,
                                                  float fieldOfView)
Creates new parallel RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set
fieldOfView - the field of view to set

createParallel

public static BackgroundRenderPass createParallel(BranchGroup branchGroup,
                                                  View.CameraMode cameraMode,
                                                  float frontClipDistance,
                                                  float backClipDistance,
                                                  float screenScale)
Creates new parallel RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
cameraMode - the CameraMode to use for the new RenderPass
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set

createParallel

public static BackgroundRenderPass createParallel(BranchGroup branchGroup,
                                                  float frontClipDistance,
                                                  float backClipDistance,
                                                  float screenScale)
Creates new parallel RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set

createParallel

public static BackgroundRenderPass createParallel(View.CameraMode cameraMode,
                                                  float frontClipDistance,
                                                  float backClipDistance,
                                                  float screenScale)
Creates new parallel RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
cameraMode - the CameraMode to use for the new RenderPass
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set

createParallel

public static BackgroundRenderPass createParallel(float frontClipDistance,
                                                  float backClipDistance,
                                                  float screenScale)
Creates new parallel RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set

createParallel

public static BackgroundRenderPass createParallel(BranchGroup branchGroup,
                                                  View.CameraMode cameraMode,
                                                  float frontClipDistance,
                                                  float backClipDistance)
Creates new parallel RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
cameraMode - the CameraMode to use for the new RenderPass
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set

createParallel

public static BackgroundRenderPass createParallel(BranchGroup branchGroup,
                                                  float frontClipDistance,
                                                  float backClipDistance)
Creates new parallel RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set

createParallel

public static BackgroundRenderPass createParallel(View.CameraMode cameraMode,
                                                  float frontClipDistance,
                                                  float backClipDistance)
Creates new parallel RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
cameraMode - the CameraMode to use for the new RenderPass
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set

createParallel

public static BackgroundRenderPass createParallel(float frontClipDistance,
                                                  float backClipDistance)
Creates new parallel RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set

createParallel

public static BackgroundRenderPass createParallel(BranchGroup branchGroup,
                                                  View.CameraMode cameraMode,
                                                  Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                                  Renderer.TransparentSortingPolicy transparentSortingPolicy)
Creates new parallel RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
cameraMode - the CameraMode to use for the new RenderPass
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes

createParallel

public static BackgroundRenderPass createParallel(BranchGroup branchGroup,
                                                  Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                                  Renderer.TransparentSortingPolicy transparentSortingPolicy)
Creates new parallel RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes

createParallel

public static BackgroundRenderPass createParallel(View.CameraMode cameraMode,
                                                  Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                                  Renderer.TransparentSortingPolicy transparentSortingPolicy)
Creates new parallel RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
cameraMode - the CameraMode to use for the new RenderPass
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes

createParallel

public static BackgroundRenderPass createParallel(Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                                  Renderer.TransparentSortingPolicy transparentSortingPolicy)
Creates new parallel RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes

createParallel

public static BackgroundRenderPass createParallel(BranchGroup branchGroup,
                                                  View.CameraMode cameraMode)
Creates new parallel RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
cameraMode - the CameraMode to use for the new RenderPass

createParallel

public static BackgroundRenderPass createParallel(BranchGroup branchGroup)
Creates new parallel RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass

createParallel

public static BackgroundRenderPass createParallel(View.CameraMode cameraMode)
Creates new parallel RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.

Parameters:
cameraMode - the CameraMode to use for the new RenderPass

createParallel

public static BackgroundRenderPass createParallel()
Creates new parallel RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.


createParallel

public static BackgroundRenderPass createParallel(BranchGroup branchGroup,
                                                  View.CameraMode cameraMode,
                                                  int screenWidth,
                                                  int screenHeight,
                                                  boolean moveCenterToUpperLeft)
Creates a new RenderPass for parallel projection of real-scaled shapes.

Parameters:
branchGroup -
cameraMode - the CameraMode to use for the new RenderPass
screenWidth -
screenHeight -
moveCenterToUpperLeft -
Returns:
the new RenderPass

createParallel

public static BackgroundRenderPass createParallel(BranchGroup branchGroup,
                                                  int screenWidth,
                                                  int screenHeight,
                                                  boolean moveCenterToUpperLeft)
Creates a new RenderPass for parallel projection of real-scaled shapes.

Parameters:
branchGroup -
screenWidth -
screenHeight -
moveCenterToUpperLeft -
Returns:
the new RenderPass

createParallel

public static BackgroundRenderPass createParallel(BranchGroup branchGroup,
                                                  View.CameraMode cameraMode,
                                                  org.openmali.types.twodee.Sized2iRO screenSize,
                                                  boolean moveCenterToUpperLeft)
Creates a new RenderPass for parallel projection of real-scaled shapes.

Parameters:
branchGroup -
cameraMode - the CameraMode to use for the new RenderPass
screenSize -
moveCenterToUpperLeft -
Returns:
the new RenderPass

createParallel

public static BackgroundRenderPass createParallel(BranchGroup branchGroup,
                                                  org.openmali.types.twodee.Sized2iRO screenSize,
                                                  boolean moveCenterToUpperLeft)
Creates a new RenderPass for parallel projection of real-scaled shapes.

Parameters:
branchGroup -
screenSize -
moveCenterToUpperLeft -
Returns:
the new RenderPass

createParallel

public static BackgroundRenderPass createParallel(View.CameraMode cameraMode,
                                                  int screenWidth,
                                                  int screenHeight,
                                                  boolean moveCenterToUpperLeft)
Creates a new RenderPass for parallel projection of real-scaled shapes.

Parameters:
cameraMode - the CameraMode to use for the new RenderPass
screenWidth -
screenHeight -
moveCenterToUpperLeft -
Returns:
the new RenderPass

createParallel

public static BackgroundRenderPass createParallel(int screenWidth,
                                                  int screenHeight,
                                                  boolean moveCenterToUpperLeft)
Creates a new RenderPass for parallel projection of real-scaled shapes.

Parameters:
screenWidth -
screenHeight -
moveCenterToUpperLeft -
Returns:
the new RenderPass

createParallel

public static BackgroundRenderPass createParallel(View.CameraMode cameraMode,
                                                  org.openmali.types.twodee.Sized2iRO screenSize,
                                                  boolean moveCenterToUpperLeft)
Creates a new RenderPass for parallel projection of real-scaled shapes.

Parameters:
cameraMode - the CameraMode to use for the new RenderPass
screenSize -
moveCenterToUpperLeft -
Returns:
the new RenderPass

createParallel

public static BackgroundRenderPass createParallel(org.openmali.types.twodee.Sized2iRO screenSize,
                                                  boolean moveCenterToUpperLeft)
Creates a new RenderPass for parallel projection of real-scaled shapes.

Parameters:
screenSize -
moveCenterToUpperLeft -
Returns:
the new RenderPass