예제 #1
0
void ofxGenericApp::setofxGenericAppInstanceToThis()
{
    if ( !ofxGenericApp::_this )
    {
        ofxGenericApp::_this = ofPtr< ofxGenericApp >( this );
    } else
    {
        throw ofxGenericExceptionSubclassedSingletonInitializedTwice( "ofxGenericApp" );        
    }
}
예제 #2
0
void ClapTrapApp::setClapTrapAppInstanceToThis()
{
    if ( !ClapTrapApp::_this )
    {
        ClapTrapApp::_this = ofPtr< ClapTrapApp >( this );
        ClapTrapApp::_this->setofxGenericAppInstanceToThis();
    } else
    {
        throw ofxGenericExceptionSubclassedSingletonInitializedTwice( "ofxGenericApp" );        
    }
}
void PlatformInfo::setPlatformInfoInstanceToThis()
{
    if ( !PlatformInfo::_this )
    {
        PlatformInfo::_this = ofPtr< PlatformInfo >( this );
        PlatformInfo::_this->setofxGenericAppInstanceToThis();
    } else
    {
        throw ofxGenericExceptionSubclassedSingletonInitializedTwice( "ofxGenericApp" );        
    }
}