/* @overload image=(img) @param [Ray::Image, nil] img The image this sprite will use. No image means it will just use the default one. */ static VALUE ray_sprite_set_image(VALUE self, VALUE img) { say_sprite_set_image(ray_rb2sprite(self), NIL_P(img) ? NULL : ray_rb2image(img)); rb_iv_set(self, "@image", img); return self; }
/* * @overload image=(img) * Sets the image this object will draw on * @param [Ray::Image] img New image to draw on */ VALUE ray_image_target_set_image(VALUE self, VALUE img) { rb_check_frozen(self); say_image_target_set_image(ray_rb2image_target(self), ray_rb2image(img)); rb_iv_set(self, "@image", img); return img; }