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