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