Method: SDL::Surface#transform
- Defined in:
- ext/sdl/sdl.c
#transform(angle, xscale, yscale, flags) ⇒ Object
TODO: maybe remove? I dunno… could be nice for pre-rendering?
804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 |
# File 'ext/sdl/sdl.c', line 804
static VALUE Surface_transform(VALUE self, VALUE angle,
VALUE xscale, VALUE yscale,
VALUE flags) {
DEFINE_SELF(Surface, surface, self);
SDL_Surface *result = rotozoomSurfaceXY(surface,
NUM2FLT(angle),
NUM2FLT(xscale),
NUM2FLT(yscale),
SMOOTHING_ON);
if (!result)
FAILURE("Surface#transform");
return TypedData_Wrap_Struct(cSurface, &_Surface_type, result);
}
|