190 {
191
192 ((ObjectInterface *) clazz->interface)->dealloc =
dealloc;
193
194 ((ImageInterface *) clazz->interface)->imageWithBytes =
imageWithBytes;
204 ((ImageInterface *) clazz->interface)->
size =
size;
205}
SDL_Size size(const Image *self)
Image * initWithData(Image *self, const Data *data)
Initializes this Image with the specified Data.
Image * imageWithBytes(const uint8_t *bytes, size_t length)
Instantiates an Image with the specified bytes.
Image * imageWithResourceName(const char *name)
Instantiates an Image with the specified Resource name.
Image * imageWithData(const Data *data)
Instantiates an Image with the specified Data.
Image * imageWithResource(const Resource *resource)
Instantiates an Image with the specified Resource.
Image * imageWithSurface(SDL_Surface *surface)
Instantiates an Image with the specified surface.