Skip to content

Class RenderWorld

Namespace: Apogee.Rendering
Assembly: Apogee.Rendering.dll

An ECS as something to draw: every entity with a and a shows its model there, every lights it, and the entity with is the eye (). Nothing is copied: the world is read when a frame is rendered, so what the systems moved this frame is what is drawn.

public sealed class RenderWorld : IDisposable

Inheritance

object ← RenderWorld

Implements

IDisposable

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

RenderWorld(World, ModelLibrary)

public RenderWorld(World world, ModelLibrary models)

Parameters

world World

models ModelLibrary

Properties

AmbientGround

public Vector3 AmbientGround { get; set; }

Property Value

Vector3

AmbientSky

public Vector3 AmbientSky { get; set; }

Property Value

Vector3

DefaultSunColor

public Vector3 DefaultSunColor { get; set; }

Property Value

Vector3

DefaultSunDirection

The direction toward the sun and its color times illuminance when no directional is in the world. Zero color: no sun.

public Vector3 DefaultSunDirection { get; set; }

Property Value

Vector3

World

public World World { get; }

Property Value

World

Methods

Dispose()

Releases the queries. The world and the models are not owned.

public void Dispose()

TryGetMainCamera(Camera)

Copies the main camera's placement and lens into camera. False, and the camera untouched, when no entity is a .

public bool TryGetMainCamera(Camera camera)

Parameters

camera Camera

Returns

bool