Panda3D
config_androiddisplay.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file config_androiddisplay.h
10  * @author rdb
11  * @date 2013-01-11
12  */
13 
14 #ifndef CONFIG_ANDROIDDISPLAY_H
15 #define CONFIG_ANDROIDDISPLAY_H
16 
17 #include "pandabase.h"
18 #include "notifyCategoryProxy.h"
19 #include "configVariableString.h"
20 #include "configVariableBool.h"
21 #include "configVariableInt.h"
22 
23 #if defined(OPENGLES_1) && defined(OPENGLES_2)
24  #error OPENGLES_1 and OPENGLES_2 cannot be defined at the same time!
25 #endif
26 #if !defined(OPENGLES_1) && !defined(OPENGLES_2)
27  #error Either OPENGLES_1 or OPENGLES_2 must be defined when compiling androiddisplay!
28 #endif
29 
30 #ifdef OPENGLES_2
31  NotifyCategoryDecl(androiddisplay, EXPCL_PANDAGLES2, EXPTP_PANDAGLES2);
32 
33  extern EXPCL_PANDAGLES2 void init_libandroiddisplay();
34  extern EXPCL_PANDAGLES2 const std::string get_egl_error_string(int error);
35 #else
36  NotifyCategoryDecl(androiddisplay, EXPCL_PANDAGLES, EXPTP_PANDAGLES);
37 
38  extern EXPCL_PANDAGLES void init_libandroiddisplay();
39  extern EXPCL_PANDAGLES const std::string get_egl_error_string(int error);
40 #endif
41 
42 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
EXPCL_PANDAGLES void init_libandroiddisplay()
Initializes the library.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
EXPCL_PANDAGLES const std::string get_egl_error_string(int error)
Returns the given EGL error as string.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.