~ubuntu-branches/ubuntu/wily/opencollada/wily-proposed

« back to all changes in this revision

Viewing changes to dae2ogre/src/DAE2OgreBaseWriter.cpp

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2015-05-14 17:23:27 UTC
  • Revision ID: package-import@ubuntu.com-20150514172327-f862u8envms01fra
Tags: upstream-0.1.0~20140703.ddf8f47+dfsg1
ImportĀ upstreamĀ versionĀ 0.1.0~20140703.ddf8f47+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (c) 2009 NetAllied Systems GmbH
 
3
 
 
4
This file is part of dae2ogre.
 
5
 
 
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
 
9
*/
 
10
 
 
11
#include "DAE2OgreStableHeaders.h"
 
12
#include "DAE2OgreBaseWriter.h"
 
13
 
 
14
#include "DAE2OgreOgreWriter.h"
 
15
 
 
16
 
 
17
namespace DAE2Ogre
 
18
{
 
19
 
 
20
    //------------------------------
 
21
        BaseWriter::BaseWriter( OgreWriter* ogreWriter )
 
22
                : mOgreWriter(ogreWriter)
 
23
        {
 
24
        }
 
25
 
 
26
    //------------------------------
 
27
        BaseWriter::~BaseWriter()
 
28
        {
 
29
        }
 
30
 
 
31
        //------------------------------
 
32
        void BaseWriter::reportError( const String& method, const String& message, OgreWriter::Severity severity )
 
33
        {
 
34
                OgreWriter::reportError(method, message, severity);
 
35
        }
 
36
 
 
37
        //------------------------------
 
38
        const OgreWriter::GeometryUniqueIdInstanceGeometryInfoMap& BaseWriter::getGeometryUniqueIdInstanceGeometryInfoMap()
 
39
        {
 
40
                return mOgreWriter->getGeometryUniqueIdInstanceGeometryInfoMap();
 
41
        }
 
42
 
 
43
        //------------------------------
 
44
        void BaseWriter::addGeometryUniqueIdInstanceGeometryInfoPair( const COLLADAFW::UniqueId& geoId, const OgreWriter::InstanceGeometryInfo& instanceGeoInfo )
 
45
        {
 
46
                OgreWriter::GeometryUniqueIdInstanceGeometryInfoMap& map = mOgreWriter->getGeometryUniqueIdInstanceGeometryInfoMap();
 
47
                map.insert(std::make_pair(geoId, instanceGeoInfo));
 
48
        }
 
49
 
 
50
 
 
51
} // namespace DAE2Ogre