15 #include "config_androiddisplay.h" 16 #include "androidGraphicsPipe.h" 17 #include "androidGraphicsWindow.h" 18 #include "androidGraphicsStateGuardian.h" 19 #include "graphicsPipeSelection.h" 21 #include "pandaSystem.h" 23 #include "config_display.h" 25 Configure(config_androiddisplay);
26 NotifyCategoryDef(androiddisplay,
"display");
28 ConfigureFn(config_androiddisplay) {
29 init_libandroiddisplay();
41 init_libandroiddisplay() {
42 static bool initialized =
false;
49 display_cat.get_safe_ptr();
51 AndroidGraphicsPipe::init_type();
52 AndroidGraphicsWindow::init_type();
53 AndroidGraphicsStateGuardian::init_type();
56 selection->
add_pipe_type(AndroidGraphicsPipe::get_class_type(),
57 AndroidGraphicsPipe::pipe_constructor);
71 const string get_egl_error_string(
int error) {
73 case 0x3000:
return "EGL_SUCCESS";
break;
74 case 0x3001:
return "EGL_NOT_INITIALIZED";
break;
75 case 0x3002:
return "EGL_BAD_ACCESS";
break;
76 case 0x3003:
return "EGL_BAD_ALLOC";
break;
77 case 0x3004:
return "EGL_BAD_ATTRIBUTE";
break;
78 case 0x3005:
return "EGL_BAD_CONFIG";
break;
79 case 0x3006:
return "EGL_BAD_CONTEXT";
break;
80 case 0x3007:
return "EGL_BAD_CURRENT_SURFACE";
break;
81 case 0x3008:
return "EGL_BAD_DISPLAY";
break;
82 case 0x3009:
return "EGL_BAD_MATCH";
break;
83 case 0x300A:
return "EGL_BAD_NATIVE_PIXMAP";
break;
84 case 0x300B:
return "EGL_BAD_NATIVE_WINDOW";
break;
85 case 0x300C:
return "EGL_BAD_PARAMETER";
break;
86 case 0x300D:
return "EGL_BAD_SURFACE";
break;
87 case 0x300E:
return "EGL_CONTEXT_LOST";
break;
88 default:
return "Unknown error";
static PandaSystem * get_global_ptr()
Returns the global PandaSystem object.
This class is used as a namespace to group several global properties of Panda.
This maintains a list of GraphicsPipes by type that are available for creation.
static GraphicsPipeSelection * get_global_ptr()
Returns a pointer to the one global GraphicsPipeSelection object.
bool add_pipe_type(TypeHandle type, PipeConstructorFunc *func)
Adds a new kind of GraphicsPipe to the list of available pipes for creation.
void set_system_tag(const string &system, const string &tag, const string &value)
Intended for use by each subsystem to register its set of capabilities at startup.