1 /*
2     Copyright (c) 2008-2009 NetAllied Systems GmbH
3 
4 	This file is part of COLLADAMaya.
5 
6     Portions of the code are:
7     Copyright (c) 2005-2007 Feeling Software Inc.
8     Copyright (c) 2005-2007 Sony Computer Entertainment America
9     Copyright (c) 2004-2005 Alias Systems Corp.
10 
11     Licensed under the MIT Open Source License,
12     for details please see LICENSE file or the website
13     http://www.opensource.org/licenses/mit-license.php
14 */
15 
16 #include "COLLADAMayaStableHeaders.h"
17 
18 #include "COLLADAMayaEffectExporter.h"
19 #include "COLLADAMayaImageExporter.h"
20 
21 
22 namespace COLLADAMaya
23 {
24 
25     //---------------------------------------------------------------
ImageExporter(COLLADASW::StreamWriter * streamWriter)26     ImageExporter::ImageExporter ( COLLADASW::StreamWriter* streamWriter )
27             : COLLADASW::LibraryImages ( streamWriter )
28     {}
29 
30 
31     //---------------------------------------------------------------
exportImages(const ImageMap * imageMap)32     void ImageExporter::exportImages ( const ImageMap* imageMap )
33     {
34         // export the images
35         ImageMap::const_iterator it = imageMap->begin();
36         for ( ; it!=imageMap->end(); ++it )
37         {
38             // Create a new image structure
39             COLLADASW::Image* colladaImage = it->second;
40 
41             // Add the image to the collada document.
42             addImage ( *colladaImage );
43         }
44 
45         closeLibrary();
46     }
47 
48 }