diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/collada/EffectExporter.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/collada/EffectExporter.h')
-rw-r--r-- | source/blender/collada/EffectExporter.h | 64 |
1 files changed, 34 insertions, 30 deletions
diff --git a/source/blender/collada/EffectExporter.h b/source/blender/collada/EffectExporter.h index 6d42a3d69ba..25df2d7eb89 100644 --- a/source/blender/collada/EffectExporter.h +++ b/source/blender/collada/EffectExporter.h @@ -37,42 +37,46 @@ #include "ExportSettings.h" #include "collada_utils.h" -class EffectsExporter: COLLADASW::LibraryEffects -{ -public: - EffectsExporter(COLLADASW::StreamWriter *sw, const ExportSettings *export_settings, KeyImageMap &key_image_map); - void exportEffects(bContext *C, Scene *sce); +class EffectsExporter : COLLADASW::LibraryEffects { + public: + EffectsExporter(COLLADASW::StreamWriter *sw, + const ExportSettings *export_settings, + KeyImageMap &key_image_map); + void exportEffects(bContext *C, Scene *sce); - void operator()(Material *ma, Object *ob); + void operator()(Material *ma, Object *ob); - COLLADASW::ColorOrTexture createTexture(Image *ima, - std::string& uv_layer_name, - COLLADASW::Sampler *sampler - /*COLLADASW::Surface *surface*/); + COLLADASW::ColorOrTexture createTexture(Image *ima, + std::string &uv_layer_name, + COLLADASW::Sampler *sampler + /*COLLADASW::Surface *surface*/); - COLLADASW::ColorOrTexture getcol(float r, float g, float b, float a); -private: - 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_reflectivity(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); + COLLADASW::ColorOrTexture getcol(float r, float g, float b, float a); - void writeTextures( - COLLADASW::EffectProfile &ep, - std::string &key, - COLLADASW::Sampler *sampler, - MTex *t, Image *ima, - std::string &uvname ); + private: + 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_reflectivity(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); - bool hasEffects(Scene *sce); + void writeTextures(COLLADASW::EffectProfile &ep, + std::string &key, + COLLADASW::Sampler *sampler, + MTex *t, + Image *ima, + std::string &uvname); - const ExportSettings *export_settings; - KeyImageMap &key_image_map; - Scene *scene; - bContext *mContext; + bool hasEffects(Scene *sce); + + const ExportSettings *export_settings; + KeyImageMap &key_image_map; + Scene *scene; + bContext *mContext; }; #endif |