~lbrulet-8/compiz-plugins-main/fix-876591

« back to all changes in this revision

Viewing changes to expo/src/glow.h

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2011-09-15 19:59:56 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: package-import@ubuntu.com-20110915195956-c8u92ig0zuvn8agu
Tags: 1:0.9.5.94+bzr20110915-0ubuntu1
* New upstream snapshot:
  - UIFe: Spread - center the workspace switcher to account for the
    launcher and pan (LP: #837545)
* debian/patches/01-grid-fix-rev87.patch:
  - removed in upstream snapshot

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 *
 
3
 * Compiz group plugin
 
4
 *
 
5
 * glow.h
 
6
 *
 
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>
 
13
 *
 
14
 *
 
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.
 
19
 *
 
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.
 
24
 *
 
25
 **/
 
26
 
 
27
#ifndef _EXPO_GLOW_H
 
28
#define _EXPO_GLOW_H
 
29
 
 
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
 
39
 
 
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
 
43
 */
 
44
 
 
45
typedef struct _GlowTextureProperties {
 
46
    char *textureData;
 
47
    int  textureSize;
 
48
    int  glowOffset;
 
49
} GlowTextureProperties;
 
50
 
 
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
 
56
 */
 
57
 
 
58
class GlowQuad {
 
59
    public:
 
60
        CompRect          mBox;
 
61
        GLTexture::Matrix mMatrix;
 
62
};
 
63
 
 
64
extern const GlowTextureProperties glowTextureProperties;
 
65
 
 
66
#endif