A tiny specialization on GLESGraphicsStateGuardian to add some egl-specific information. More...
#include "eglGraphicsStateGuardian.h"
Public Member Functions | |
eglGraphicsStateGuardian (GraphicsEngine *engine, GraphicsPipe *pipe, eglGraphicsStateGuardian *share_with) | |
void | choose_pixel_format (const FrameBufferProperties &properties, X11_Display *_display, int _screen, bool need_pbuffer, bool need_pixmap) |
Selects a visual or fbconfig for all the windows and buffers that use this gsg. More... | |
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. More... | |
virtual TypeHandle | force_init_type () |
const FrameBufferProperties & | get_fb_properties () const |
Gets the FrameBufferProperties for all windows and buffers that use this GSG. More... | |
void | get_properties (FrameBufferProperties &properties, bool &pbuffer_supported, bool &pixmap_supported, bool &slow, EGLConfig config) |
Gets the FrameBufferProperties to match the indicated config. More... | |
virtual TypeHandle | get_type () const |
virtual void | reset () |
Resets all internal state as if the gsg were newly created. More... | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static void | init_type () |
Public Attributes | |
EGLContext | _context |
X11_Display * | _display |
EGLDisplay | _egl_display |
EGLConfig | _fbconfig |
FrameBufferProperties | _fbprops |
int | _screen |
EGLContext | _share_context |
XVisualInfo * | _visual |
XVisualInfo * | _visuals |
A tiny specialization on GLESGraphicsStateGuardian to add some egl-specific information.
Definition at line 28 of file eglGraphicsStateGuardian.h.
void eglGraphicsStateGuardian::choose_pixel_format | ( | const FrameBufferProperties & | properties, |
X11_Display * | display, | ||
int | screen, | ||
bool | need_pbuffer, | ||
bool | need_pixmap | ||
) |
Selects a visual or fbconfig for all the windows and buffers that use this gsg.
Also creates the GL context and obtains the visual.
Definition at line 133 of file eglGraphicsStateGuardian.cxx.
References FrameBufferProperties::clear(), and get_egl_error_string().
bool eglGraphicsStateGuardian::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.
Definition at line 277 of file eglGraphicsStateGuardian.cxx.
|
inline |
Gets the FrameBufferProperties for all windows and buffers that use this GSG.
Definition at line 19 of file eglGraphicsStateGuardian.I.
void eglGraphicsStateGuardian::get_properties | ( | FrameBufferProperties & | properties, |
bool & | pbuffer_supported, | ||
bool & | pixmap_supported, | ||
bool & | slow, | ||
EGLConfig | config | ||
) |
Gets the FrameBufferProperties to match the indicated config.
Definition at line 70 of file eglGraphicsStateGuardian.cxx.
References FrameBufferProperties::clear(), get_egl_error_string(), and FrameBufferProperties::set_rgba_bits().
|
virtual |
Resets all internal state as if the gsg were newly created.
Definition at line 251 of file eglGraphicsStateGuardian.cxx.