2
Copyright (c) 2009 NetAllied Systems GmbH
4
This file is part of dae2ogre.
6
Licensed under the MIT Open Source License,
7
for details please see LICENSE file or the website
8
http://www.opensource.org/licenses/mit-license.php
11
#include "DAE2OgreStableHeaders.h"
12
#include "DAE2OgreBaseWriter.h"
14
#include "DAE2OgreOgreWriter.h"
20
//------------------------------
21
BaseWriter::BaseWriter( OgreWriter* ogreWriter )
22
: mOgreWriter(ogreWriter)
26
//------------------------------
27
BaseWriter::~BaseWriter()
31
//------------------------------
32
void BaseWriter::reportError( const String& method, const String& message, OgreWriter::Severity severity )
34
OgreWriter::reportError(method, message, severity);
37
//------------------------------
38
const OgreWriter::GeometryUniqueIdInstanceGeometryInfoMap& BaseWriter::getGeometryUniqueIdInstanceGeometryInfoMap()
40
return mOgreWriter->getGeometryUniqueIdInstanceGeometryInfoMap();
43
//------------------------------
44
void BaseWriter::addGeometryUniqueIdInstanceGeometryInfoPair( const COLLADAFW::UniqueId& geoId, const OgreWriter::InstanceGeometryInfo& instanceGeoInfo )
46
OgreWriter::GeometryUniqueIdInstanceGeometryInfoMap& map = mOgreWriter->getGeometryUniqueIdInstanceGeometryInfoMap();
47
map.insert(std::make_pair(geoId, instanceGeoInfo));
51
} // namespace DAE2Ogre