/* * call-seq: * setup -> nil * * Attempt to setup the TTF class for use by initializing SDL_ttf. * This *must* be called before the TTF class can be used. * Raises SDLError if there is a problem initializing SDL_ttf. */ VALUE rbgm_ttf_setup(VALUE module) { if(TTF_Init()!=0) rb_raise(eSDLError,"could not setup TTF class: %s",TTF_GetError()); return Qnil; }