Layer
Declaration
public abstract class Strawberry.Graphics.Layers.Layer
Represents a rendering layer that can be initialized, updated, and rendered within a scene.
Inherits: Strawberry.ReferenceObject
Properties
Scene
Gets the scene to which this layer belongs.
Scene Scene { get }
Viewports
Gets the collection of viewport names associated with this layer.
List<string> Viewports { get }
Sorter
Gets or sets the rendering sorter used by this layer.
IRenderingSorter Sorter { get set }
Enabled
Gets or sets a value indicating whether the layer is enabled for updates and rendering.
bool Enabled { get set }
Methods
Initialize virtual
Initializes the layer with the specified scene.
void Initialize(Scene scene)
Parameters:
| Name | Type | Description |
|---|---|---|
scene |
Strawberry.Core.Scene |
The scene that owns the layer. |
Render virtual
Renders the contents of the layer.
void Render()
Update virtual
Updates the contents of the layer.
void Update()