Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/collada/EffectExporter.h')
-rw-r--r--source/blender/collada/EffectExporter.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/source/blender/collada/EffectExporter.h b/source/blender/collada/EffectExporter.h
index a1395bfde9f..462f1548586 100644
--- a/source/blender/collada/EffectExporter.h
+++ b/source/blender/collada/EffectExporter.h
@@ -42,12 +42,13 @@
#include "DNA_scene_types.h"
#include "ExportSettings.h"
+#include "collada_utils.h"
class EffectsExporter: COLLADASW::LibraryEffects
{
public:
- EffectsExporter(COLLADASW::StreamWriter *sw, const ExportSettings *export_settings);
- void exportEffects(Scene *sce);
+ EffectsExporter(COLLADASW::StreamWriter *sw, const ExportSettings *export_settings, KeyImageMap &key_image_map);
+ void exportEffects(bContext *C, Scene *sce);
void operator()(Material *ma, Object *ob);
@@ -58,7 +59,14 @@ public:
COLLADASW::ColorOrTexture getcol(float r, float g, float b, float a);
private:
- void writeLambert(COLLADASW::EffectProfile &ep, Material *ma);
+ void set_shader_type(COLLADASW::EffectProfile &ep, Material *ma);
+ void set_transparency(COLLADASW::EffectProfile &ep, Material *ma);
+ void set_diffuse_color(COLLADASW::EffectProfile &ep, Material *ma);
+ void set_specular_color(COLLADASW::EffectProfile &ep, Material *ma);
+ void set_emission(COLLADASW::EffectProfile &ep, Material *ma);
+ void get_images(Material *ma, KeyImageMap &uid_image_map);
+ void create_image_samplers(COLLADASW::EffectProfile &ep, KeyImageMap &uid_image_map, std::string &active_uv);
+
void writeTextures(COLLADASW::EffectProfile &ep,
std::string &key,
COLLADASW::Sampler *sampler,
@@ -68,8 +76,9 @@ private:
bool hasEffects(Scene *sce);
const ExportSettings *export_settings;
-
+ KeyImageMap &key_image_map;
Scene *scene;
+ bContext *mContext;
};
#endif