7
* Copyright : (C) 2006-2010 by Patrick Niklaus, Roi Cohen,
8
* Danny Baumann, Sam Spilsbury
9
* Authors: Patrick Niklaus <patrick.niklaus@googlemail.com>
10
* Roi Cohen <roico.beryl@gmail.com>
11
* Danny Baumann <maniac@opencompositing.org>
12
* Sam Spilsbury <smspillaz@gmail.com>
15
* This program is free software; you can redistribute it and/or
16
* modify it under the terms of the GNU General Public License
17
* as published by the Free Software Foundation; either version 2
18
* of the License, or (at your option) any later version.
20
* This program is distributed in the hope that it will be useful,
21
* but WITHOUT ANY WARRANTY; without even the implied warranty of
22
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
* GNU General Public License for more details.
30
#define GLOWQUAD_TOPLEFT 0
31
#define GLOWQUAD_TOPRIGHT 1
32
#define GLOWQUAD_BOTTOMLEFT 2
33
#define GLOWQUAD_BOTTOMRIGHT 3
34
#define GLOWQUAD_TOP 4
35
#define GLOWQUAD_BOTTOM 5
36
#define GLOWQUAD_LEFT 6
37
#define GLOWQUAD_RIGHT 7
38
#define NUM_GLOWQUADS 8
40
/* Represents a particular glow texture, so here
41
* we have hardcoded in the texture data, the offset
42
* and the size of the texture
45
typedef struct _GlowTextureProperties {
49
} GlowTextureProperties;
51
/* Each glow quad contains a 2x2 scale + positional matrix
52
* (the 3rd column is not used since that is for matrix skew
53
* operations which we do not care about)
54
* and also a CompRect which describes the size and position of
55
* the quad on the glow
61
GLTexture::Matrix mMatrix;
64
extern const GlowTextureProperties glowTextureProperties;