Rendererclass

objectComponentRenderer
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public abstract class Sandbox.Renderer : Sandbox.Component

Constructors1

Showing 1 constructors

protected Renderer()PROTECTEDCONSTRUCTOR

Methods4

Showing 4 methods

protected void BackupRenderAttributes(Sandbox.RenderAttributes attributes)PROTECTED

Backup the specified RenderAttributes so we can restore them later with `Sandbox.Renderer.RestoreRenderAttributes(Sandbox.RenderAttributes)`

ParameterTypeDescription
attributesRenderAttributes
Returns:void

public virtual void CopyFrom(Sandbox.Renderer other)PUBLICVIRTUAL

Copy everything from another renderer

ParameterTypeDescription
otherRenderer
Returns:void

protected virtual void OnRenderOptionsChanged()PROTECTEDVIRTUAL

Returns:void

protected void RestoreRenderAttributes(Sandbox.RenderAttributes attributes)PROTECTED

Restore any attributes that were previously backed up with `Sandbox.Renderer.BackupRenderAttributes(Sandbox.RenderAttributes)`

ParameterTypeDescription
attributesRenderAttributes
Returns:void

Properties4

Showing 4 properties

public Sandbox.RenderAttributes Sandbox.Renderer.Attributes { get; set; }PUBLICGETSET

Attributes that are applied to the renderer based on the current material and shader. If the renderer is disabled, the changes are deferred until it is enabled again. Attributes are not saved to disk, and are not cloned when copying the renderer.

Returns:RenderAttributes

public Sandbox.Rendering.CommandList Sandbox.Renderer.ExecuteAfter { get; set; }PUBLICGETSET

A command list which is executed immediately after rendering this

Returns:CommandList

public Sandbox.Rendering.CommandList Sandbox.Renderer.ExecuteBefore { get; set; }PUBLICGETSET

A command list which is executed immediately before rendering this

Returns:CommandList

On this page