module Ttffont:Truetype font support. This module is still pretty rough but it gets the basic job done.sig..end
You would normally render fonts under an Application.ortho_pixel_renderer.
Example:
let font = make_font "FreeSans.ttf" 14 in
let screen_height = 480 in
let my_node = object
method draw_scene =
font#render ~x:0 ~y:screen_height "Hello World!"
end
in ...
val ascii_first_printable : intval ascii_last_printable : intval tex_index_count : int Pervasives.refval tex_index_map : (GlTex.texture_id * int) list Pervasives.refval add_tex : GlTex.texture_id -> unitval get_tex : GlTex.texture_id -> intval get_tex_byindex : int -> GlTex.texture_idval generate_texture : Sdlttf.font ->
GlTex.texture_id list * (GlTex.texture_id * float * float * float) arrayval make_font : string ->
int ->
< get_texture : char -> GlTex.texture_id;
render : x:int -> y:int -> string -> unit >