play-cljc.gl.text

(->font-entity game data baked-font)

(->font-entity game data width height)

Returns an entity with all characters in the font. The second arity is for backwards compatibility and should not be used.

Example

(play-cljc.gl.text/->font-entity game data baked-font)

(->text-entity game {{:keys [baked-chars baseline font-height first-char bitmap-width bitmap-height]} :baked-font, :as font-entity} text)

(->text-entity game baked-font image-entity text)

Returns an entity with the given text rendered to it. The second arity is for backwards compatibility and should not be used.

Example

(play-cljc.gl.text/->text-entity game font-entity "Hello, world!")