Go to the documentation of this file. 1 #ifndef EGLPLUS_EGL_API_EXTENSIONS_HPP
9 #define EGLPLUS_EGL_API_EXTENSIONS_HPP
15 template <
typename ApiTraits>
16 class basic_egl_operations;
20 template <
typename ApiTraits,
typename...>
31 explicit operator bool() const noexcept {
32 return _api.has_extension(_name);
37 return _api.has_extension(_name);
47 template <
typename ApiTraits>
59 return _api.has_extension(disp, _name);
69 template <
typename ApiTraits>
81 return _api.has_extension(dev, _name);
91 #endif // EGLPLUS_EGL_API_EXTENSIONS_HPP
auto operator()(display_handle disp) const noexcept -> bool
Tests if this extension is available on the specified display.
Definition: extensions.hpp:58
EGL-related code is placed in this namespace.
Definition: eglplus.hpp:11
Class wrapping the functions from the EGL API.
Definition: api.hpp:37
auto operator()() const noexcept -> bool
Tests if this extension is available.
Definition: extensions.hpp:36
auto operator()(device_handle dev) const noexcept -> bool
Tests if this extension is available on the specified device.
Definition: extensions.hpp:80
Wrapper for device-specific EGL extension information getter.
Definition: extensions.hpp:70
Non-owning wrapper for C-API opaque handle types.
Definition: handle.hpp:26
Wrapper for EGL extension information getter.
Definition: extensions.hpp:21
Wrapper for display-specific EGL extension information getter.
Definition: extensions.hpp:48