org.xith3d.render
Class RenderPass

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

public class RenderPass
extends java.lang.Object
implements org.jagatoo.datatypes.Enableable, org.jagatoo.datatypes.NamableObject

This class holds all information for a render pass.


Constructor Summary
RenderPass(BranchGroup branchGroup, RenderPassConfig config)
          Creates a new RenderPass assotiated with the given BranchGroup.
RenderPass(RenderPassConfig config)
          Creates a new RenderPass assotiated with a new BranchGroup.
 
Method Summary
 void addRenderCallback(RenderCallback callback)
          Adds a RenderCallback to this RenderPass, which is notified in different render stages.
static RenderPass create2D(BranchGroup branchGroup, int resolutionX, int resolutionY)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(BranchGroup branchGroup, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, int resolutionX, int resolutionY)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(BranchGroup branchGroup, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, org.openmali.types.twodee.Sized2iRO resolution)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(BranchGroup branchGroup, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, int resolutionX, int resolutionY)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(BranchGroup branchGroup, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, org.openmali.types.twodee.Sized2iRO resolution)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(BranchGroup branchGroup, org.openmali.types.twodee.Sized2iRO resolution)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(BranchGroup branchGroup, View.CameraMode cameraMode, int resolutionX, int resolutionY)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(BranchGroup branchGroup, View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, int resolutionX, int resolutionY)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(BranchGroup branchGroup, View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, org.openmali.types.twodee.Sized2iRO resolution)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(BranchGroup branchGroup, View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, int resolutionX, int resolutionY)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(BranchGroup branchGroup, View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, org.openmali.types.twodee.Sized2iRO resolution)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(BranchGroup branchGroup, View.CameraMode cameraMode, org.openmali.types.twodee.Sized2iRO resolution)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(int resolutionX, int resolutionY)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, int resolutionX, int resolutionY)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, org.openmali.types.twodee.Sized2iRO resolution)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, int resolutionX, int resolutionY)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, org.openmali.types.twodee.Sized2iRO resolution)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(org.openmali.types.twodee.Sized2iRO resolution)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(View.CameraMode cameraMode, int resolutionX, int resolutionY)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, int resolutionX, int resolutionY)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, org.openmali.types.twodee.Sized2iRO resolution)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, int resolutionX, int resolutionY)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, org.openmali.types.twodee.Sized2iRO resolution)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass create2D(View.CameraMode cameraMode, org.openmali.types.twodee.Sized2iRO resolution)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass createParallel()
          Creates new parallel RenderPass with the given config parameters.
static RenderPass createParallel(BranchGroup branchGroup)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass createParallel(BranchGroup branchGroup, float frontClipDistance, float backClipDistance)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass createParallel(BranchGroup branchGroup, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass createParallel(BranchGroup branchGroup, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass createParallel(BranchGroup branchGroup, int screenWidth, int screenHeight, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static RenderPass createParallel(BranchGroup branchGroup, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass 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 RenderPass createParallel(BranchGroup branchGroup, org.openmali.types.twodee.Sized2iRO screenSize, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static RenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode, int screenWidth, int screenHeight, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static RenderPass createParallel(BranchGroup branchGroup, View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass 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 RenderPass 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 RenderPass createParallel(float frontClipDistance, float backClipDistance)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass createParallel(float frontClipDistance, float backClipDistance, float screenScale)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass createParallel(float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass createParallel(int screenWidth, int screenHeight, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static RenderPass createParallel(Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass 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 RenderPass createParallel(org.openmali.types.twodee.Sized2iRO screenSize, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static RenderPass createParallel(View.CameraMode cameraMode)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass createParallel(View.CameraMode cameraMode, float frontClipDistance, float backClipDistance)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass createParallel(View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass createParallel(View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass createParallel(View.CameraMode cameraMode, int screenWidth, int screenHeight, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static RenderPass createParallel(View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new parallel RenderPass with the given config parameters.
static RenderPass 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 RenderPass createParallel(View.CameraMode cameraMode, org.openmali.types.twodee.Sized2iRO screenSize, boolean moveCenterToUpperLeft)
          Creates a new RenderPass for parallel projection of real-scaled shapes.
static RenderPass createPerspective()
          Creates new perspective RenderPass with the given config parameters.
static RenderPass createPerspective(BranchGroup branchGroup)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass createPerspective(BranchGroup branchGroup, float frontClipDistance, float backClipDistance)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass createPerspective(BranchGroup branchGroup, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass createPerspective(BranchGroup branchGroup, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass createPerspective(BranchGroup branchGroup, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass 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 RenderPass createPerspective(BranchGroup branchGroup, View.CameraMode cameraMode)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass createPerspective(BranchGroup branchGroup, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass createPerspective(BranchGroup branchGroup, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass createPerspective(BranchGroup branchGroup, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass createPerspective(BranchGroup branchGroup, View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass 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 RenderPass createPerspective(float frontClipDistance, float backClipDistance)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass createPerspective(float frontClipDistance, float backClipDistance, float screenScale)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass createPerspective(float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass createPerspective(Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass 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 RenderPass createPerspective(View.CameraMode cameraMode)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass createPerspective(View.CameraMode cameraMode, float frontClipDistance, float backClipDistance)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass createPerspective(View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass createPerspective(View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass createPerspective(View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new perspective RenderPass with the given config parameters.
static RenderPass 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.
protected  RenderBinProvider createRenderBinProvider()
           
 void freeOpenGLResources(Canvas3D canvas)
          This method frees OpenGL resources (names) for all Nodes in the traversal of this Node(-Group).
 void freeOpenGLResources(CanvasPeer canvasPeer)
          This method frees OpenGL resources (names) for all Nodes in the traversal of this Node(-Group).
 BranchGroup getBranchGroup()
           
 RenderPassConfig getConfig()
           
 java.lang.String getName()
          
 RenderBinProvider getRenderBinProvider()
           
 RenderCallback.RenderCallbackNotifier getRenderCallbackNotifier()
           
 RenderTarget getRenderTarget()
           
 Light getShadowCasterLight()
           
 boolean isClipperEnabled()
           
 boolean isEnabled()
           
 boolean isFrustumCullingEnabled()
           
 boolean isLayeredModeForced()
           
 boolean isScissorEnabled()
           
 boolean isUnlayeredModeForced()
           
 void removeRenderCallback(RenderCallback callback)
          Removes a RenderCallback from this RenderPass.
 void setBranchGroup(BranchGroup branchGroup)
          Sets this RenderPass'es BranchGroup.
 void setClipperEnabled(boolean enabled)
          Enables or disables Clipper for this RenderPass.
 void setConfig(RenderPassConfig config)
          Sets the RenderPassConfig for this RenderPass.
 void setEnabled(boolean enabled)
          Enables or disables this RenderPass.
 void setFrustumCullingEnabled(boolean enabled)
          Enables or disables Frustum culling for this RenderPass.
 void setLayeredModeForced(boolean forced)
          Sets this RenderPass to be forced to be rendered in layered mode.
 void setName(java.lang.String name)
          
 void setRenderTarget(RenderTarget renderTarget)
          Sets the RenderTarget for this RenderPass.
 void setScissorEnabled(boolean enabled)
          Enables or disables scissor for this RenderPass.
 void setShadowCasterLight(Light light)
          Sets the Light, which is capable of casting shadows for this RenderPass.
 void setUnlayeredModeForced(boolean forced)
          Sets this RenderPass to be forced to be rendered in non-layered mode.
 boolean switchWireframeMode()
          This is a simple conveniece mode to switch wireframe-mode (enabled/disabled) on the attached RenderPassConfig's RenderOptions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderPass

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

RenderPass

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

Parameters:
config - this RenderPass'es configuration
Method Detail

setName

public void setName(java.lang.String name)

Specified by:
setName in interface org.jagatoo.datatypes.NamableObject

getName

public final java.lang.String getName()

Specified by:
getName in interface org.jagatoo.datatypes.NamedObject

setBranchGroup

public void setBranchGroup(BranchGroup branchGroup)
Sets this RenderPass'es BranchGroup.


getBranchGroup

public BranchGroup getBranchGroup()
Returns:
this RenderPass'es BranchGroup.

setConfig

public void setConfig(RenderPassConfig config)
Sets the RenderPassConfig for this RenderPass.


getConfig

public RenderPassConfig getConfig()
Returns:
the RenderPassConfig for this RenderPass

switchWireframeMode

public boolean switchWireframeMode()
This is a simple conveniece mode to switch wireframe-mode (enabled/disabled) on the attached RenderPassConfig's RenderOptions.

Returns:
the new state.

getRenderBinProvider

public RenderBinProvider getRenderBinProvider()
Returns:
this RenderPass'es RenderBinProvider

addRenderCallback

public final void addRenderCallback(RenderCallback callback)
Adds a RenderCallback to this RenderPass, which is notified in different render stages.

Parameters:
callback -

removeRenderCallback

public final void removeRenderCallback(RenderCallback callback)
Removes a RenderCallback from this RenderPass.

Parameters:
callback -

getRenderCallbackNotifier

public final RenderCallback.RenderCallbackNotifier getRenderCallbackNotifier()
Returns:
a notifier for the RenderCallbacks.

setRenderTarget

public void setRenderTarget(RenderTarget renderTarget)
Sets the RenderTarget for this RenderPass.
Use null for the default frame buffer.

Parameters:
renderTarget -

getRenderTarget

public RenderTarget getRenderTarget()
Returns:
the RenderTarget for this RenderPass.
This is null for the default frame buffer.

setClipperEnabled

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

Parameters:
enabled -

isClipperEnabled

public boolean isClipperEnabled()
Returns:
if Clipper is enabled for this RenderPass

setScissorEnabled

public void setScissorEnabled(boolean enabled)
Enables or disables scissor for this RenderPass.

Parameters:
enabled -

isScissorEnabled

public boolean isScissorEnabled()
Returns:
if scissor is enabled for this RenderPass

setFrustumCullingEnabled

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

Parameters:
enabled -

isFrustumCullingEnabled

public boolean isFrustumCullingEnabled()
Returns:
if Frustum culling is enabled for this RenderPass

setLayeredModeForced

public void setLayeredModeForced(boolean forced)
Sets this RenderPass to be forced to be rendered in layered mode.
If the Renderer is set up to render in layered mode, this flag is ignored.

Parameters:
forced -

isLayeredModeForced

public boolean isLayeredModeForced()
Returns:
if this RenderPass is forced to be rendered in layered mode.
If the Renderer is set up to render in layered mode, this flag is ignored.

setUnlayeredModeForced

public void setUnlayeredModeForced(boolean forced)
Sets this RenderPass to be forced to be rendered in non-layered mode.
If the Renderer is set up to render in non-layered mode, this flag is ignored.

Parameters:
forced -

isUnlayeredModeForced

public boolean isUnlayeredModeForced()
Returns:
if this RenderPass is forced to be rendered in non-layered mode.
If the Renderer is set up to render in non-layered mode, this flag is ignored.

setEnabled

public void setEnabled(boolean enabled)
Enables or disables this RenderPass.

Specified by:
setEnabled in interface org.jagatoo.datatypes.Enableable
Parameters:
enabled -

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface org.jagatoo.datatypes.Enableable
Returns:
if this RenderPass is enabled

setShadowCasterLight

public void setShadowCasterLight(Light light)
Sets the Light, which is capable of casting shadows for this RenderPass.


getShadowCasterLight

public final Light getShadowCasterLight()
Returns:
the Light, which is capable of casting shadows for this RenderPass.

freeOpenGLResources

public void freeOpenGLResources(CanvasPeer canvasPeer)
This method frees OpenGL resources (names) for all Nodes in the traversal of this Node(-Group).

Parameters:
canvasPeer -

freeOpenGLResources

public final void freeOpenGLResources(Canvas3D canvas)
This method frees OpenGL resources (names) for all Nodes in the traversal of this Node(-Group).

Parameters:
canvas -

createRenderBinProvider

protected RenderBinProvider createRenderBinProvider()

createPerspective

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


createParallel

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


createParallel

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

create2D

public static RenderPass create2D(BranchGroup branchGroup,
                                  View.CameraMode cameraMode,
                                  Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                  float frontClipDistance,
                                  float backClipDistance,
                                  int resolutionX,
                                  int resolutionY)
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
resolutionX - the x-resolution of the screen
resolutionY - the y-resolution of the screen

create2D

public static RenderPass create2D(BranchGroup branchGroup,
                                  View.CameraMode cameraMode,
                                  Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                  float frontClipDistance,
                                  float backClipDistance,
                                  org.openmali.types.twodee.Sized2iRO resolution)
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
resolution - the resolution of the screen

create2D

public static RenderPass create2D(BranchGroup branchGroup,
                                  View.CameraMode cameraMode,
                                  Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                  int resolutionX,
                                  int resolutionY)
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
resolutionX - the x-resolution of the screen
resolutionY - the y-resolution of the screen

create2D

public static RenderPass create2D(BranchGroup branchGroup,
                                  View.CameraMode cameraMode,
                                  Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                  org.openmali.types.twodee.Sized2iRO resolution)
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
resolution - the resolution of the screen

create2D

public static RenderPass create2D(BranchGroup branchGroup,
                                  View.CameraMode cameraMode,
                                  int resolutionX,
                                  int resolutionY)
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
resolutionX - the x-resolution of the screen
resolutionY - the y-resolution of the screen

create2D

public static RenderPass create2D(BranchGroup branchGroup,
                                  View.CameraMode cameraMode,
                                  org.openmali.types.twodee.Sized2iRO resolution)
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
resolution - the resolution of the screen

create2D

public static RenderPass create2D(BranchGroup branchGroup,
                                  Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                  float frontClipDistance,
                                  float backClipDistance,
                                  int resolutionX,
                                  int resolutionY)
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
resolutionX - the x-resolution of the screen
resolutionY - the y-resolution of the screen

create2D

public static RenderPass create2D(BranchGroup branchGroup,
                                  Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                  float frontClipDistance,
                                  float backClipDistance,
                                  org.openmali.types.twodee.Sized2iRO resolution)
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
resolution - the resolution of the screen

create2D

public static RenderPass create2D(BranchGroup branchGroup,
                                  Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                  int resolutionX,
                                  int resolutionY)
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
resolutionX - the x-resolution of the screen
resolutionY - the y-resolution of the screen

create2D

public static RenderPass create2D(BranchGroup branchGroup,
                                  Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                  org.openmali.types.twodee.Sized2iRO resolution)
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
resolution - the resolution of the screen

create2D

public static RenderPass create2D(BranchGroup branchGroup,
                                  int resolutionX,
                                  int resolutionY)
Creates new parallel RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
resolutionX - the x-resolution of the screen
resolutionY - the y-resolution of the screen

create2D

public static RenderPass create2D(BranchGroup branchGroup,
                                  org.openmali.types.twodee.Sized2iRO resolution)
Creates new parallel RenderPass with the given config parameters.

Parameters:
branchGroup - the BranchGroup the use for the new RenderPass
resolution - the resolution of the screen

create2D

public static RenderPass create2D(View.CameraMode cameraMode,
                                  Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                  float frontClipDistance,
                                  float backClipDistance,
                                  int resolutionX,
                                  int resolutionY)
Creates new parallel RenderPass with the given config parameters.

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
resolutionX - the x-resolution of the screen
resolutionY - the y-resolution of the screen

create2D

public static RenderPass create2D(View.CameraMode cameraMode,
                                  Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                  float frontClipDistance,
                                  float backClipDistance,
                                  org.openmali.types.twodee.Sized2iRO resolution)
Creates new parallel RenderPass with the given config parameters.

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
resolution - the resolution of the screen

create2D

public static RenderPass create2D(View.CameraMode cameraMode,
                                  Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                  int resolutionX,
                                  int resolutionY)
Creates new parallel RenderPass with the given config parameters.

Parameters:
cameraMode - the CameraMode to use for the new RenderPass
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes
resolutionX - the x-resolution of the screen
resolutionY - the y-resolution of the screen

create2D

public static RenderPass create2D(View.CameraMode cameraMode,
                                  Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                  org.openmali.types.twodee.Sized2iRO resolution)
Creates new parallel RenderPass with the given config parameters.

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

create2D

public static RenderPass create2D(View.CameraMode cameraMode,
                                  int resolutionX,
                                  int resolutionY)
Creates new parallel RenderPass with the given config parameters.

Parameters:
cameraMode - the CameraMode to use for the new RenderPass
resolutionX - the x-resolution of the screen
resolutionY - the y-resolution of the screen

create2D

public static RenderPass create2D(View.CameraMode cameraMode,
                                  org.openmali.types.twodee.Sized2iRO resolution)
Creates new parallel RenderPass with the given config parameters.

Parameters:
cameraMode - the CameraMode to use for the new RenderPass
resolution - the resolution of the screen

create2D

public static RenderPass create2D(Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                  float frontClipDistance,
                                  float backClipDistance,
                                  int resolutionX,
                                  int resolutionY)
Creates new parallel RenderPass with the given config parameters.

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
resolutionX - the x-resolution of the screen
resolutionY - the y-resolution of the screen

create2D

public static RenderPass create2D(Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                  float frontClipDistance,
                                  float backClipDistance,
                                  org.openmali.types.twodee.Sized2iRO resolution)
Creates new parallel RenderPass with the given config parameters.

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
resolution - the resolution of the screen

create2D

public static RenderPass create2D(Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                  int resolutionX,
                                  int resolutionY)
Creates new parallel RenderPass with the given config parameters.

Parameters:
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes
resolutionX - the x-resolution of the screen
resolutionY - the y-resolution of the screen

create2D

public static RenderPass create2D(Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                                  Renderer.TransparentSortingPolicy transparentSortingPolicy,
                                  org.openmali.types.twodee.Sized2iRO resolution)
Creates new parallel RenderPass with the given config parameters.

Parameters:
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes
resolution - the resolution of the screen

create2D

public static RenderPass create2D(int resolutionX,
                                  int resolutionY)
Creates new parallel RenderPass with the given config parameters.

Parameters:
resolutionX - the x-resolution of the screen
resolutionY - the y-resolution of the screen

create2D

public static RenderPass create2D(org.openmali.types.twodee.Sized2iRO resolution)
Creates new parallel RenderPass with the given config parameters.

Parameters:
resolution - the resolution of the screen