Mir
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 
29 {
30 public:
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 */
int texture_height()
Definition: graphics_utils.cpp:82
Definition: as_render_target.h:27
glAnimationBasic()
Definition: graphics_utils.cpp:69
Definition: graphics.h:28
int texture_width()
Definition: graphics_utils.cpp:77
void render_gl()
Definition: graphics_utils.cpp:125
void init_gl()
Definition: graphics_utils.cpp:87
void step()
Definition: graphics_utils.cpp:141

Copyright © 2012-2016 Canonical Ltd.
Generated on Sat Dec 3 12:48:59 UTC 2016