Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
eglapp.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 3 as
6  * 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  * Author: Daniel van Vugt <daniel.van.vugt@canonical.com>
17  */
18 
19 #ifndef __EGLAPP_H__
20 #define __EGLAPP_H__
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 typedef int mir_eglapp_bool;
27 struct MirConnection;
28 struct MirSurface;
29 
31 
32 mir_eglapp_bool mir_eglapp_init(int argc, char *argv[],
33  unsigned int *width, unsigned int *height);
34 void mir_eglapp_swap_buffers(void);
35 mir_eglapp_bool mir_eglapp_running(void);
36 void mir_eglapp_shutdown(void);
37 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif

Copyright © 2012,2013 Canonical Ltd.
Generated on Wed Oct 30 18:52:19 UTC 2013