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

« back to all changes in this revision

Viewing changes to dae2ma/include/DAE2MAEffectAnimation.h

  • 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 DAE2MA.
 
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
#ifndef __DAE2MA_EFFECTANIMATION_H__
 
12
#define __DAE2MA_EFFECTANIMATION_H__
 
13
 
 
14
#include "DAE2MAPrerequisites.h"
 
15
#include "DAE2MABaseAnimation.h"
 
16
 
 
17
#include "COLLADAFWEffectCommon.h"
 
18
 
 
19
 
 
20
namespace DAE2MA
 
21
{
 
22
 
 
23
    /** Stores the material id, the animation id and the animated value with it's type. */
 
24
        class EffectAnimation : public BaseAnimation
 
25
    {
 
26
        public:
 
27
 
 
28
        enum AnimatedValueType
 
29
        {
 
30
            COLOR_OR_TEXTURE_STANDARD,
 
31
            COLOR_OR_TEXTURE_AMBIENT,
 
32
            COLOR_OR_TEXTURE_DIFFUSE,
 
33
            COLOR_OR_TEXTURE_EMISSION,
 
34
            FLOAT_OR_PARAM_REFRACTIVE_INDEX,
 
35
            COLOR_OR_TEXTURE_TRANSPARENCY, // Opacity
 
36
            FLOAT_OR_PARAM_ECCENTRICITY, // shininess (blinn)
 
37
            FLOAT_OR_PARAM_COSINE_POWER, // shininess (phong)
 
38
            COLOR_OR_TEXTURE_REFLECTED, // Reflective (reflect shader)
 
39
            FLOAT_OR_PARAM_REFLECTIVITY, // (reflect shader)
 
40
            COLOR_OR_TEXTURE_SPECULAR, // specular (reflect shader)
 
41
        };
 
42
 
 
43
    private:
 
44
 
 
45
        AnimatedValueType mAnimatedValueType;
 
46
 
 
47
        public:
 
48
 
 
49
        /** Constructor. */
 
50
                EffectAnimation();
 
51
 
 
52
        /** Destructor. */
 
53
                virtual ~EffectAnimation();
 
54
 
 
55
        const EffectAnimation::AnimatedValueType& getAnimatedValueType () const { return mAnimatedValueType; }
 
56
        void setAnimatedValueType ( const EffectAnimation::AnimatedValueType& val ) { mAnimatedValueType = val; }
 
57
 
 
58
        };
 
59
 
 
60
} // namespace DAE2MA
 
61
 
 
62
#endif // __DAE2MA_EFFECTANIMATION_H__