92 int createSlot(
LeBitmap * bitmap,
const char * path);
93 void deleteSlot(
int slot);
98 #endif // LE_BMPCACHE_H
LeBmpCache bmpCache
Definition: bmpcache.cpp:50
#define LE_MAX_FILE_NAME
Definition: config.h:40
#define LE_BMPCACHE_SLOTS
Definition: config.h:47
int getSlotFromName(const char *name)
Retrieve a bitmap slot index from a bitmap name or path.
Definition: bmpcache.cpp:207
int noExtras
Definition: bmpcache.h:84
~LeBmpCache()
Definition: bmpcache.cpp:75
LeBitmap * bitmap
Definition: bmpcache.h:78
LightEngine 3D: General engine configuration file.
Definition: bmpcache.h:48
Cache and inventory all bitmaps loaded.
Definition: bmpcache.h:58
LightEngine 3D: Global helpers and definitions.
int flags
Definition: bmpcache.h:81
Definition: bmpcache.h:50
represents a bitmap cache slot
Definition: bmpcache.h:77
void clean()
Unload all resources in cache and remove entries.
Definition: bmpcache.cpp:85
LE_BMPCACHE_FLAGS
Bitmap cache slot flags.
Definition: bmpcache.h:46
int noSlots
Definition: bmpcache.h:89
LeBmpCache()
Definition: bmpcache.cpp:53
Contain and manage a RGB or RGBA 32bit bitmap image.
Definition: bitmap.h:58
LeBitmap * extras
Definition: bmpcache.h:83
Definition: bmpcache.h:49
void loadDirectory(const char *path)
Load in cache all the recognized bitmap files from the given directory.
Definition: bmpcache.cpp:132
LeBitmap * loadBMP(const char *path)
Load a BMP file of given path and apply transforms.
Definition: bmpcache.cpp:99
LightEngine 3D: Bitmap image container & manipulator.
Definition: bmpcache.h:47
int cursor
Definition: bmpcache.h:85
Slot cacheSlots[LE_BMPCACHE_SLOTS]
Definition: bmpcache.h:88
LeBitmap * getBitmapFromName(const char *name)
Retrieve a bitmap object from its name or path.
Definition: bmpcache.cpp:231
#define LE_MAX_FILE_PATH
Definition: config.h:41