|
Drag[en]gine Script Module DragonScript 1.35
|
Public Member Functions | |
Management | |
| Sky | getSky () |
| Owner sky. | |
| int | getLayerIndex () |
| Layer index. | |
Layers | |
| Vector | getOffset () |
| Relative offset of layer center. | |
| void | setOffset (Vector offset) |
| Set relative offset of layer center. | |
| Vector | getOrientation () |
| Orientation. | |
| void | setOrientation (Vector orientation) |
| Set orientation. | |
| Color | getColor () |
| Tint color. | |
| void | setColor (Color color) |
| Set tint color. | |
| float | getIntensity () |
| Intensity. | |
| void | setIntensity (float intensity) |
| Set intensity. | |
| float | getTransparency () |
| Transparency. | |
| void | setTransparency (float transparency) |
| Set transparency. | |
| Skin | getSkin () |
| Skin or null to use background color only. | |
| void | setSkin (Skin skin) |
| Set skin or null to use background color only. | |
| Quaternion | getLightOrientation () |
| Light orientation. | |
| void | setLightOrientation (Quaternion orientation) |
| Set light orientation. | |
| Color | getLightColor () |
| Light color. | |
| void | setLightColor (Color color) |
| Set light color. | |
| float | getLightIntensity () |
| Direct light intensity. | |
| void | setLightIntensity (float intensity) |
| Set direct light intensity. | |
| float | getAmbientIntensity () |
| Diffuse ambient light intensity. | |
| void | setAmbientIntensity (float intensity) |
| Set diffuse ambient light intensity. | |
| int | getBodyCount () |
| Number of bodies. | |
| void | setBodyCount (int count) |
| Set number of bodies. | |
| SkyBody | getBodyAt (int index) |
| Get wrapper for body. | |
| SkyTarget | getTarget (SkyLayerTargetType target) |
| Get wrapper for parameter. | |
| bool | getMuliplyBySkyLight () |
| Layer intensity is multiplied by total sky light intensity. | |
| void | setMultiplyBySkyLight (bool multiply) |
| Set if layer intensity is multiplied by total sky light intensity. | |
| bool | getMuliplyBySkyColor () |
| Layer color is multiplied by total sky light color. | |
| void | setMultiplyBySkyColor (bool multiply) |
| Set if layer color is multiplied by total sky light color. | |
Sky layer.
Wraps a sky layer by layer index. Valid only as long as the wrapped sky does not change layer layout. The user is responsible to call Sky.contentChanged() after changing one or more layers. Sky layers should not be changed if possible after being used in sky instances.
The TARGET_ROTATION_* rotation is applied ontop of the layer orientation. This allows to define planetary movement with the layer orientation representing the planet orbit coordinate frame and TARGET_ROTATION_X for example rotating the planet along the x axis easily.
| float Dragengine.Scenery.SkyLayer.getAmbientIntensity | ( | ) |
Diffuse ambient light intensity.
Referenced by getBodyAt().
| SkyBody Dragengine.Scenery.SkyLayer.getBodyAt | ( | int | index | ) |
Get wrapper for body.
| EOutOfBoundary | body is less than 0 or larger than or equal to getBodyCount(). |
References getAmbientIntensity(), and setLightIntensity().
Referenced by setMultiplyBySkyColor().
| int Dragengine.Scenery.SkyLayer.getBodyCount | ( | ) |
Number of bodies.
References getLightColor(), and setLightOrientation().
Referenced by getMuliplyBySkyLight().
| Color Dragengine.Scenery.SkyLayer.getColor | ( | ) |
| float Dragengine.Scenery.SkyLayer.getIntensity | ( | ) |
| int Dragengine.Scenery.SkyLayer.getLayerIndex | ( | ) |
| Color Dragengine.Scenery.SkyLayer.getLightColor | ( | ) |
| float Dragengine.Scenery.SkyLayer.getLightIntensity | ( | ) |
| Quaternion Dragengine.Scenery.SkyLayer.getLightOrientation | ( | ) |
Light orientation.
Referenced by setAmbientIntensity().
| bool Dragengine.Scenery.SkyLayer.getMuliplyBySkyColor | ( | ) |
Layer color is multiplied by total sky light color.
Referenced by setMultiplyBySkyColor().
| bool Dragengine.Scenery.SkyLayer.getMuliplyBySkyLight | ( | ) |
Layer intensity is multiplied by total sky light intensity.
References getBodyCount().
Referenced by setMultiplyBySkyColor().
| Vector Dragengine.Scenery.SkyLayer.getOffset | ( | ) |
Relative offset of layer center.
Referenced by setOffset().
| Vector Dragengine.Scenery.SkyLayer.getOrientation | ( | ) |
Orientation.
Referenced by getColor().
| Skin Dragengine.Scenery.SkyLayer.getSkin | ( | ) |
Skin or null to use background color only.
References getIntensity().
Referenced by getLightIntensity().
| SkyTarget Dragengine.Scenery.SkyLayer.getTarget | ( | SkyLayerTargetType | target | ) |
Get wrapper for parameter.
References setAmbientIntensity().
Referenced by setMultiplyBySkyColor().
| float Dragengine.Scenery.SkyLayer.getTransparency | ( | ) |
Transparency.
Referenced by setLightOrientation().
| void Dragengine.Scenery.SkyLayer.setAmbientIntensity | ( | float | intensity | ) |
| void Dragengine.Scenery.SkyLayer.setBodyCount | ( | int | count | ) |
Set number of bodies.
Sets all bodies to default vaules.
References getLightIntensity(), and setLightColor().
Referenced by setMultiplyBySkyColor().
| void Dragengine.Scenery.SkyLayer.setColor | ( | Color | color | ) |
Set tint color.
Referenced by setTransparency().
| void Dragengine.Scenery.SkyLayer.setIntensity | ( | float | intensity | ) |
| void Dragengine.Scenery.SkyLayer.setLightColor | ( | Color | color | ) |
Set light color.
Referenced by setBodyCount().
| void Dragengine.Scenery.SkyLayer.setLightIntensity | ( | float | intensity | ) |
| void Dragengine.Scenery.SkyLayer.setLightOrientation | ( | Quaternion | orientation | ) |
| void Dragengine.Scenery.SkyLayer.setMultiplyBySkyColor | ( | bool | multiply | ) |
Set if layer color is multiplied by total sky light color.
References getBodyAt(), getMuliplyBySkyColor(), getMuliplyBySkyLight(), getTarget(), setBodyCount(), setMultiplyBySkyColor(), and setMultiplyBySkyLight().
Referenced by setMultiplyBySkyColor().
| void Dragengine.Scenery.SkyLayer.setMultiplyBySkyLight | ( | bool | multiply | ) |
Set if layer intensity is multiplied by total sky light intensity.
Referenced by setMultiplyBySkyColor().
| void Dragengine.Scenery.SkyLayer.setOffset | ( | Vector | offset | ) |
| void Dragengine.Scenery.SkyLayer.setOrientation | ( | Vector | orientation | ) |
| void Dragengine.Scenery.SkyLayer.setSkin | ( | Skin | skin | ) |
Set skin or null to use background color only.
References setIntensity().
Referenced by setLightIntensity().
| void Dragengine.Scenery.SkyLayer.setTransparency | ( | float | transparency | ) |