Hi,
I am having some trouble with SDL. This small program is
throwing a
"not registered.Aborted" exception. The purpose
of the program is to
output a font to a bitmap via SDL. It gets to the outputting
the
Any thoughts are appreciated.
Regards,
Chris Campbell
open Sdlttf
let save_font f sfc =
Sdlvideo.save_BMP sfc (f ^ ".bmp")
(* /usr/share/fonts/truetype/ttf-bitstream-vera/VeraBI.ttf
*)
let main () =
Sdl.init [`VIDEO];
Sdlttf.init ();
let f =
"/usr/share/fonts/truetype/ttf-bitstream-vera/VeraBI&
quot;
and point = 10 in
let font = Sdlttf.open_font (f ^ ".ttf")
point in
print_endline "sloop";
let sfc = Sdlttf.render_text_solid font
"abcde" (255, 255, 255) in
print_endline "xxx";
save_font f sfc
let _ = main ()
Archives up to August 22, 2005 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners/
The archives of the very official ocaml list (the seniors'
one) can be found at http://caml.inria.fr
Attachments are banned and you're asked to be polite, avoid
flames etc.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http:/
/groups.yahoo.com/group/ocaml_beginners/
<*> To unsubscribe from this group, send an email to:
ocaml_beginners-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|