Table of Contents

Class AdvancedSkybox

Namespace
OmegaEngine.Graphics.Renderables
Assembly
OmegaEngine.dll

A skybox with multiple layers for cloud and moon animation.

public class AdvancedSkybox : Skybox, IDisposable
Inheritance
AdvancedSkybox
Implements
Inherited Members
Extension Methods

Constructors

AdvancedSkybox(ITextureProvider[])

Creates a new skybox using texture-files

protected AdvancedSkybox(ITextureProvider[] textures)

Parameters

textures ITextureProvider[]

An array of the 6 textures to be uses (front, right, back, left, top, bottom)

Exceptions

ArgumentException

There are not exactly 6 textures.

Properties

CloudSpeed

How fast the clouds should move.

public int CloudSpeed { get; set; }

Property Value

int

Methods

FromAssets(Engine, string, string, string, string, string, string)

Creates a new skybox using a cached XTextures (loading new ones if they aren't cached).

public static AdvancedSkybox FromAssets(Engine engine, string rt, string lf, string up, string dn, string ft, string bk)

Parameters

engine Engine

The Engine providing the cache and rendering capabilities.

rt string

The ID of the "right" texture.

lf string

The ID of the "left" texture

up string

The ID of the "up" texture.

dn string

The ID of the "down" texture.

ft string

The ID of the "front" texture.

bk string

The ID of the "back" texture.

Returns

AdvancedSkybox

The skybox that was created.

Exceptions

FileNotFoundException

One of the specified texture files could not be found.

IOException

There was an error reading one of the texture files.

UnauthorizedAccessException

Read access to one of the texture files is not permitted.

InvalidDataException

One of the texture files does not contain a valid texture.

SetDaytime(float)

Sets the time of the day.

public Color SetDaytime(float daytime)

Parameters

daytime float

The time in hours (Night(0), Morning(6), Midday(12), Evening(18)).

Returns

Color

The resulting color used for lighting the inner Skybox.