#include <NBFLoader.h>
Inheritance diagram for NBFLoader:
Public Methods | |
NBFLoader () | |
void | deleteThis (void) |
Realization of the pure virtual interface function of a PlugIn. More... | |
const nvsg::Scene * | load (const std::string &filename, const std::vector< std::string > &searchPaths, const nvsg::ViewState *&viewState) |
Realization of the pure virtual interface function of a SceneLoader. More... | |
Protected Methods | |
virtual | ~NBFLoader (void) |
Protected destructor to prevent explicit creation on stack. More... | |
virtual const nvsg::Object * | loadCustomObject (uint_t objectCode, uint_t offset) |
Load a custom object identified by objectCode from the file offset specified by offset. More... | |
ubyte_t * | mapOffset (uint_t offset, size_t numBytes) |
Mapping numBytes bytes at file offset offset into process memory. More... |
|
Protected destructor to prevent explicit creation on stack.
|
|
Realization of the pure virtual interface function of a PlugIn.
Implements nvutil::PlugIn. |
|
Realization of the pure virtual interface function of a SceneLoader. Loads a nvb file given by filename. It looks for this file and possibly referenced other files like textures or effects at the given path first, then at the current location and finally it searches through the searchPaths.
|
|
Load a custom object identified by objectCode from the file offset specified by offset. This function is called from the loader's framework if a custom object was detected for the object stored at the particular file offset. A custom implementation should first evaluate the passed object code. To map identified objects into memory, a custom implementation should call the member function mapOffset with the file offset and the correct byte size for the identified object as parameters. After that, the corresponding NVSG object can be initialized from the mapped data.
|
|
Mapping numBytes bytes at file offset offset into process memory. This function turns a given offset into a pointer and ensures that a minimum of numBytes bytes are mapped.
|