|
le3d - LightEngine 3D
A straightforward C++ 3D software engine for real-time graphics
|
Cache and inventory all bitmaps loaded. More...
#include <bmpcache.h>
Classes | |
| struct | Slot |
| represents a bitmap cache slot More... | |
Public Member Functions | |
| LeBmpCache () | |
| ~LeBmpCache () | |
| void | clean () |
| Unload all resources in cache and remove entries. More... | |
| void | loadDirectory (const char *path) |
| Load in cache all the recognized bitmap files from the given directory. More... | |
| LeBitmap * | loadBMP (const char *path) |
| Load a BMP file of given path and apply transforms. More... | |
| int | getSlotFromName (const char *name) |
| Retrieve a bitmap slot index from a bitmap name or path. More... | |
| LeBitmap * | getBitmapFromName (const char *name) |
| Retrieve a bitmap object from its name or path. More... | |
Public Attributes | |
| Slot | cacheSlots [LE_BMPCACHE_SLOTS] |
| int | noSlots |
Cache and inventory all bitmaps loaded.
| LeBmpCache::LeBmpCache | ( | ) |
| LeBmpCache::~LeBmpCache | ( | ) |
| void LeBmpCache::clean | ( | ) |
Unload all resources in cache and remove entries.
| LeBitmap * LeBmpCache::getBitmapFromName | ( | const char * | path | ) |
Retrieve a bitmap object from its name or path.
| [in] | path | bitmap path or name |
| int LeBmpCache::getSlotFromName | ( | const char * | path | ) |
Retrieve a bitmap slot index from a bitmap name or path.
| [in] | path | bitmap path or name |
| LeBitmap * LeBmpCache::loadBMP | ( | const char * | path | ) |
Load a BMP file of given path and apply transforms.
| [in] | path | BMP file path |
| void LeBmpCache::loadDirectory | ( | const char * | path | ) |
Load in cache all the recognized bitmap files from the given directory.
| Slot LeBmpCache::cacheSlots[LE_BMPCACHE_SLOTS] |
Slots in cache
| int LeBmpCache::noSlots |
Number of cacheSlots in cache
1.8.10