Mir
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
examples
graphics.h
Go to the documentation of this file.
1
/*
2
* Copyright © 2012 Canonical Ltd.
3
*
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License version 3,
6
* as published by the Free Software Foundation.
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*
16
* Authored by: Kevin DuBois <kevin.dubois@canonical.com>
17
*/
18
#ifndef MIR_DRAW_GRAPHICS
19
#define MIR_DRAW_GRAPHICS
20
21
#include <GLES2/gl2.h>
22
23
namespace
mir
24
{
25
namespace
draw
26
{
27
28
class
glAnimationBasic
29
{
30
public
:
31
glAnimationBasic
();
32
33
void
init_gl
();
34
void
render_gl
();
35
void
step
();
36
int
texture_width
();
37
int
texture_height
();
38
39
private
:
40
GLuint program, vPositionAttr, uvCoord, slideUniform;
41
float
slide;
42
};
43
44
}
45
}
46
47
#endif
/* MIR_DRAW_GRAPHICS */
Copyright © 2012,2013 Canonical Ltd.
Generated on Wed Oct 30 18:52:19 UTC 2013