OSG_BEGIN_NAMESPACE

// Documentation for this class is emitted in the
// OSGDirectShowVideoWrapperBase.cpp file.
// To modify it, please change the .fcd file (OSGDirectShowVideoWrapper.fcd) and
// regenerate the base file.

/***************************************************************************\
 *                           Class variables                               *
\***************************************************************************/

/***************************************************************************\
 *                           Class methods                                 *
\***************************************************************************/

void DirectShowVideoWrapper::initMethod(InitPhase ePhase)
{
    Inherited::initMethod(ePhase);

    if(ePhase == TypeObject::Static)
    {
        char *c[] = {""};
        addPreFactoryInitFunction(boost::bind(&DirectShowManager::init, DirectShowManager::the(), 0, c));
        addPostFactoryExitFunction(boost::bind(&DirectShowManager::exit, DirectShowManager::the()));
    }
}
Пример #2
0
OSG_BEGIN_NAMESPACE

// Documentation for this class is emitted in the
// OSGFModSoundBase.cpp file.
// To modify it, please change the .fcd file (OSGFModSound.fcd) and
// regenerate the base file.

/***************************************************************************\
 *                           Class variables                               *
\***************************************************************************/

/***************************************************************************\
 *                           Class methods                                 *
\***************************************************************************/

void FModSound::initMethod(InitPhase ePhase)
{
    Inherited::initMethod(ePhase);

    if(ePhase == TypeObject::Static)
    {
        addPreFactoryInitFunction(boost::bind(&FModSoundManager::init));
        addPostFactoryExitFunction(boost::bind(&FModSoundManager::uninit));
    }
}