Introduce struct for export settings in COLLADA export code. This will make it easier to

add new options without having to change function signatures all over the place.
This commit is contained in:
Nathan Letwory
2011-09-07 18:23:30 +00:00
parent a1277508cc
commit 3dc0ee19c4
22 changed files with 179 additions and 94 deletions

View File

@@ -43,11 +43,13 @@
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "ExportSettings.h"
class EffectsExporter: COLLADASW::LibraryEffects
{
public:
EffectsExporter(COLLADASW::StreamWriter *sw);
void exportEffects(Scene *sce, bool export_selected);
EffectsExporter(COLLADASW::StreamWriter *sw, const ExportSettings *export_settings);
void exportEffects(Scene *sce);
void operator()(Material *ma, Object *ob);
@@ -66,6 +68,8 @@ private:
void writePhong(COLLADASW::EffectProfile &ep, Material *ma);
bool hasEffects(Scene *sce);
const ExportSettings *export_settings;
};
#endif