Sandbox Logo

Texture.CreateRenderTarget

static TextureBuilder CreateRenderTarget()

Description

Begins creation of a <a href="https://en.wikipedia.org/wiki/Render_Target">render target</a>. Finish by calling <see cref="M:Sandbox.TextureBuilder.Create(System.String,System.Boolean,System.ReadOnlySpan{System.Byte},System.Int32)" />. Render targets can be used for fancy things like <see cref="M:Sandbox.Graphics.RenderToTexture(Sandbox.SceneCamera,Sandbox.Texture)" />.

Return

The texture builder to help build the render target.

Texture.CreateRenderTarget

static Texture CreateRenderTarget( string name, ImageFormat format, Vector2 size )

Description

Begins creation of a <a href="https://en.wikipedia.org/wiki/Render_Target">render target</a>. Finish by calling <see cref="M:Sandbox.TextureBuilder.Create(System.String,System.Boolean,System.ReadOnlySpan{System.Byte},System.Int32)" />. Render targets can be used for fancy things like <see cref="M:Sandbox.Graphics.RenderToTexture(Sandbox.SceneCamera,Sandbox.Texture)" />.

Return

The texture builder to help build the render target.

Texture.CreateRenderTarget

static Texture CreateRenderTarget( string name, ImageFormat format, Vector2 size, Texture oldTexture )

Description

Begins creation of a <a href="https://en.wikipedia.org/wiki/Render_Target">render target</a>. Finish by calling <see cref="M:Sandbox.TextureBuilder.Create(System.String,System.Boolean,System.ReadOnlySpan{System.Byte},System.Int32)" />. Render targets can be used for fancy things like <see cref="M:Sandbox.Graphics.RenderToTexture(Sandbox.SceneCamera,Sandbox.Texture)" />.

Return

The texture builder to help build the render target.

User Comments