API ReferenceSandbox
RenderTargetclass
Essentially wraps a couple of textures that we're going to render to. The color texture and the depth texture.
object→RenderTarget
Methods4
Showing 4 methods
public virtual sealed void Dispose()
Stop using this texture, return it to the pool
Returns:
void—public static Sandbox.RenderTarget From(Sandbox.Texture color, Sandbox.Texture depth = null)
Create a render target from these textures
| Parameter | Type | Description |
|---|---|---|
| color | Texture | — |
| depth = null | Texture | — |
No results match this filter.
Properties4
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
Returns:
int—public int Sandbox.RenderTarget.Width { get; set; }
Width of the render target
Returns:
int—No results match this filter.