31 if (imageList != NULL && image != NULL)
33 if (imageList->
images == NULL)
40 new_list = realloc(imageList->
images, newSize);
45 imageList->
images = new_list;
void Flyweight_ImageList_Clear(Flyweight_ImageList *imageList)
Clear the given Flyweight_ImageList object by freeing up all allocated Flyweight_image objects and re...
void Flyweight_ImageList_Add(Flyweight_ImageList *imageList, Flyweight_Image *image)
Add a Flyweight_Image object to the given Flyweight_ImageList object. The list takes ownership of the...
Declaration of the Flyweight_ImageList and Flyweight_Image structures, the latter which wraps the big...
Represents an image that associates a context with a big resource.
Represents an expandable list of Flyweight_Image objects. This is managed by the Flyweight_ImageList_...
size_t images_count
Number of Flyweight_image objects in the list.
Flyweight_Image * images
Dynamic list of Flyweight_Image objects.