RenderToTexture Class |
Namespace: DigitalRune.Graphics
The RenderToTexture type exposes the following members.
Name | Description | |
---|---|---|
RenderToTexture |
Initializes a new instance of the RenderToTexture class.
|
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
LastFrame |
Gets the number of the last frame in which the texture was rendered.
| |
Texture |
Gets or sets the render target.
| |
TextureMatrix |
Gets the texture matrix.
|
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.