TextSystem

* System class holding basic text functionality. * It contains references to the TextRenderer, TextShader and Scene. * It also contains a map with all texts in the current scene.

Constructors

this
this(Scene scene)

* Create and initialize text system using a Scene reference.

Members

Functions

getElementById
Text getElementById(string id)

* Returns the text element in the map that has the given id.

getMap
Text[string] getMap()

* Returns all elements in the text map.

getRenderer
TextRenderer getRenderer()

* Returns a text renderer reference.

registerElement
typeof(this) registerElement(Text entity)

* Register a text entity to the text system. * Returns reference to this so it can be used in a stream.

removeElement
typeof(this) removeElement(Text entity)

* Remove the given text entity from the text map. * Returns reference to this so it can be used in a stream.

removeElementById
typeof(this) removeElementById(string id)

* Remove the text entity that has the given id from the text map. * Returns reference to this so it can be used in a stream.

Meta