/* * call-seq: * init -> nil * * Initialize Rubygame. This should be called soon after you +require+ * Rubygame, so that everything will work properly. */ VALUE rbgm_init(VALUE module) { if(SDL_Init(SDL_INIT_EVERYTHING)==0) { return Qnil; } else { rb_raise(eSDLError,"Could not initialize SDL."); return Qnil; /* should never get here */ } }