public final class SkyX
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SkyX.LightingMode
Lighting mode enumeration
SkyX is designed for true HDR rendering, but there is a big number of applications
which don't use HDR rendering, due to this fact a little exponential tone-mapping
algorithm is applied to SkyX materials if LM_LDR is selected.
|
static class |
SkyX.MaterialName |
| Constructor and Description |
|---|
SkyX(AssetManager assets,
Controller c) |
| Modifier and Type | Method and Description |
|---|---|
void |
create()
Create SkyX
|
void |
destroy(IGLApi glApi) |
float |
getSkydomeRadius(View view) |
void |
remove(IGLApi glApi)
Remove SkyX (free resources)
|
void |
render(Renderer pipeline) |
void |
setLightingMode(SkyX.LightingMode lightMode)
Set lighting mode
|
void |
setStarfieldEnabled(boolean Enabled)
Set the starfield enabled/disabled
|
void |
setTimeMultiplier(float timeMultiplier)
Set time multiplier
|
void |
setVisible(boolean visible)
Set visible
|
void |
update(IGLApi glApi,
float timeSinceLastFrame)
Update (to be invoked per frame)
|
void |
updateView(IGLApi glApi,
View view)
Notify camera render (to be invoked per camera and per frame)
|
public SkyX(AssetManager assets, Controller c)
c - SkyX controllerpublic void destroy(IGLApi glApi)
public void create()
public void remove(IGLApi glApi)
public void update(IGLApi glApi, float timeSinceLastFrame)
timeSinceLastFrame - Time elapsed since last framepublic void updateView(IGLApi glApi, View view)
public final void render(Renderer pipeline)
public void setVisible(boolean visible)
visible - true to set SkyX visible, false to hide itpublic void setTimeMultiplier(float timeMultiplier)
timeMultiplier - Time multiplierpublic void setLightingMode(SkyX.LightingMode lightMode)
lightMode - Lighting modepublic void setStarfieldEnabled(boolean Enabled)
Enabled - true for starfield, false for notpublic float getSkydomeRadius(View view)
view - Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com