|
Katana Plug-in APIs 0.1
|
00001 // Copyright (c) 2013 The Foundry Visionmongers Ltd. All Rights Reserved. 00002 00003 #ifndef FNRENDER_GLOBALSETTINGS_H 00004 #define FNRENDER_GLOBALSETTINGS_H 00005 00006 #include "FnScenegraphIterator/FnScenegraphIterator.h" 00007 #include "FnAttribute/FnAttribute.h" 00008 #include "FnRender/FnRenderAPI.h" 00009 00010 namespace Foundry 00011 { 00012 namespace Katana 00013 { 00014 namespace Render 00015 { 00027 class FNRENDER_API GlobalSettings 00028 { 00029 public: 00036 GlobalSettings(FnScenegraphIterator rootIterator, const std::string& rendererNamespace); 00037 00038 virtual ~GlobalSettings() {} 00039 00048 virtual int initialise(const std::string& rendererNamespace); 00049 00053 GroupAttribute getGlobalSettingsAttr() const { return _globalSettingsAttr; } 00054 00061 Attribute getAttribute(const std::string& attributeName) const { return _globalSettingsAttr.getChildByName(attributeName); } 00062 00063 protected: 00064 FnScenegraphIterator _rootIterator; 00065 GroupAttribute _globalSettingsAttr; 00066 }; 00070 } 00071 } 00072 } 00073 00074 namespace FnKat = Foundry::Katana; 00075 00076 #endif
1.7.3