Class Skybox
- Namespace
- OmegaEngine.Graphics.Renderables
- Assembly
- OmegaEngine.dll
Provides a backgound for a Scene that "follows" the Position, creating the illusion of infinite distance.
public abstract class Skybox : Renderable, IDisposable
- Inheritance
-
Skybox
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Skybox(ITextureProvider[])
Creates a new skybox using texture-files
protected Skybox(ITextureProvider[] textures)
Parameters
textures
ITextureProvider[]An array of the 6 textures to be uses (right, left, top, bottom, front, back)
Exceptions
- ArgumentException
There are not exactly 6 textures.
Fields
Textures
protected readonly ITextureProvider?[] Textures
Field Value
Methods
OnDispose()
Hook that is called when the object needs to dispose its internal resources.
protected override void OnDispose()