~ubuntu-branches/ubuntu/trusty/compiz/trusty

« back to all changes in this revision

Viewing changes to plugins/firepaint/src/firepaint.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2013-08-22 06:58:07 UTC
  • mto: This revision was merged to the branch mainline in revision 3352.
  • Revision ID: package-import@ubuntu.com-20130822065807-17nlzez0d30y09so
Tags: upstream-0.9.10+13.10.20130822
ImportĀ upstreamĀ versionĀ 0.9.10+13.10.20130822

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    public:
44
44
 
45
45
        Particle ();
46
 
    
47
 
        float life;             /* particle life */
48
 
        float fade;             /* fade speed */
49
 
        float width;            /* particle width */
50
 
        float height;           /* particle height */
51
 
        float w_mod;            /* particle size modification during life */
52
 
        float h_mod;            /* particle size modification during life */
53
 
        float r;                /* red value */
54
 
        float g;                /* green value */
55
 
        float b;                /* blue value */
56
 
        float a;                /* alpha value */
57
 
        float x;                /* X position */
58
 
        float y;                /* Y position */
59
 
        float z;                /* Z position */
60
 
        float xi;               /* X direction */
61
 
        float yi;               /* Y direction */
62
 
        float zi;               /* Z direction */
63
 
        float xg;               /* X gravity */
64
 
        float yg;               /* Y gravity */
65
 
        float zg;               /* Z gravity */
66
 
        float xo;               /* orginal X position */
67
 
        float yo;               /* orginal Y position */
68
 
        float zo;               /* orginal Z position */
 
46
 
 
47
        float life;     /* particle life */
 
48
        float fade;     /* fade speed */
 
49
        float width;    /* particle width */
 
50
        float height;   /* particle height */
 
51
        float w_mod;    /* particle size modification during life */
 
52
        float h_mod;    /* particle size modification during life */
 
53
        float r;        /* red value */
 
54
        float g;        /* green value */
 
55
        float b;        /* blue value */
 
56
        float a;        /* alpha value */
 
57
        float x;        /* X position */
 
58
        float y;        /* Y position */
 
59
        float z;        /* Z position */
 
60
        float xi;       /* X direction */
 
61
        float yi;       /* Y direction */
 
62
        float zi;       /* Z direction */
 
63
        float xg;       /* X gravity */
 
64
        float yg;       /* Y gravity */
 
65
        float zg;       /* Z gravity */
 
66
        float xo;       /* orginal X position */
 
67
        float yo;       /* orginal Y position */
 
68
        float zo;       /* orginal Z position */
69
69
};
70
70
 
71
71
 
78
78
        ~ParticleSystem ();
79
79
 
80
80
        std::vector <Particle> particles;
81
 
        float    slowdown;
82
 
        GLuint   tex;
83
 
        bool     active;
84
 
        int      x, y;
85
 
        float    darken;
86
 
        GLuint   blendMode;
 
81
        float                  slowdown;
 
82
        GLuint                 tex;
 
83
        bool                   active;
 
84
        int                    x;
 
85
        int                    y;
 
86
        float                  darken;
 
87
        GLuint                 blendMode;
87
88
 
88
89
        /* Cache used in drawParticles 
89
90
        It's here to avoid multiple mem allocation 
90
91
        during drawing */
91
 
        std::vector<GLfloat>  vertices_cache;
92
 
        std::vector<GLfloat>  coords_cache;
93
 
        std::vector<GLushort> colors_cache;
94
 
        std::vector<GLushort> dcolors_cache;
95
 
 
96
 
        void
97
 
        initParticles (int            f_numParticles);
98
 
 
99
 
        void
100
 
        drawParticles (const GLMatrix   &transform);
101
 
 
102
 
        void
103
 
        updateParticles (float          time);
 
92
        std::vector<GLfloat>   vertices_cache;
 
93
        std::vector<GLfloat>   coords_cache;
 
94
        std::vector<GLushort>  colors_cache;
 
95
        std::vector<GLushort>  dcolors_cache;
 
96
 
 
97
        void
 
98
        initParticles (int f_numParticles);
 
99
 
 
100
        void
 
101
        drawParticles (const GLMatrix &transform);
 
102
 
 
103
        void
 
104
        updateParticles (float time);
104
105
 
105
106
        void
106
107
        finiParticles ();
118
119
        FireScreen (CompScreen *);
119
120
        ~FireScreen ();
120
121
 
121
 
        CompositeScreen *cScreen;
122
 
        GLScreen        *gScreen;
123
 
 
124
 
        ParticleSystem  ps;
125
 
 
126
 
        bool            init;
127
 
 
128
 
        std::vector     <XPoint> points;
129
 
        float           brightness;
 
122
        CompositeScreen        *cScreen;
 
123
        GLScreen               *gScreen;
 
124
 
 
125
        ParticleSystem         ps;
 
126
 
 
127
        bool                   init;
 
128
 
 
129
        std::vector <XPoint>   points;
 
130
        float                  brightness;
 
131
        float                  saturation;
130
132
 
131
133
        CompScreen::GrabHandle grabIndex;
132
134
 
138
140
 
139
141
        bool
140
142
        glPaintOutput (const GLScreenPaintAttrib &,
141
 
                       const GLMatrix            &,
142
 
                       const CompRegion          &,
143
 
                       CompOutput                *,
144
 
                       unsigned int               );
 
143
                       const GLMatrix            &,
 
144
                       const CompRegion          &,
 
145
                       CompOutput                *,
 
146
                       unsigned int                );
145
147
 
146
148
        void
147
149
        donePaint ();
170
172
        clear (CompAction         *action,
171
173
               CompAction::State  state,
172
174
               CompOption::Vector options);
173
 
 
174
175
};
175
176
 
176
177
#define FIRE_SCREEN(s)                                                         \