Skip to main content
Version: 1.0.0-preview.42

Velaptor.Scene.SceneBase

Velaptor​

Velaptor.Scene​

SceneBase Class​

A base scene to be used for creating new custom scenes.

public abstract class SceneBase :
Velaptor.Scene.IScene,
Velaptor.IUpdatable,
Velaptor.IDrawable,
System.IDisposable

Inheritance System.Object → SceneBase

Implements IScene, IUpdatable, IDrawable, System.IDisposable

Properties​

Id​

Gets the unique ID of the scene.

public System.Guid Id { get; }

Implements Id

Property Value​

System.Guid

IsLoaded​

Gets the name of the scene.

public bool IsLoaded { get; set; }

Implements IsLoaded

Property Value​

System.Boolean

Name​

Gets the name of the scene.

public string Name { get; set; }

Implements Name

Property Value​

System.String

WindowCenter​

Gets the center of the window.

public System.Drawing.Point WindowCenter { get; }

Implements WindowCenter

Property Value​

System.Drawing.Point

WindowSize​

Gets the size of the window.

public Velaptor.SizeU WindowSize { get; set; }

Implements WindowSize

Property Value​

SizeU

Methods​

Dispose()​

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose();

Implements Dispose()

LoadContent()​

Loads the scene content.

public virtual void LoadContent();

Implements LoadContent()

Render()​

Renders the object.

public virtual void Render();

Implements Render()

Resize(SizeU)​

Updates the WindowSize.

public virtual void Resize(Velaptor.SizeU size);

Parameters​

size SizeU

The new size.

Implements Resize(SizeU)

UnloadContent()​

Unloads the scene's content.

public virtual void UnloadContent();

Implements UnloadContent()

Update(FrameTime)​

Updates the object.

public virtual void Update(Velaptor.FrameTime frameTime);

Parameters​

frameTime FrameTime

The amount of time that has passed for the current frame.

Implements Update(FrameTime)