13 #ifndef EGLPLUS_DISPLAY_1305291005_HPP
14 #define EGLPLUS_DISPLAY_1305291005_HPP
17 #include <eglplus/error/basic.hpp>
24 ::EGLDisplay GetEGLHandle(
const Display&);
32 friend ::EGLDisplay GetEGLHandle(
const Display&);
41 : _handle(EGLPLUS_EGLFUNC(GetDisplay)(EGL_DEFAULT_DISPLAY))
43 EGLPLUS_CHECK_SIMPLE(GetDisplay);
51 Display(::EGLNativeDisplayType display_id)
52 : _handle(EGLPLUS_EGLFUNC(GetDisplay)(display_id))
54 EGLPLUS_CHECK_SIMPLE(GetDisplay);
69 return result == EGL_TRUE;
79 EGLBoolean result = EGLPLUS_EGLFUNC(MakeCurrent)(
85 EGLPLUS_CHECK_SIMPLE(MakeCurrent);
86 return result == EGL_TRUE;
90 inline ::EGLDisplay GetEGLHandle(
const Display& display)
92 return display._handle;
97 #endif // include guard
Helper macro expanding into EGL function name.
Wrapper around EGLDisplay.
Definition: display.hpp:27
bool SwapInterval(EGLint interval)
Sets the SwapInterval for the current display.
Definition: display.hpp:62
Display(::EGLNativeDisplayType display_id)
Opens the display specified by display_id.
Definition: display.hpp:51
Display(void)
Opens the default display.
Definition: display.hpp:40
bool ReleaseContext(void)
Releases the current context without assigning a new one.
Definition: display.hpp:77