#include <sglModelLoader.hpp>
Inheritance diagram for sglModelLoader::
Public Types | |
typedef sglNode* (* | loaderFunc )(const string &, unsigned int) |
typedef bool (* | callbackFunction )(sglNode *node, void *loaderNode, string &function, void *userData) |
enum | ModeEnum { eNONE = 0x00, eSTRIPIFY = 0x01, eCOMPUTE_FACETED_NORMALS = 0x02, eCOMPUTE_SMOOTH_NORMALS = 0x04 } |
Public Methods | |
virtual | ~sglModelLoader ()=0 |
Static Public Methods | |
sglNode* | loadModel (const string &filepath, unsigned int mode) |
void | registerModelLoader (const string &extension, loaderFunc model_loader_func) |
loaderFunc | getModelLoader (const string &extension) |
void | registerCallback (const string &extension, callbackFunction callback_func, void *userData) |
callbackFunction | getCallback (const string &extension, void **ud) |
void | registerOptionString (const string &extension, const string &options) |
string | getOptionString (const string &extension) |
Protected Methods | |
sglModelLoader () | |
sglModelLoader (const sglModelLoader &) | |
sglModelLoader& | operator= (const sglModelLoader &) |
Definition at line 40 of file sglModelLoader.hpp.
|
The prototype for loader functions. |
|
The prototype for callback functions. |
|
Valid loader mode bit flags. Definition at line 44 of file sglModelLoader.hpp. |
|
Destructor. |
|
Load the given model file using whatever loader has been registered for files of that type.
|
|
Register a model function pointer and the extension it supports. Note that a single function can support multiple extensions. Registering an extension a second time will replace the existing entry.
|
|
Get the registered model loader function pointer based on extension.
|
|
Register a callback function pointer and the extension it is for. Applications should use this function to register callbacks for the extensions they are interested in. Registering an extension a second time will replace the existing entry.
|
|
Get the registered callback function pointer based on extension. Model loaders should use this function to retrieve the callback for their extension.
|
|
Register a loader option string, and the extension it is for. The application should use this function to register an option string for individual model loaders. Registering an extension a second time will replace the existing entry.
|
|
Get the option string for an extension. Model loaders should use this function to determine if an option string has been registered for their extension.
|