API ReferenceSandbox
public sealed class Sandbox.RenderTarget
Essentially wraps a couple of textures that we're going to render to. The color texture and the depth texture.
Methods
Showing 4 methods
public virtual sealed void Dispose()
Stop using this texture, return it to the pool
public static Sandbox.RenderTarget From(Sandbox.Texture color, Sandbox.Texture depth = null)
Create a render target from these textures
Parameters
depth: Default: null
No results match this filter.
Properties
Showing 4 properties
public Sandbox.Texture Sandbox.RenderTarget.ColorTarget { get; set; }
The target colour texture
public Sandbox.Texture Sandbox.RenderTarget.DepthTarget { get; set; }
The target depth texture
public int Sandbox.RenderTarget.Height { get; set; }
Height of the render target
public int Sandbox.RenderTarget.Width { get; set; }
Width of the render target
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.RenderTarget |