TuttleOFX
1
|
00001 #ifndef _TUTTLE_HOST_PRELOADPLUGINS_HPP_ 00002 #define _TUTTLE_HOST_PRELOADPLUGINS_HPP_ 00003 00004 #include "Core.hpp" 00005 00006 #include <iostream> 00007 00008 namespace tuttle { 00009 namespace host { 00010 00011 struct PreloadPlugins 00012 { 00013 PreloadPlugins( bool usingCache = false ) 00014 { 00015 using namespace tuttle::host; 00016 TUTTLE_LOG_TRACE( "[OpenFX] Loading plugins" ); 00017 TUTTLE_LOG_TRACE( BOOST_PP_STRINGIZE(TUTTLE_PLUGIN_PATH) ); 00018 core().getPluginCache().addDirectoryToPath( BOOST_PP_STRINGIZE(TUTTLE_PLUGIN_PATH) ); 00019 core().preload( usingCache ); 00020 TUTTLE_LOG_TRACE( core().getImageEffectPluginCache() ); 00021 TUTTLE_LOG_TRACE( "[OpenFX] Load of plugins done" ); 00022 } 00023 00024 ~PreloadPlugins() 00025 { 00026 // TUTTLE_LOG_TRACE( "PreloadOpenFXPlugins: global teardown" ); 00027 } 00028 }; 00029 00030 } 00031 } 00032 00033 #endif