Blender  V2.93
ImageExporter.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
21 #pragma once
22 
23 #include <string>
24 #include <vector>
25 
26 #include "COLLADASWLibraryImages.h"
27 #include "COLLADASWStreamWriter.h"
28 
29 #include "DNA_image_types.h"
30 #include "DNA_material_types.h"
31 #include "DNA_object_types.h"
32 #include "DNA_scene_types.h"
33 
34 #include "ExportSettings.h"
35 #include "collada_utils.h"
36 
37 class ImagesExporter : COLLADASW::LibraryImages {
38  public:
39  ImagesExporter(COLLADASW::StreamWriter *sw,
40  BCExportSettings &export_settings,
41  KeyImageMap &key_image_map);
42  void exportImages(Scene *sce);
43 
44  private:
45  BCExportSettings &export_settings;
46  KeyImageMap &key_image_map;
47  void export_UV_Image(Image *image, bool use_copies);
48 };
Object is a sort of wrapper for general info.
ImagesExporter(COLLADASW::StreamWriter *sw, BCExportSettings &export_settings, KeyImageMap &key_image_map)
void exportImages(Scene *sce)
std::map< std::string, Image * > KeyImageMap
Definition: collada_utils.h:70