|
ObjectivelyMVC 0.1.0
Object oriented MVC framework for OpenGL, SDL2 and GNU C
|
#include <Image.h>
Public Member Functions | |
| Class * | _Image (void) |
| The Image archetype. More... | |
| Image * | imageWithBytes (const uint8_t *bytes, size_t length) |
| Instantiates an Image with the specified bytes. More... | |
| Image * | imageWithData (const Data *data) |
| Instantiates an Image with the specified Data. More... | |
| Image * | imageWithResource (const Resource *resource) |
| Instantiates an Image with the specified Resource. More... | |
| Image * | imageWithResourceName (const char *name) |
| Instantiates an Image with the specified Resource name. More... | |
| Image * | imageWithSurface (SDL_Surface *surface) |
| Instantiates an Image with the specified surface. More... | |
| Image * | initWithBytes (Image *self, const uint8_t *bytes, size_t length) |
| Initializes this Image with the specified bytes. More... | |
| Image * | initWithData (Image *self, const Data *data) |
| Initializes this Image with the specified Data. More... | |
| Image * | initWithResource (Image *self, const Resource *resource) |
| Initializes this Image with the specified Resource. More... | |
| Image * | initWithResourceName (Image *self, const char *name) |
| Initializes this Image, loading the Resource by the given name. More... | |
| Image * | initWithSurface (Image *self, SDL_Surface *surface) |
| Initializes this Image with the given surface. More... | |
| SDL_Size | size (const Image *self) |
Data Fields | |
| Object | object |
| The superclass. More... | |
| SDL_Surface * | surface |
| The backing surface. More... | |
| const char * | type |
| The image type, inferred if instantiated with a Resource. More... | |
Protected Attributes | |
| ImageInterface * | interface |
| The interface. More... | |
| Class * _Image | ( | void | ) |
The Image archetype.
Definition at line 211 of file Image.c.
| Image * imageWithBytes | ( | const uint8_t * | bytes, |
| size_t | length | ||
| ) |
Instantiates an Image with the specified bytes.
| bytes | The encoded image bytes. |
| length | The length of bytes. |
NULL on error. Definition at line 48 of file Image.c.
| Image * imageWithData | ( | const Data * | data | ) |
Instantiates an Image with the specified Data.
| data | The encoded image Data. |
NULL on error. Definition at line 56 of file Image.c.
| Image * imageWithResource | ( | const Resource * | resource | ) |
Instantiates an Image with the specified Resource.
| resource | The Resource containing encoded image data. |
NULL on error. Definition at line 64 of file Image.c.
| Image * imageWithResourceName | ( | const char * | name | ) |
Instantiates an Image with the specified Resource name.
| name | The name of a Resource containing encoded image data. |
NULL on error. Definition at line 72 of file Image.c.
| Image * imageWithSurface | ( | SDL_Surface * | surface | ) |
Instantiates an Image with the specified surface.
| surface | The surface. |
NULL on error. Definition at line 80 of file Image.c.
Initializes this Image with the specified bytes.
| self | The Image. |
| bytes | The encoded image bytes. |
| length | The length of bytes. |
NULL on error. Definition at line 88 of file Image.c.
Initializes this Image with the specified Data.
| self | The Image. |
| data | The encoded image Data. |
NULL on error. Definition at line 111 of file Image.c.
Initializes this Image with the specified Resource.
| self | The Image. |
| resource | The Resource containing encoded image data. |
NULL on error. Definition at line 126 of file Image.c.
Initializes this Image, loading the Resource by the given name.
| self | The Image. |
| name | The Resource name. |
NULL on error. Definition at line 142 of file Image.c.
Initializes this Image with the given surface.
| self | The Image. |
| surface | The backing surface. |
NULL on error. SDL_FreeSurface when you no longer need it. The Image will also free the surface on dealloc. | const char* Image::type |