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

« back to all changes in this revision

Viewing changes to COLLADAFramework/src/COLLADAFWTexture.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 "COLLADAFWTexture.h"
 
13
 
 
14
 
 
15
namespace COLLADAFW
 
16
{
 
17
 
 
18
    //------------------------------
 
19
    Texture::Texture ( const UniqueId& uniqueId )
 
20
        : ObjectTemplate<COLLADA_TYPE::TEXTURE>(uniqueId)
 
21
                , mSamplerId(0)
 
22
                , mTextureMapId(0)
 
23
        , mTexcoord("")
 
24
    {
 
25
    }
 
26
 
 
27
    //------------------------------
 
28
        Texture::~Texture()
 
29
        {
 
30
        }
 
31
 
 
32
        //------------------------------
 
33
        void Texture::setUniqueId( const UniqueId& uniqueId )
 
34
        {
 
35
                ObjectTemplate<COLLADA_TYPE::TEXTURE>::setUniqueId ( uniqueId );
 
36
        }
 
37
 
 
38
        //------------------------------
 
39
        void Texture::setSamplerId( SamplerID samplerId )
 
40
        {
 
41
                mSamplerId = samplerId;
 
42
        }
 
43
 
 
44
        //------------------------------
 
45
        void Texture::setTextureMapId( TextureMapId textureMapId )
 
46
        {
 
47
                mTextureMapId = textureMapId;
 
48
        }
 
49
    
 
50
        //------------------------------
 
51
    void Texture::setTexcoord( const String& texcoord )
 
52
        {
 
53
                mTexcoord = texcoord;
 
54
        }
 
55
    
 
56
        //------------------------------
 
57
        COLLADAFW::SamplerID Texture::getSamplerId() const
 
58
        {
 
59
                return mSamplerId;
 
60
        }
 
61
 
 
62
        //------------------------------
 
63
        COLLADAFW::TextureMapId Texture::getTextureMapId() const
 
64
        {
 
65
                return mTextureMapId;
 
66
        }
 
67
    
 
68
        //------------------------------
 
69
    String Texture::getTexcoord() const
 
70
        {
 
71
                return mTexcoord;
 
72
        }
 
73
 
 
74
} // namespace COLLADAFW