21#include <Objectively/Array.h>
22#include <Objectively/Dictionary.h>
24#include <ObjectivelyGPU/RenderDevice.h>
33#define IMAGE_ATLAS_MAX_SIZE 4096
35typedef struct ImageAtlasInterface ImageAtlasInterface;
102struct ImageAtlasInterface {
107 ObjectInterface objectInterface;
184 void (*renderDeviceWillReset)(
ImageAtlas *self);
194 Texture *(*texture)(
ImageAtlas *self, RenderDevice *device);
An Image packed into an ImageAtlas.
static String * name(const Font *self)
OBJECTIVELYMVC_EXPORT Class * _ImageAtlas(void)
static Image * image(Theme *self, const char *name, float pixelDensity)
#define OBJECTIVELYMVC_EXPORT
An Image packed into an ImageAtlas.
Packs many Images into one sheet, backed by one Texture.
int maxSize
The largest sheet dimension ImageAtlas::compile will attempt.
Object object
The superclass.
Image * image
The compiled sheet, or NULL until ImageAtlas::compile.
Array * images
The AtlasImages, in the order added.
ImageAtlasInterface * interface[0]
The interface type.
unsigned generation
Incremented by every ImageAtlas::addImageWithName and ImageAtlas::compile, so that anything derived f...