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

World Decal. More...

Inheritance diagram for Dragengine.Scenery.WorldDecal:

Classes

class  Instance

Public Member Functions

void createDecals (CollisionFilter collisionFilter)
void dropDecals ()
GameWorld getGameWorld ()
UniqueID getID ()
WorldDecal new ()
void setGameWorld (GameWorld gameWorld)
void setID (UniqueID id)
void setOrientation (Quaternion orientation)
void setPosition (DVector position)
void setSize (Vector size)
void setSkin (Skin skin)
void setVisible (bool visible)

Detailed Description

World Decal.

Manages a world decal. World decals are a helper class to help manage decals placed in the world instead of being attached to a component. Such decals can spread across multiple world elements. Each element requires an own copy of the decal to yield the proper result. This class stores the decal definition and creates the correct number of engine decals.

Member Function Documentation

◆ createDecals()

void Dragengine.Scenery.WorldDecal.createDecals ( CollisionFilter collisionFilter)

Creates the decal instances.

References createDecals(), dropDecals(), getGameWorld(), getID(), new(), setGameWorld(), setID(), setSize(), and setVisible().

Referenced by createDecals().

◆ dropDecals()

void Dragengine.Scenery.WorldDecal.dropDecals ( )

Drops the decal instances.

Referenced by createDecals().

◆ getGameWorld()

GameWorld Dragengine.Scenery.WorldDecal.getGameWorld ( )

Retrieves the game world or null if not attached.

References setPosition().

Referenced by createDecals().

◆ getID()

UniqueID Dragengine.Scenery.WorldDecal.getID ( )

Retrieves the unique id or null if not set.

Referenced by createDecals().

◆ new()

WorldDecal Dragengine.Scenery.WorldDecal.new ( )

Creates a new world decal.

Referenced by createDecals(), setGameWorld(), setID(), setOrientation(), setPosition(), and setSkin().

◆ setGameWorld()

void Dragengine.Scenery.WorldDecal.setGameWorld ( GameWorld gameWorld)

Sets the game world or null if not attached.

References new().

Referenced by createDecals().

◆ setID()

void Dragengine.Scenery.WorldDecal.setID ( UniqueID id)

Sets the unique id or null to unset it.

References new(), and setOrientation().

Referenced by createDecals().

◆ setOrientation()

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

Sets the orientation.

References new().

Referenced by setID().

◆ setPosition()

void Dragengine.Scenery.WorldDecal.setPosition ( DVector position)

Sets the position.

References new().

Referenced by getGameWorld().

◆ setSize()

void Dragengine.Scenery.WorldDecal.setSize ( Vector size)

Sets the size.

Referenced by createDecals().

◆ setSkin()

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

Sets the skin.

References new().

Referenced by setVisible().

◆ setVisible()

void Dragengine.Scenery.WorldDecal.setVisible ( bool visible)

Sets the visiblity.

References setSkin().

Referenced by createDecals().


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