169 {
170
171 ((ObjectInterface *) clazz->interface)->dealloc =
dealloc;
172
173 ((SoundInterface *) clazz->interface)->initWithBytes =
initWithBytes;
174 ((SoundInterface *) clazz->interface)->initWithChunk =
initWithChunk;
178
179 ((SoundInterface *) clazz->interface)->soundWithBytes =
soundWithBytes;
184}
Font * initWithData(Font *self, Data *data, int size, int index)
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 * initWithResource(Image *self, const Resource *resource)
Initializes this Image with the specified Resource.
Sound * soundWithData(const Data *data)
Instantiates an Sound with the specified Data.
Sound * soundWithResourceName(const char *name)
Instantiates an Sound with the specified Resource name.
Sound * soundWithBytes(const uint8_t *bytes, size_t length)
Instantiates an Sound with the specified bytes.
Sound * initWithChunk(Sound *, const Chunk *)
Initializes this Sound with the given audio chunk.
Sound * initWithData(Sound *, Data *)
Sound * soundWithResource(const Resource *resource)
Instantiates an Sound with the specified Resource.
Sound * soundWithChunk(Mix_Chunk *chunk)
Instantiates an Sound with the specified chunk.