s&box docs

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

Properties

Showing 4 properties

public int Sandbox.RenderTarget.Height { get; set; }

Height of the render target

public int Sandbox.RenderTarget.Width { get; set; }

Width of the render target

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.RenderTarget

On this page