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

« back to all changes in this revision

Viewing changes to COLLADAFramework/src/COLLADAFWEffect.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 COLLADAFramework.
 
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 "COLLADAFWStableHeaders.h"
 
12
#include "COLLADAFWEffect.h"
 
13
 
 
14
 
 
15
namespace COLLADAFW
 
16
{
 
17
 
 
18
        Effect::Effect( const UniqueId& uniqueId )
 
19
                : ObjectTemplate<COLLADA_TYPE::EFFECT> ( uniqueId )
 
20
        {
 
21
        }
 
22
 
 
23
    //------------------------------
 
24
        Effect::~Effect()
 
25
        {
 
26
        }
 
27
 
 
28
        //------------------------------
 
29
        TextureAttributes* Effect::createExtraTextureAttributes()
 
30
        {
 
31
                COLLADAFW::TextureAttributes* newTextureAttributes = new TextureAttributes();
 
32
                addExtraTextureAttributes( newTextureAttributes );
 
33
                return newTextureAttributes;
 
34
        }
 
35
 
 
36
        //------------------------------
 
37
        void Effect::addExtraTextureAttributes( COLLADAFW::TextureAttributes* textureAttributes )
 
38
        {
 
39
                mExtraTextures.append( textureAttributes );
 
40
        }
 
41
 
 
42
        //------------------------------
 
43
        const PointerArray<TextureAttributes>& Effect::getExtraTextures()
 
44
        {
 
45
                return mExtraTextures;
 
46
        }
 
47
} // namespace COLLADAFW