type t
The type of pre-rendered texts.
Fx | Advanced text rendering |
This module provides an efficient way to render text using openGL primitives.
type t
val create : text:string -> position:OgamlMath.Vector2f.t -> font:Font.t -> ?color:Color.t -> size:int -> ?bold:bool -> unit -> t
val draw : (module RenderTarget.T with type t = 'a) -> ?parameters:DrawParameter.t -> text:t -> target:'a -> unit -> unit
val advance : t -> OgamlMath.Vector2f.t
val boundaries : t -> OgamlMath.FloatRect.t
val to_source : t -> VertexArray.SimpleVertex.T.s VertexArray.VertexSource.t -> unit
val map_to_source : t -> (VertexArray.SimpleVertex.T.s VertexArray.Vertex.t -> 'b VertexArray.Vertex.t) -> 'b VertexArray.VertexSource.t -> unit
to_source
for more information.