~ubuntu-branches/ubuntu/maverick/blender/maverick

« back to all changes in this revision

Viewing changes to extern/qdune/core/Attributes.h

  • Committer: Bazaar Package Importer
  • Author(s): Khashayar Naderehvandi, Khashayar Naderehvandi, Alessio Treglia
  • Date: 2009-01-22 16:53:59 UTC
  • mfrom: (14.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090122165359-v0996tn7fbit64ni
Tags: 2.48a+dfsg-1ubuntu1
[ Khashayar Naderehvandi ]
* Merge from debian experimental (LP: #320045), Ubuntu remaining changes:
  - Add patch correcting header file locations.
  - Add libvorbis-dev and libgsm1-dev to Build-Depends.
  - Use avcodec_decode_audio2() in source/blender/src/hddaudio.c

[ Alessio Treglia ]
* Add missing previous changelog entries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef ATTRIBUTES_H
2
 
#define ATTRIBUTES_H
3
 
 
4
 
#include "ri.h"
5
 
 
6
 
#include "QDRender.h"
7
 
__BEGIN_QDRENDER
8
 
 
9
 
class SlShaderInstance;
10
 
class Transform;
11
 
 
12
 
// attribute flag bits
13
 
enum atFlagBits {AF_SMOOTH=1, AF_MATTE=2, AF_SIDES1=4, AF_ORIENTATION=8, AF_DICE_BINARY=16};
14
 
typedef int atFlags;
15
 
 
16
 
class Attributes
17
 
{
18
 
public:
19
 
        Attributes();
20
 
        Attributes(const Attributes &attributes);
21
 
        ~Attributes();
22
 
        Attributes &operator=(const Attributes &attributes);
23
 
 
24
 
        // attribute flags for RiShadingInterpolation, RiMatte,
25
 
        // RiOrientation/RiReverseOrientation and RiSides
26
 
        atFlags flags;
27
 
 
28
 
        // Shading
29
 
        RtColor color, opacity;               // RiColor & RiOpacity
30
 
        RtFloat texCoords[8];                 // RiTextureCoordinates
31
 
 
32
 
        // shading general
33
 
        RtFloat effectiveShadingRate;         // RiShadingRate
34
 
 
35
 
        // array of all current active lightsources, borrowed reference, do not delete!
36
 
        SlShaderInstance** lightsources;
37
 
 
38
 
        // Shaders, borrowed references, do not delete!
39
 
        SlShaderInstance* surface_shader;
40
 
        SlShaderInstance* displacement_shader;
41
 
        SlShaderInstance* atmosphere_shader;
42
 
        SlShaderInstance* interior_shader;
43
 
        SlShaderInstance* exterior_shader;
44
 
 
45
 
        // Geometry
46
 
        /*
47
 
        RtBound bound;                        // RiBound
48
 
        RtBound detail;                       // RiDetail
49
 
        RtFloat minVisible, lowerTransition,  // RiDetailRange
50
 
                                        upperTransition, maxVisible;
51
 
        RtFloat valueApproximation;           // RiGeometricApproximation (flatnesss)
52
 
        */
53
 
        Transform* cubicBasisMatrix[2];       // RiBasis, borrowed references, do not delete!
54
 
        RtInt cubicBasisStep[2];
55
 
        //trimCurveList; TODO, or not...
56
 
 
57
 
        // optional attributes
58
 
        RtFloat displacementbound_sphere;
59
 
        RtFloat opacity_threshold;
60
 
        unsigned int numlights, pad0;
61
 
};
62
 
 
63
 
__END_QDRENDER
64
 
 
65
 
#endif // ATTRIBUTES