Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.SkyLayer Class Reference

Sky layer. More...

Inheritance diagram for Dragengine.Scenery.SkyLayer:

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.

Detailed Description

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.

Member Function Documentation

◆ getAmbientIntensity()

float Dragengine.Scenery.SkyLayer.getAmbientIntensity ( )

Diffuse ambient light intensity.

Referenced by getBodyAt().

◆ getBodyAt()

SkyBody Dragengine.Scenery.SkyLayer.getBodyAt ( int index)

Get wrapper for body.

Warning
The wrapper is only valid as long as the layer structure in the parent sky is not changed and the body layout is not changed.
Exceptions
EOutOfBoundarybody is less than 0 or larger than or equal to getBodyCount().

References getAmbientIntensity(), and setLightIntensity().

Referenced by setMultiplyBySkyColor().

◆ getBodyCount()

int Dragengine.Scenery.SkyLayer.getBodyCount ( )

Number of bodies.

References getLightColor(), and setLightOrientation().

Referenced by getMuliplyBySkyLight().

◆ getColor()

Color Dragengine.Scenery.SkyLayer.getColor ( )

Tint color.

References getOrientation().

Referenced by setIntensity().

◆ getIntensity()

float Dragengine.Scenery.SkyLayer.getIntensity ( )

Intensity.

References setOrientation().

Referenced by getSkin().

◆ getLayerIndex()

int Dragengine.Scenery.SkyLayer.getLayerIndex ( )

Layer index.

References getLayerIndex().

Referenced by getLayerIndex().

◆ getLightColor()

Color Dragengine.Scenery.SkyLayer.getLightColor ( )

Light color.

References setTransparency().

Referenced by getBodyCount().

◆ getLightIntensity()

float Dragengine.Scenery.SkyLayer.getLightIntensity ( )

Direct light intensity.

References getSkin().

Referenced by setBodyCount().

◆ getLightOrientation()

Quaternion Dragengine.Scenery.SkyLayer.getLightOrientation ( )

Light orientation.

Referenced by setAmbientIntensity().

◆ getMuliplyBySkyColor()

bool Dragengine.Scenery.SkyLayer.getMuliplyBySkyColor ( )

Layer color is multiplied by total sky light color.

Referenced by setMultiplyBySkyColor().

◆ getMuliplyBySkyLight()

bool Dragengine.Scenery.SkyLayer.getMuliplyBySkyLight ( )

Layer intensity is multiplied by total sky light intensity.

References getBodyCount().

Referenced by setMultiplyBySkyColor().

◆ getOffset()

Vector Dragengine.Scenery.SkyLayer.getOffset ( )

Relative offset of layer center.

Referenced by setOffset().

◆ getOrientation()

Vector Dragengine.Scenery.SkyLayer.getOrientation ( )

Orientation.

Referenced by getColor().

◆ getSkin()

Skin Dragengine.Scenery.SkyLayer.getSkin ( )

Skin or null to use background color only.

References getIntensity().

Referenced by getLightIntensity().

◆ getSky()

Sky Dragengine.Scenery.SkyLayer.getSky ( )

Owner sky.

References getSky().

Referenced by getSky().

◆ getTarget()

SkyTarget Dragengine.Scenery.SkyLayer.getTarget ( SkyLayerTargetType target)

Get wrapper for parameter.

Warning
The wrapper is only valid as long as the layer structure in the parent sky is not changed.

References setAmbientIntensity().

Referenced by setMultiplyBySkyColor().

◆ getTransparency()

float Dragengine.Scenery.SkyLayer.getTransparency ( )

Transparency.

Referenced by setLightOrientation().

◆ setAmbientIntensity()

void Dragengine.Scenery.SkyLayer.setAmbientIntensity ( float intensity)

Set diffuse ambient light intensity.

References getLightOrientation().

Referenced by getTarget().

◆ setBodyCount()

void Dragengine.Scenery.SkyLayer.setBodyCount ( int count)

Set number of bodies.

Sets all bodies to default vaules.

References getLightIntensity(), and setLightColor().

Referenced by setMultiplyBySkyColor().

◆ setColor()

void Dragengine.Scenery.SkyLayer.setColor ( Color color)

Set tint color.

Referenced by setTransparency().

◆ setIntensity()

void Dragengine.Scenery.SkyLayer.setIntensity ( float intensity)

Set intensity.

References getColor().

Referenced by setSkin().

◆ setLightColor()

void Dragengine.Scenery.SkyLayer.setLightColor ( Color color)

Set light color.

Referenced by setBodyCount().

◆ setLightIntensity()

void Dragengine.Scenery.SkyLayer.setLightIntensity ( float intensity)

Set direct light intensity.

References setSkin().

Referenced by getBodyAt().

◆ setLightOrientation()

void Dragengine.Scenery.SkyLayer.setLightOrientation ( Quaternion orientation)

Set light orientation.

References getTransparency().

Referenced by getBodyCount().

◆ setMultiplyBySkyColor()

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().

◆ setMultiplyBySkyLight()

void Dragengine.Scenery.SkyLayer.setMultiplyBySkyLight ( bool multiply)

Set if layer intensity is multiplied by total sky light intensity.

Referenced by setMultiplyBySkyColor().

◆ setOffset()

void Dragengine.Scenery.SkyLayer.setOffset ( Vector offset)

Set relative offset of layer center.

References getOffset().

Referenced by setOrientation().

◆ setOrientation()

void Dragengine.Scenery.SkyLayer.setOrientation ( Vector orientation)

Set orientation.

References setOffset().

Referenced by getIntensity().

◆ setSkin()

void Dragengine.Scenery.SkyLayer.setSkin ( Skin skin)

Set skin or null to use background color only.

References setIntensity().

Referenced by setLightIntensity().

◆ setTransparency()

void Dragengine.Scenery.SkyLayer.setTransparency ( float transparency)

Set transparency.

References setColor().

Referenced by getLightColor().


The documentation for this class was generated from the following file: