Table of Contents

Class SimpleSkybox

Namespace
OmegaEngine.Graphics.Renderables
Assembly
OmegaEngine.dll

A cubic skybox existing of 4 or 6 non-animated planes.

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

Constructors

SimpleSkybox(XTexture[])

Creates a new skybox using texture-files

protected SimpleSkybox(XTexture[] textures)

Parameters

textures XTexture[]

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

Exceptions

ArgumentException

There are not exactly 6 textures.

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 SimpleSkybox 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

SimpleSkybox

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.

OnDispose()

Hook that is called when the object needs to dispose its internal resources.

protected override void OnDispose()

OnEngineSet()

Hook that is called when Engine is set for the first time.

protected override void OnEngineSet()