Panda3D
 All Classes Functions Variables Enumerations
config_egldisplay.h
00001 // Filename: config_egldisplay.h
00002 // Created by:  cary (21May09)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef CONFIG_EGLDISPLAY_H
00016 #define CONFIG_EGLDISPLAY_H
00017 
00018 #include "pandabase.h"
00019 #include "notifyCategoryProxy.h"
00020 #include "configVariableString.h"
00021 #include "configVariableBool.h"
00022 #include "configVariableInt.h"
00023 
00024 #if defined(OPENGLES_1) && defined(OPENGLES_2)
00025   #error OPENGLES_1 and OPENGLES_2 cannot be defined at the same time!
00026 #endif
00027 #if !defined(OPENGLES_1) && !defined(OPENGLES_2)
00028   #error Either OPENGLES_1 or OPENGLES_2 must be defined when compiling egldisplay!
00029 #endif
00030 
00031 #ifdef OPENGLES_2
00032   NotifyCategoryDecl(egldisplay, EXPCL_PANDAGLES2, EXPTP_PANDAGLES2);
00033   
00034   extern EXPCL_PANDAGLES2 void init_libegldisplay();
00035   extern EXPCL_PANDAGLES2 const string get_egl_error_string(int error);
00036 #else
00037   NotifyCategoryDecl(egldisplay, EXPCL_PANDAGLES, EXPTP_PANDAGLES);
00038   
00039   extern EXPCL_PANDAGLES void init_libegldisplay();
00040   extern EXPCL_PANDAGLES const string get_egl_error_string(int error);
00041 #endif
00042 
00043 extern ConfigVariableString display_cfg;
00044 extern ConfigVariableBool x_error_abort;
00045 
00046 extern ConfigVariableInt x_wheel_up_button;
00047 extern ConfigVariableInt x_wheel_down_button;
00048 extern ConfigVariableInt x_wheel_left_button;
00049 extern ConfigVariableInt x_wheel_right_button;
00050 
00051 #endif
 All Classes Functions Variables Enumerations