org.xith3d.render
Class ForegroundRenderPass

java.lang.Object
  extended by org.xith3d.render.RenderPass
      extended by org.xith3d.render.ForegroundRenderPass
All Implemented Interfaces:
org.jagatoo.datatypes.Enableable, org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject

public class ForegroundRenderPass
extends RenderPass

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


Constructor Summary
ForegroundRenderPass(BranchGroup branchGroup, RenderPassConfig config)
          Creates a new RenderPass assotiated with the given BranchGroup.
ForegroundRenderPass(RenderPassConfig config)
          Creates a new RenderPass assotiated with a new BranchGroup.
 
Method Summary
static ForegroundRenderPass createParallel()
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass createParallel(BranchGroup branchGroup)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass createParallel(BranchGroup branchGroup, float frontClipDistance, float backClipDistance)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass createParallel(BranchGroup branchGroup, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass createParallel(BranchGroup branchGroup, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass createParallel(BranchGroup branchGroup, int screenWidth, int screenHeight, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static ForegroundRenderPass createParallel(BranchGroup branchGroup, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass 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 ForegroundRenderPass createParallel(BranchGroup branchGroup, org.openmali.types.twodee.Sized2iRO screenSize, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static ForegroundRenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode, int screenWidth, int screenHeight, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static ForegroundRenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass createParallel(float frontClipDistance, float backClipDistance)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass createParallel(float frontClipDistance, float backClipDistance, float screenScale)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass createParallel(float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass createParallel(int screenWidth, int screenHeight, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static ForegroundRenderPass createParallel(Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass 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 ForegroundRenderPass createParallel(org.openmali.types.twodee.Sized2iRO screenSize, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static ForegroundRenderPass createParallel(View.CameraMode cameraMode)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass createParallel(View.CameraMode cameraMode, float frontClipDistance, float backClipDistance)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass createParallel(View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass createParallel(View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass createParallel(View.CameraMode cameraMode, int screenWidth, int screenHeight, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static ForegroundRenderPass createParallel(View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new parallel RenderPass with the given config parameters.
static ForegroundRenderPass 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 ForegroundRenderPass createParallel(View.CameraMode cameraMode, org.openmali.types.twodee.Sized2iRO screenSize, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static ForegroundRenderPass createPerspective()
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass createPerspective(BranchGroup branchGroup)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass createPerspective(BranchGroup branchGroup, float frontClipDistance, float backClipDistance)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass createPerspective(BranchGroup branchGroup, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass createPerspective(BranchGroup branchGroup, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass createPerspective(BranchGroup branchGroup, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass 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 ForegroundRenderPass createPerspective(BranchGroup branchGroup, View.CameraMode cameraMode)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass createPerspective(BranchGroup branchGroup, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass createPerspective(BranchGroup branchGroup, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass createPerspective(BranchGroup branchGroup, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass createPerspective(BranchGroup branchGroup, View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass 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 ForegroundRenderPass createPerspective(float frontClipDistance, float backClipDistance)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass createPerspective(float frontClipDistance, float backClipDistance, float screenScale)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass createPerspective(float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass createPerspective(Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass 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 ForegroundRenderPass createPerspective(View.CameraMode cameraMode)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass createPerspective(View.CameraMode cameraMode, float frontClipDistance, float backClipDistance)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass createPerspective(View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass createPerspective(View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass createPerspective(View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new perspective RenderPass with the given config parameters.
static ForegroundRenderPass 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 isClipperEnabled()
          
 boolean isFrustumCullingEnabled()
          
 void setClipperEnabled(boolean enabled)
          Enables or disables Clipper for this RenderPass.
 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, isEnabled, isLayeredModeForced, isScissorEnabled, isUnlayeredModeForced, removeRenderCallback, setBranchGroup, 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

ForegroundRenderPass

public ForegroundRenderPass(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

ForegroundRenderPass

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

Parameters:
config - this RenderPass'es configuration
Method Detail

setClipperEnabled

public void setClipperEnabled(boolean enabled)
Enables or disables Clipper for this RenderPass.

Overrides:
setClipperEnabled in class RenderPass

isClipperEnabled

public final boolean isClipperEnabled()

Overrides:
isClipperEnabled in class RenderPass
Returns:
if Clipper is enabled for this RenderPass

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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass createPerspective()
Creates new perspective RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.


createParallel

public static ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass createParallel()
Creates new parallel RenderPass with the given config parameters.
A new BranchGroup is created and assotiated.


createParallel

public static ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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 ForegroundRenderPass 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