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

« back to all changes in this revision

Viewing changes to COLLADAMax/src/COLLADAMaxEffectImporter.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) 2008-2009 NetAllied Systems GmbH
 
3
 
 
4
This file is part of COLLADAMax.
 
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
 
 
10
Based on the 3dsMax COLLADASW Tools:
 
11
Copyright (c) 2005-2006 Autodesk Media Entertainment
 
12
 
 
13
Licensed under the MIT Open Source License, 
 
14
for details please see LICENSE file or the website
 
15
http://www.opensource.org/licenses/mit-license.php
 
16
*/
 
17
 
 
18
#include "COLLADAMaxStableHeaders.h"
 
19
#include "COLLADAMaxEffectImporter.h"
 
20
 
 
21
#include "COLLADAFWEffect.h"
 
22
 
 
23
 
 
24
namespace COLLADAMax
 
25
{
 
26
 
 
27
    //------------------------------
 
28
        EffectImporter::EffectImporter( DocumentImporter* documentImporter, const COLLADAFW::Effect* effect )
 
29
                : ImporterBase(documentImporter)
 
30
                , mEffect(effect)
 
31
        {
 
32
        }
 
33
 
 
34
        
 
35
    //------------------------------
 
36
        EffectImporter::~EffectImporter()
 
37
        {
 
38
        }
 
39
 
 
40
        bool EffectImporter::import()
 
41
        {
 
42
                const COLLADAFW::UniqueId& effectUniqueId = mEffect->getUniqueId();
 
43
                if ( effectUniqueId.isValid() )
 
44
                        addUniqueIdFWEffectPair(effectUniqueId, *mEffect);
 
45
                return true;
 
46
        }
 
47
 
 
48
 
 
49
 
 
50
} // namespace COLLADAMax