ObjectivelyMVC
Object oriented MVC framework for SDL3 and GNU C
Loading...
Searching...
No Matches
ImageAtlas.h File Reference

Packs many Images into one sheet, backed by one Texture. More...

#include <Objectively/Array.h>
#include <Objectively/Dictionary.h>
#include <ObjectivelyGPU/RenderDevice.h>
#include <ObjectivelyMVC/AtlasImage.h>

Go to the source code of this file.

Data Structures

struct  ImageAtlas
 Packs many Images into one sheet, backed by one Texture. More...
 

Macros

#define IMAGE_ATLAS_MAX_SIZE   4096
 

Functions

OBJECTIVELYMVC_EXPORT Class * _ImageAtlas (void)
 

Detailed Description

Packs many Images into one sheet, backed by one Texture.

Definition in file ImageAtlas.h.

Macro Definition Documentation

◆ IMAGE_ATLAS_MAX_SIZE

#define IMAGE_ATLAS_MAX_SIZE   4096

Definition at line 33 of file ImageAtlas.h.

Function Documentation

◆ _ImageAtlas()

OBJECTIVELYMVC_EXPORT Class * _ImageAtlas ( void  )

Definition at line 324 of file ImageAtlas.c.

324 {
325 static Class *clazz;
326 static Once once;
327
328 do_once(&once, {
329 clazz = _initialize(&(const ClassDef) {
330 .name = "ImageAtlas",
331 .superclass = _Object(),
332 .instanceSize = sizeof(ImageAtlas),
333 .interfaceSize = sizeof(ImageAtlasInterface),
334 .initialize = initialize,
335 });
336 });
337
338 return clazz;
339}
static void initialize(Class *clazz)
Definition ImageAtlas.c:306
Packs many Images into one sheet, backed by one Texture.
Definition ImageAtlas.h:49