org.xith3d.render
Class BaseRenderPassConfig

java.lang.Object
  extended by org.xith3d.render.BaseRenderPassConfig
All Implemented Interfaces:
RenderPassConfig

public class BaseRenderPassConfig
extends java.lang.Object
implements RenderPassConfig

This class holds all information necessary to configure a render pass.


Field Summary
 
Fields inherited from interface org.xith3d.render.RenderPassConfig
DEFAULT_CAMERA_MODE, DEFAULT_PROJECTION_POLICY
 
Constructor Summary
BaseRenderPassConfig()
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(org.openmali.types.twodee.Rect2i viewport)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(RenderPassConfig template)
          Clone constructor
BaseRenderPassConfig(View.CameraMode cameraMode)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.CameraMode cameraMode, org.openmali.types.twodee.Rect2i viewport)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, float frontClipDistance, float backClipDistance)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView, org.openmali.types.twodee.Rect2i viewport)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, float frontClipDistance, float backClipDistance, float screenScale, org.openmali.types.twodee.Rect2i viewport)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, float frontClipDistance, float backClipDistance, org.openmali.types.twodee.Rect2i viewport)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, org.openmali.types.twodee.Rect2i viewport)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView, org.openmali.types.twodee.Rect2i viewport)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView, org.openmali.types.twodee.Rect2i viewport, Transform3D viewTransform)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, org.openmali.types.twodee.Rect2i viewport)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, View.CameraMode cameraMode)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView, org.openmali.types.twodee.Rect2i viewport)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, float screenScale, org.openmali.types.twodee.Rect2i viewport)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, View.CameraMode cameraMode, float frontClipDistance, float backClipDistance, org.openmali.types.twodee.Rect2i viewport)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, View.CameraMode cameraMode, org.openmali.types.twodee.Rect2i viewport)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView, org.openmali.types.twodee.Rect2i viewport)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, float frontClipDistance, float backClipDistance, float screenScale, float fieldOfView, org.openmali.types.twodee.Rect2i viewport, Transform3D viewTransform)
          Creates new RenderPassConfig with the given parameters.
BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy, View.CameraMode cameraMode, Renderer.OpaqueSortingPolicy opaqueSortingPolicy, Renderer.TransparentSortingPolicy transparentSortingPolicy, org.openmali.types.twodee.Rect2i viewport)
          Creates new RenderPassConfig with the given parameters.
 
Method Summary
 float getBackClipDistance()
          
 View.CameraMode getCameraMode()
           
 org.openmali.vecmath2.Tuple2f getCenterOfView()
          
 int getColorMask()
           
 float getFieldOfView()
          
 float getFrontClipDistance()
          
 RenderBinSorter getOpaqueSorter()
          
 Renderer.OpaqueSortingPolicy getOpaqueSortingPolicy()
          
 View.ProjectionPolicy getProjectionPolicy()
          
 RenderOptions getRenderOptions()
          
 float getScreenScale()
          
 RenderBinSorter getTransparentSorter()
          
 Renderer.TransparentSortingPolicy getTransparentSortingPolicy()
          
 org.openmali.types.twodee.Rect2i getViewport()
          
 Transform3D getViewTransform()
          
 void set(RenderPassConfig template)
          Sets this RenderPassConfigProvider to the values of the template.
 void setBackClipDistance(float backClipDistance)
          Sets the back clip distance.
 void setCameraMode(View.CameraMode cameraMode)
          Sets the camera mode for this RenderPass.
 void setCenterOfView(org.openmali.vecmath2.Tuple2f cov)
          Sets the center of the View.
 void setColorMask(boolean enableRed, boolean enableGreen, boolean enableBlue, boolean enableAlpha)
          Sets the color-mask.
 void setColorMask(int colorMask)
          Sets the color-mask as a bit-mask (red = 1/1, green = 2/2, blue = 3/4, alpha = 4/8).
 void setFieldOfView(float fov)
          Sets the field of view.
 void setFrontClipDistance(float frontClipDistance)
          Sets the front clip distance.
 void setOpaqueSorter(RenderBinSorter sorter)
          Sets the opaque RenderBinSorter for this RenderPass.
 void setOpaqueSortingPolicy(Renderer.OpaqueSortingPolicy policy)
          Sets the opaque sorting policy for this RenderPass.
 void setProjectionPolicy(View.ProjectionPolicy policy)
          Sets the projection policy.
 void setRenderOptions(RenderOptions renderOptions)
          Sets the RenderOptions for this RenderPass.
 void setScreenScale(float screenScale)
          Sets the screen scale.
 void setTransparentSorter(RenderBinSorter sorter)
          Sets the transparent RenderBinSorter for this RenderPass.
 void setTransparentSortingPolicy(Renderer.TransparentSortingPolicy policy)
          Sets the transparency sorting policy for this RenderPass.
 void setViewport(org.openmali.types.twodee.Rect2i rect)
          Sets the viewport of this RenderPass.
 void setViewTransform(Transform3D viewTransform)
          Sets the View Transform3D for this RenderPass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseRenderPassConfig

public BaseRenderPassConfig(RenderPassConfig template)
Clone constructor

Parameters:
template - the RenderPassConfigProvider to take the values from

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            View.CameraMode cameraMode,
                            Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                            Renderer.TransparentSortingPolicy transparentSortingPolicy,
                            float frontClipDistance,
                            float backClipDistance,
                            float screenScale,
                            float fieldOfView,
                            org.openmali.types.twodee.Rect2i viewport,
                            Transform3D viewTransform)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
cameraMode -
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
viewport - the viewport for this renderpass (null for default viewport)
viewTransform - the View Transform3D for this RenderPass

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                            Renderer.TransparentSortingPolicy transparentSortingPolicy,
                            float frontClipDistance,
                            float backClipDistance,
                            float screenScale,
                            float fieldOfView,
                            org.openmali.types.twodee.Rect2i viewport,
                            Transform3D viewTransform)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
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
viewport - the viewport for this renderpass (null for default viewport)
viewTransform - the View Transform3D for this RenderPass

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            View.CameraMode cameraMode,
                            Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                            Renderer.TransparentSortingPolicy transparentSortingPolicy,
                            float frontClipDistance,
                            float backClipDistance,
                            float screenScale,
                            float fieldOfView,
                            org.openmali.types.twodee.Rect2i viewport)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
cameraMode -
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
viewport - the viewport for this renderpass (null for default viewport)

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                            Renderer.TransparentSortingPolicy transparentSortingPolicy,
                            float frontClipDistance,
                            float backClipDistance,
                            float screenScale,
                            float fieldOfView,
                            org.openmali.types.twodee.Rect2i viewport)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
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
viewport - the viewport for this renderpass (null for default viewport)

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            View.CameraMode cameraMode,
                            Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                            Renderer.TransparentSortingPolicy transparentSortingPolicy,
                            float frontClipDistance,
                            float backClipDistance,
                            float screenScale,
                            float fieldOfView)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
cameraMode -
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

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                            Renderer.TransparentSortingPolicy transparentSortingPolicy,
                            float frontClipDistance,
                            float backClipDistance,
                            float screenScale,
                            float fieldOfView)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
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

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            View.CameraMode cameraMode,
                            float frontClipDistance,
                            float backClipDistance,
                            float screenScale,
                            float fieldOfView,
                            org.openmali.types.twodee.Rect2i viewport)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
cameraMode -
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
viewport - the viewport for this renderpass (null for default viewport)

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            float frontClipDistance,
                            float backClipDistance,
                            float screenScale,
                            float fieldOfView,
                            org.openmali.types.twodee.Rect2i viewport)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
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
viewport - the viewport for this renderpass (null for default viewport)

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            View.CameraMode cameraMode,
                            float frontClipDistance,
                            float backClipDistance,
                            float screenScale,
                            float fieldOfView)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
cameraMode -
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

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            float frontClipDistance,
                            float backClipDistance,
                            float screenScale,
                            float fieldOfView)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
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

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            View.CameraMode cameraMode,
                            float frontClipDistance,
                            float backClipDistance,
                            float screenScale,
                            org.openmali.types.twodee.Rect2i viewport)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
cameraMode -
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set
viewport - the viewport for this renderpass (null for default viewport)

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            float frontClipDistance,
                            float backClipDistance,
                            float screenScale,
                            org.openmali.types.twodee.Rect2i viewport)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set
viewport - the viewport for this renderpass (null for default viewport)

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            View.CameraMode cameraMode,
                            float frontClipDistance,
                            float backClipDistance,
                            float screenScale)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
cameraMode -
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
screenScale - The screen scale to set

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            float frontClipDistance,
                            float backClipDistance,
                            float screenScale)
Creates new RenderPassConfig with the given parameters.

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

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            View.CameraMode cameraMode,
                            float frontClipDistance,
                            float backClipDistance,
                            org.openmali.types.twodee.Rect2i viewport)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
cameraMode -
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
viewport - the viewport for this renderpass (null for default viewport)

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            float frontClipDistance,
                            float backClipDistance,
                            org.openmali.types.twodee.Rect2i viewport)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set
viewport - the viewport for this renderpass (null for default viewport)

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            View.CameraMode cameraMode,
                            float frontClipDistance,
                            float backClipDistance)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
cameraMode -
frontClipDistance - The front clip distance to set
backClipDistance - The back clip distance to set

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            float frontClipDistance,
                            float backClipDistance)
Creates new RenderPassConfig with the given parameters.

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

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            View.CameraMode cameraMode,
                            Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                            Renderer.TransparentSortingPolicy transparentSortingPolicy,
                            org.openmali.types.twodee.Rect2i viewport)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
cameraMode -
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes
viewport - the viewport for this renderpass (null for default viewport)

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                            Renderer.TransparentSortingPolicy transparentSortingPolicy,
                            org.openmali.types.twodee.Rect2i viewport)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes
viewport - the viewport for this renderpass (null for default viewport)

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            View.CameraMode cameraMode,
                            Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                            Renderer.TransparentSortingPolicy transparentSortingPolicy)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
cameraMode -
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            Renderer.OpaqueSortingPolicy opaqueSortingPolicy,
                            Renderer.TransparentSortingPolicy transparentSortingPolicy)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
opaqueSortingPolicy - The sorting policy for opaque shapes
transparentSortingPolicy - The sorting policy for transparent shapes

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            View.CameraMode cameraMode,
                            org.openmali.types.twodee.Rect2i viewport)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
cameraMode -
viewport - the viewport for this renderpass (null for default viewport)

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            org.openmali.types.twodee.Rect2i viewport)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
viewport - the viewport for this renderpass (null for default viewport)

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy,
                            View.CameraMode cameraMode)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set
cameraMode -

BaseRenderPassConfig

public BaseRenderPassConfig(View.ProjectionPolicy projectionPolicy)
Creates new RenderPassConfig with the given parameters.

Parameters:
projectionPolicy - The projection policy to set

BaseRenderPassConfig

public BaseRenderPassConfig(View.CameraMode cameraMode,
                            org.openmali.types.twodee.Rect2i viewport)
Creates new RenderPassConfig with the given parameters.

Parameters:
cameraMode -
viewport - the viewport for this renderpass (null for default viewport)

BaseRenderPassConfig

public BaseRenderPassConfig(org.openmali.types.twodee.Rect2i viewport)
Creates new RenderPassConfig with the given parameters.

Parameters:
viewport - the viewport for this renderpass (null for default viewport)

BaseRenderPassConfig

public BaseRenderPassConfig(View.CameraMode cameraMode)
Creates new RenderPassConfig with the given parameters.

Parameters:
cameraMode -

BaseRenderPassConfig

public BaseRenderPassConfig()
Creates new RenderPassConfig with the given parameters.

Method Detail

getProjectionPolicy

public View.ProjectionPolicy getProjectionPolicy()

Specified by:
getProjectionPolicy in interface RenderPassConfig
Returns:
the projection policy.

setProjectionPolicy

public void setProjectionPolicy(View.ProjectionPolicy policy)
Sets the projection policy.

Specified by:
setProjectionPolicy in interface RenderPassConfig

setCameraMode

public void setCameraMode(View.CameraMode cameraMode)
Sets the camera mode for this RenderPass.

Specified by:
setCameraMode in interface RenderPassConfig

getCameraMode

public View.CameraMode getCameraMode()
Specified by:
getCameraMode in interface RenderPassConfig
Returns:
the camera mode for this RenderPass.

setOpaqueSorter

public final void setOpaqueSorter(RenderBinSorter sorter)
Sets the opaque RenderBinSorter for this RenderPass.
This automatically sets the sorting policy to CUSTOM.

Specified by:
setOpaqueSorter in interface RenderPassConfig
Parameters:
sorter - the RenderBinSorter to use for opaque shapes
See Also:
RenderPassConfig.setOpaqueSortingPolicy(org.xith3d.render.Renderer.OpaqueSortingPolicy)

getOpaqueSorter

public final RenderBinSorter getOpaqueSorter()

Specified by:
getOpaqueSorter in interface RenderPassConfig
Returns:
sorter the RenderBinSorter to use for opaque shapes
See Also:
RenderPassConfig.getOpaqueSortingPolicy()

setTransparentSorter

public final void setTransparentSorter(RenderBinSorter sorter)
Sets the transparent RenderBinSorter for this RenderPass.
This automatically sets the sorting policy to CUSTOM.

Specified by:
setTransparentSorter in interface RenderPassConfig
Parameters:
sorter - the RenderBinSorter to use for transparent shapes

getTransparentSorter

public final RenderBinSorter getTransparentSorter()

Specified by:
getTransparentSorter in interface RenderPassConfig
Returns:
sorter the RenderBinSorter to use for transparent shapes
See Also:
RenderPassConfig.getTransparentSortingPolicy()

setOpaqueSortingPolicy

public final void setOpaqueSortingPolicy(Renderer.OpaqueSortingPolicy policy)
Sets the opaque sorting policy for this RenderPass.

Specified by:
setOpaqueSortingPolicy in interface RenderPassConfig
Parameters:
policy - the new policy

getOpaqueSortingPolicy

public final Renderer.OpaqueSortingPolicy getOpaqueSortingPolicy()

Specified by:
getOpaqueSortingPolicy in interface RenderPassConfig
Returns:
the current opaque sorting policy for this RenderPass

setTransparentSortingPolicy

public final void setTransparentSortingPolicy(Renderer.TransparentSortingPolicy policy)
Sets the transparency sorting policy for this RenderPass.

Specified by:
setTransparentSortingPolicy in interface RenderPassConfig
Parameters:
policy - the new policy

getTransparentSortingPolicy

public final Renderer.TransparentSortingPolicy getTransparentSortingPolicy()

Specified by:
getTransparentSortingPolicy in interface RenderPassConfig
Returns:
the current transparency sorting policy for this RenderPass.

getFrontClipDistance

public float getFrontClipDistance()

Specified by:
getFrontClipDistance in interface RenderPassConfig
Returns:
the back clip distance. All polygons which are farer from the camera than this value will be culled.

setFrontClipDistance

public void setFrontClipDistance(float frontClipDistance)
Sets the front clip distance. All polygons which are closer to the camera than this value will be culled.

Specified by:
setFrontClipDistance in interface RenderPassConfig
Parameters:
frontClipDistance - the new front clip distance

getBackClipDistance

public float getBackClipDistance()

Specified by:
getBackClipDistance in interface RenderPassConfig
Returns:
the back clip distance. All polygons which are farer from the camera than this value will be culled.

setBackClipDistance

public void setBackClipDistance(float backClipDistance)
Sets the back clip distance. All polygons which are farer from the camera than this value will be culled.

Specified by:
setBackClipDistance in interface RenderPassConfig
Parameters:
backClipDistance - the new back clip distance

getScreenScale

public float getScreenScale()

Specified by:
getScreenScale in interface RenderPassConfig
Returns:
the screen scale

setScreenScale

public void setScreenScale(float screenScale)
Sets the screen scale.

Specified by:
setScreenScale in interface RenderPassConfig

getFieldOfView

public float getFieldOfView()

Specified by:
getFieldOfView in interface RenderPassConfig
Returns:
the field of view

setFieldOfView

public void setFieldOfView(float fov)
Sets the field of view.

Specified by:
setFieldOfView in interface RenderPassConfig

setCenterOfView

public final void setCenterOfView(org.openmali.vecmath2.Tuple2f cov)
Sets the center of the View.

Specified by:
setCenterOfView in interface RenderPassConfig
Parameters:
cov - values range from 1 (left) to -1 (right) a value of null sets the center to (0|0) - the default

getCenterOfView

public final org.openmali.vecmath2.Tuple2f getCenterOfView()

Specified by:
getCenterOfView in interface RenderPassConfig
Returns:
the center of this View - values range from 1 (left) to -1 (right)

setViewport

public void setViewport(org.openmali.types.twodee.Rect2i rect)
Sets the viewport of this RenderPass. If the viewport is null the default viewport is assumed.

Specified by:
setViewport in interface RenderPassConfig

getViewport

public org.openmali.types.twodee.Rect2i getViewport()

Specified by:
getViewport in interface RenderPassConfig
Returns:
the viewport of this RenderPass. If the viewport is null the default viewport is assumed.

setViewTransform

public void setViewTransform(Transform3D viewTransform)
Sets the View Transform3D for this RenderPass. If the transform is null the default is taken from the View.

Specified by:
setViewTransform in interface RenderPassConfig

getViewTransform

public Transform3D getViewTransform()

Specified by:
getViewTransform in interface RenderPassConfig
Returns:
the View Transform3D for this RenderPass. If the transform is null the default is taken from the View.

setRenderOptions

public void setRenderOptions(RenderOptions renderOptions)
Sets the RenderOptions for this RenderPass. If the RenderOptions are null the default is taken from the Canvas.

Specified by:
setRenderOptions in interface RenderPassConfig

getRenderOptions

public RenderOptions getRenderOptions()

Specified by:
getRenderOptions in interface RenderPassConfig
Returns:
the RenderOptions for this RenderPass. If the RenderOptions are null the default is taken from the Canvas.

setColorMask

public final void setColorMask(int colorMask)
Sets the color-mask as a bit-mask (red = 1/1, green = 2/2, blue = 3/4, alpha = 4/8).

Specified by:
setColorMask in interface RenderPassConfig

setColorMask

public final void setColorMask(boolean enableRed,
                               boolean enableGreen,
                               boolean enableBlue,
                               boolean enableAlpha)
Sets the color-mask.

Specified by:
setColorMask in interface RenderPassConfig

getColorMask

public final int getColorMask()
Specified by:
getColorMask in interface RenderPassConfig
Returns:
this RenderPass'es color-mask (red = 1/1, green = 2/2, blue = 3/4, alpha = 4/8).

set

public void set(RenderPassConfig template)
Sets this RenderPassConfigProvider to the values of the template.

Specified by:
set in interface RenderPassConfig
Parameters:
template - the RenderPassConfigProvider to take the values from