Skip to main content
Version: 1.0.0-preview.47

Velaptor.Scene.IScene

Velaptor​

Velaptor.Scene​

IScene Interface​

Represents a single scene that can be rendered to the screen.

public interface IScene : Velaptor.IUpdatable, Velaptor.IDrawable, System.IDisposable

Derived
↳ SceneBase

Implements IUpdatable, IDrawable, System.IDisposable

Properties​

Id​

Gets the unique ID of the scene.

System.Guid Id { get; }

Property Value​

System.Guid

IsLoaded​

Gets a value indicating whether the scene has been loaded.

bool IsLoaded { get; }

Property Value​

System.Boolean

Name​

Gets the name of the scene.

string Name { get; }

Property Value​

System.String

WindowCenter​

Gets the center of the window.

System.Drawing.Point WindowCenter { get; }

Property Value​

System.Drawing.Point

WindowSize​

Gets the size of the window.

Velaptor.SizeU WindowSize { get; }

Property Value​

SizeU

Methods​

LoadContent()​

Loads the scene content.

void LoadContent();

Resize(SizeU)​

Updates the WindowSize.

void Resize(Velaptor.SizeU size);

Parameters​

size SizeU

The new size.

UnloadContent()​

Unloads the scene's content.

void UnloadContent();