Microsoft.Xna.Framework.Graphics
Class RenderTargetBinding

java.lang.Object
  extended by System.ValueType
      extended by Microsoft.Xna.Framework.Graphics.RenderTargetBinding

public final class RenderTargetBinding
extends ValueType

Binds an array of render targets.

Author:
Halofreak1990

Constructor Summary
RenderTargetBinding(RenderTarget2D renderTarget)
          Creates an instance of this object.
RenderTargetBinding(RenderTargetCube renderTarget, CubeMapFace cubeMapFace)
          Creates an instance of this object.
 
Method Summary
 CubeMapFace getCubeMapFace()
          Gets one face of a CubeMap.
 Texture getRenderTarget()
          Gets a 2D texture.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderTargetBinding

public RenderTargetBinding(RenderTargetCube renderTarget,
                           CubeMapFace cubeMapFace)
Creates an instance of this object.

Parameters:
renderTarget - Identifies a CubeMap render target.
cubeMapFace - CubeMap face.
Throws:
ArgumentNullException - renderTarget is null.

RenderTargetBinding

public RenderTargetBinding(RenderTarget2D renderTarget)
Creates an instance of this object.

Parameters:
renderTarget - Identifies a 2D render target.
Throws:
ArgumentNullException - renderTarget is null.
Method Detail

getCubeMapFace

public CubeMapFace getCubeMapFace()
Gets one face of a CubeMap.


getRenderTarget

public Texture getRenderTarget()
Gets a 2D texture.