190 {
191
192 ((ObjectInterface *) clazz->interface)->dealloc =
dealloc;
193
194 ((ImageInterface *) clazz->interface)->imageWithBytes =
imageWithBytes;
204 ((ImageInterface *) clazz->interface)->
size =
size;
205}
static Image * imageWithResource(const Resource *resource)
static Image * imageWithSurface(SDL_Surface *surface)
static Image * imageWithBytes(const uint8_t *bytes, size_t length)
static Image * imageWithResourceName(const char *name)
static Image * imageWithData(const Data *data)
static SDL_Size size(const Image *self)
SDL_Size size(const Image *self)
Image * initWithData(Image *self, const Data *data)
Initializes this Image with the specified Data.
Image * initWithResourceName(Image *self, const char *name)
Initializes this Image, loading the Resource by the given name.
Image * initWithBytes(Image *self, const uint8_t *bytes, size_t length)
Initializes this 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 * initWithSurface(Image *self, SDL_Surface *surface)
Initializes this Image with the given surface.
Image * imageWithResource(const Resource *resource)
Instantiates an Image with the specified Resource.
Image * imageWithSurface(SDL_Surface *surface)
Instantiates an Image with the specified surface.
Image * initWithResource(Image *self, const Resource *resource)
Initializes this Image with the specified Resource.