14 #ifndef EGLGRAPHICSSTATEGUARDIAN_H
15 #define EGLGRAPHICSSTATEGUARDIAN_H
25 typedef GLES2GraphicsStateGuardian BaseGraphicsStateGuardian;
26 #elif defined(OPENGLES_1)
27 typedef GLESGraphicsStateGuardian BaseGraphicsStateGuardian;
29 typedef GLGraphicsStateGuardian BaseGraphicsStateGuardian;
40 bool &pbuffer_supported,
bool &pixmap_supported,
41 bool &slow, EGLConfig config);
44 bool need_pbuffer,
bool need_pixmap);
55 EGLContext _share_context;
57 EGLDisplay _egl_display;
59 XVisualInfo *_visual =
nullptr;
65 virtual void gl_flush()
const;
66 virtual GLenum gl_get_error()
const;
68 virtual void query_gl_version();
69 virtual void get_extra_extensions();
70 virtual void *do_get_extension_func(
const char *name);
73 int _egl_version_major, _egl_version_minor;
79 static void init_type() {
80 BaseGraphicsStateGuardian::init_type();
82 BaseGraphicsStateGuardian::get_class_type());
85 return get_class_type();
87 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
A container for the various kinds of properties we might ask to have on a graphics frameBuffer before...
This class is the main interface to controlling the render process.
An object to create GraphicsOutputs that share a particular 3-D API.
TypeHandle is the identifier used to differentiate C++ class types.
This graphics pipe represents the interface for creating OpenGL ES graphics windows on an X-based (e....
A tiny specialization on GLESGraphicsStateGuardian to add some egl-specific information.
const FrameBufferProperties & get_fb_properties() const
Gets the FrameBufferProperties for all windows and buffers that use this GSG.
virtual void reset()
Resets all internal state as if the gsg were newly created.
bool egl_is_at_least_version(int major_version, int minor_version) const
Returns true if the runtime GLX version number is at least the indicated value, false otherwise.
void choose_pixel_format(const FrameBufferProperties &properties, eglGraphicsPipe *egl_pipe, bool need_window, bool need_pbuffer, bool need_pixmap)
Selects a visual or fbconfig for all the windows and buffers that use this gsg.
void get_properties(FrameBufferProperties &properties, bool &pbuffer_supported, bool &pixmap_supported, bool &slow, EGLConfig config)
Gets the FrameBufferProperties to match the indicated config.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...