OmegaEngine API
1.0.3
|
A skybox with multiple layers for cloud and moon animation. More...
Public Member Functions | |
Color | SetDaytime (float daytime) |
Sets the time of the day. More... | |
Public Member Functions inherited from OmegaEngine.Graphics.Renderables.Renderable | |
override string | ToString () |
Public Member Functions inherited from OmegaEngine.EngineElement | |
void | Dispose () |
Static Public Member Functions | |
static AdvancedSkybox | FromAssets (Engine engine, string rt, string lf, string up, string dn, string ft, string bk) |
Creates a new skybox using a cached XTextures (loading new ones if they aren't cached). More... | |
Protected Member Functions | |
AdvancedSkybox (ITextureProvider[] textures) | |
Creates a new skybox using texture-files More... | |
Protected Member Functions inherited from OmegaEngine.Graphics.Renderables.Skybox | |
Skybox (ITextureProvider[] textures) | |
Creates a new skybox using texture-files More... | |
override void | OnDispose () |
Hook that is called when the object needs to dispose its internal resources. | |
Protected Member Functions inherited from OmegaEngine.Graphics.Renderables.Renderable | |
virtual void | OnPreRender () |
void | PrepareRender () |
Should be called before rendering anything - usually called by base constructor More... | |
Protected Member Functions inherited from OmegaEngine.EngineElement | |
void | RegisterChild (EngineElement element, bool autoDispose=true) |
Registers a child EngineElement for automatic Engine setting and Dispose calling. More... | |
void | UnregisterChild (EngineElement element) |
Unregisters a child EngineElement (opposite of RegisterChild). More... | |
virtual void | OnEngineSet () |
Hook that is calld when Engine is set for the first time. More... | |
Properties | |
int | CloudSpeed [get, set] |
How fast the clouds should move. More... | |
Properties inherited from OmegaEngine.Graphics.Renderables.Renderable | |
int | RenderCount [get] |
How many times has this entity been rendered in this frame? More... | |
string | Name [get, set] |
Text value to make it easier to identify a particular render entity More... | |
bool | Visible = true [get, set] |
Shall the entity be rendered? More... | |
bool | Wireframe [get, set] |
Shall this entity be drawn in wireframe-mode? (used for debugging) More... | |
float | VisibilityDistance [get, set] |
The maximum distance from which the entity is visible - 0 for infinite More... | |
int | Alpha [get, set] |
The level of transparency from 0 (solid) to 255 (invisible), OmegaEngine.EngineState.AlphaChannel, OmegaEngine.EngineState.BinaryAlphaChannel or OmegaEngine.EngineState.AdditivBlending More... | |
Properties inherited from OmegaEngine.EngineElement | |
Engine | Engine [get, set] |
The Engine instance used by this object. Must be set before using the object. May not be changed once it has been set! More... | |
bool | IsDisposed [get] |
Indicates whether this object has been disposed and can therefore no longer be used. More... | |
Additional Inherited Members | |
Public Attributes inherited from OmegaEngine.EngineElement | |
bool | IsEngineSet => _engine != null |
true if the Engine has been set. More... | |
Protected Attributes inherited from OmegaEngine.Graphics.Renderables.Skybox | |
readonly ITextureProvider [] | Textures = new ITextureProvider[6] |
Events inherited from OmegaEngine.Graphics.Renderables.Renderable | |
Action | PreRender |
Occurs once per frame before rendering the entity. Will not be executed if the entity is excluded by a culling test. More... | |
A skybox with multiple layers for cloud and moon animation.
|
inlineprotected |
Creates a new skybox using texture-files
textures | An array of the 6 textures to be uses (front, right, back, left, top, bottom) |
ArgumentException | There are not exactly 6 textures. |
|
inlinestatic |
Creates a new skybox using a cached XTextures (loading new ones if they aren't cached).
engine | The Engine providing the cache and rendering capabilities. |
rt | The ID of the "right" texture. |
lf | The ID of the "left" texture |
up | The ID of the "up" texture. |
dn | The ID of the "down" texture. |
ft | The ID of the "front" texture. |
bk | The ID of the "back" texture. |
FileNotFoundException | On 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. |
|
inline |
Sets the time of the day.
daytime | The time in hours (Night(0), Morning(6), Midday(12), Evening(18)). |
|
getset |
How fast the clouds should move.