Example #1
0
SceneFileHandlerBase::SceneFileHandlerBase(void) :
    _suffixTypeMap     (              ),
    _readProgressFP    (NULL          ),
    _readBeginFP       (NULL          ),
    _readEndFP         (NULL          ),
    _progressData      (              ),
    _readReady         (false         ),
    _useProgressThread (false         ),
    _writeProgressFP   (NULL          ),
    _writeBeginFP      (NULL          ),
    _writeEndFP        (NULL          ),
    _pathHandler       (NULL          ),
    _defaultPathHandler(              ),
    _readFP            (NULL          ),
    _writeFP           (NULL          ),
    _oGlobalResolver   (NULL          )
{
    _progressData.length = 0;
    _progressData.is = NULL;

    addPostFactoryInitFunction(initializeDefaultGraphOps);
    addPreFactoryExitFunction (terminateDefaultGraphOps );
    addPreFactoryExitFunction (terminateSceneFileTypes  );
}
//! Register the GraphOp with the factory
static bool initOccTreeBuilder(void)
{
    addPostFactoryInitFunction(&OcclusionCullingTreeBuilder::staticInit);

    return true;
}
Example #3
0
/*! The constructor has the important side effect of adding \a func to the list
    of init functions by calling addPostFactoryInitFunction.

    \param[in] func Init function to be added.
 */
InitFuncWrapper::InitFuncWrapper(const InitFuncF func)
{
    addPostFactoryInitFunction(func);
}