Drag[en]gine Script Module DragonScript  1.23
Dragengine.Scenery.SkyBody Class Reference

Sky body. More...

Inheritance diagram for Dragengine.Scenery.SkyBody:

Public Member Functions

Management
Sky getSky ()
 Owner sky. More...
 
int getLayerIndex ()
 Owner layer index. More...
 
int getBodyIndex ()
 Body index. More...
 
Bodys
Quaternion getOrientation ()
 Orientation. More...
 
void setOrientation (Quaternion orientation)
 Set orientation. More...
 
Vector2 getSize ()
 Size in radians. More...
 
void setSize (Vector2 size)
 Set size in radians. More...
 
Color getColor ()
 Blending color. More...
 
void setColor (Color color)
 Set blending color. More...
 
Skin getSkin ()
 Skin or null if not set. More...
 
void setSkin (Skin skin)
 Set skin or null if not set. More...
 

Detailed Description

Sky body.

Wraps a sky body by body index. Valid only as long as the wrapped sky does not change layer layout and layer does not change body layout. The user is responsible to call Sky.contentChanged() after changing one or more bodys. Sky bodys should not be changed if possible after being used in sky instances.

This is a native class.

Member Function Documentation

◆ getBodyIndex()

int Dragengine.Scenery.SkyBody.getBodyIndex ( )

Body index.

◆ getColor()

Color Dragengine.Scenery.SkyBody.getColor ( )

Blending color.

◆ getLayerIndex()

int Dragengine.Scenery.SkyBody.getLayerIndex ( )

Owner layer index.

◆ getOrientation()

Quaternion Dragengine.Scenery.SkyBody.getOrientation ( )

Orientation.

◆ getSize()

Vector2 Dragengine.Scenery.SkyBody.getSize ( )

Size in radians.

◆ getSkin()

Skin Dragengine.Scenery.SkyBody.getSkin ( )

Skin or null if not set.

◆ getSky()

Sky Dragengine.Scenery.SkyBody.getSky ( )

Owner sky.

◆ setColor()

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

Set blending color.

◆ setOrientation()

void Dragengine.Scenery.SkyBody.setOrientation ( Quaternion  orientation)

Set orientation.

◆ setSize()

void Dragengine.Scenery.SkyBody.setSize ( Vector2  size)

Set size in radians.

◆ setSkin()

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

Set skin or null if not set.


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