Module: SDL2::IMG
- Defined in:
- video.c
Constant Summary
- INIT_JPG =
INT2NUM(IMG_INIT_JPG)
- INIT_PNG =
INT2NUM(IMG_INIT_PNG)
- INIT_TIF =
INT2NUM(IMG_INIT_TIF)
- INIT_WEBP =
INT2NUM(IMG_INIT_WEBP)
Class Method Summary (collapse)
-
+ (nil) init(flags)
Initialize SDL_image.
Class Method Details
+ (nil) init(flags)
3185 3186 3187 3188 3189 3190 3191 |
# File 'video.c', line 3185
static VALUE IMG_s_init(VALUE self, VALUE f)
{
int flags = NUM2INT(f);
if (IMG_Init(flags) & flags != flags)
rb_raise(eSDL2Error, "Couldn't initialze SDL_image");
return Qnil;
}
|