Panda3D
config_egldisplay.h
1 // Filename: config_egldisplay.h
2 // Created by: cary (21May09)
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_EGLDISPLAY_H
16 #define CONFIG_EGLDISPLAY_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 egldisplay!
29 #endif
30 
31 #ifdef OPENGLES_2
32  NotifyCategoryDecl(egldisplay, EXPCL_PANDAGLES2, EXPTP_PANDAGLES2);
33 
34  extern EXPCL_PANDAGLES2 void init_libegldisplay();
35  extern EXPCL_PANDAGLES2 const string get_egl_error_string(int error);
36 #else
37  NotifyCategoryDecl(egldisplay, EXPCL_PANDAGLES, EXPTP_PANDAGLES);
38 
39  extern EXPCL_PANDAGLES void init_libegldisplay();
40  extern EXPCL_PANDAGLES const string get_egl_error_string(int error);
41 #endif
42 
43 extern ConfigVariableString display_cfg;
44 extern ConfigVariableBool x_error_abort;
45 
46 extern ConfigVariableInt x_wheel_up_button;
47 extern ConfigVariableInt x_wheel_down_button;
48 extern ConfigVariableInt x_wheel_left_button;
49 extern ConfigVariableInt x_wheel_right_button;
50 
51 #endif
This is a convenience class to specialize ConfigVariable as a boolean type.
This is a convenience class to specialize ConfigVariable as a string type.
This is a convenience class to specialize ConfigVariable as an integer type.