Example #1
0
ContextRef Context::create( const Format &format )
{
	static ContextRef factoryBulletContext;
	if( ! sBulletContextInitialized ) {
		factoryBulletContext = ContextRef( new Context( format ) );
	}
	
	return factoryBulletContext;
}
ContextRef Context::create( const std::string &name )
{
    return ContextRef( new Context( name ) );
}