28 AndroidGraphicsPipe() {
30 _supported_types = OT_window | OT_buffer | OT_texture_buffer;
31 _egl_display =
nullptr;
36 _egl_display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
37 if (!eglInitialize(_egl_display,
nullptr,
nullptr)) {
38 androiddisplay_cat.error()
39 <<
"Couldn't initialize the EGL display: " 43 if (!eglBindAPI(EGL_OPENGL_ES_API)) {
44 androiddisplay_cat.error()
45 <<
"Couldn't bind EGL to the OpenGL ES API: " 56 ~AndroidGraphicsPipe() {
58 if (!eglTerminate(_egl_display)) {
59 androiddisplay_cat.error() <<
"Failed to terminate EGL display: " 90 GraphicsPipe::PreferredWindowThread
102 make_output(
const std::string &name,
118 DCAST_INTO_R(androidgsg, gsg,
nullptr);
124 if (((flags&BF_require_parasite)!=0)||
125 ((flags&BF_refuse_window)!=0)||
126 ((flags&BF_resizeable)!=0)||
127 ((flags&BF_size_track_host)!=0)||
128 ((flags&BF_rtt_cumulative)!=0)||
129 ((flags&BF_can_bind_color)!=0)||
130 ((flags&BF_can_bind_every)!=0)) {
This graphics pipe represents the interface for creating OpenGL ES graphics windows on an X-based (e....
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual PreferredWindowThread get_preferred_window_thread() const
Returns an indication of the thread in which this GraphicsPipe requires its window processing to be p...
An interface to manage Android windows and their appropriate EGL surfaces.
virtual std::string get_interface_name() const
Returns the name of the rendering interface associated with this GraphicsPipe.
A container for the various kinds of properties we might ask to have on a graphics window before we o...
const std::string get_egl_error_string(int error)
Returns the given EGL error as string.
An object to create GraphicsOutputs that share a particular 3-D API.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a base class for the various different classes that represent the result of a frame of render...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A tiny specialization on GLESGraphicsStateGuardian to add some egl-specific information.
Encapsulates all the communication with a particular instance of a given rendering backend.
PT(GraphicsPipe) AndroidGraphicsPipe
This function is passed to the GraphicsPipeSelection object to allow the user to make a default Andro...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class is the main interface to controlling the render process.
TypeHandle is the identifier used to differentiate C++ class types.
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...