Click or drag to resize
DigitalRuneRenderToTexture Class
Represents a 2D texture or cube map that was created using render-to-texture functionality.
Inheritance Hierarchy
SystemObject
  DigitalRune.GraphicsRenderToTexture

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public class RenderToTexture

The RenderToTexture type exposes the following members.

Constructors
  NameDescription
Public methodRenderToTexture
Initializes a new instance of the RenderToTexture class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyLastFrame
Gets the number of the last frame in which the texture was rendered.
Public propertyTexture
Gets or sets the render target.
Public propertyTextureMatrix
Gets the texture matrix.
Top
Remarks

RenderToTextureNodes can be used to create scene captures, e.g. for real-time reflections. This class represents the target Texture and the TextureMatrix for projective texture mapping.

The Texture must be set by the user. It is not created automatically. Texture must be a valid render target: RenderTarget2D or RenderTargetCube. The property specifies which kind of texture should be captured and the target resolution, format, etc. Render-to-texture renderers will render into this render target.

The TextureMatrix is set automatically. Its purpose depends on the type of the target texture (2D or cube map). See property TextureMatrix for details.
See Also