Go to the documentation of this file. 1 #ifndef EGLPLUS_EGL_API_SURFACE_ATTRIBS_HPP
9 #define EGLPLUS_EGL_API_SURFACE_ATTRIBS_HPP
26 static constexpr
auto terminator() noexcept ->
egl_types::int_type {
37 template <std::
size_t N>
58 operator|(surface_attribute key, texture_format value) noexcept
67 operator|(surface_attribute key, texture_target value) noexcept
76 operator|(surface_attribute key, gl_colorspace value) noexcept
84 static constexpr
auto operator|(surface_attribute key,
bool value) noexcept
86 #if defined(EGL_TRUE) && defined(EGL_FALSE)
87 return {key, value ? EGL_TRUE : EGL_FALSE};
89 return {key, value ? 1 : 0};
95 #endif // EGLPLUS_EGL_API_SURFACE_ATTRIBS_HPP
EGL-related code is placed in this namespace.
Definition: eglplus.hpp:11
A single key/value pair for a key/value list.
Definition: key_val_list.hpp:27
Collection of aliases for EGL types.
Definition: config.hpp:52
Template for classes wrapping static key/value typically attribute lists.
Definition: key_val_list.hpp:21
Typed enumeration for EGL surface attribute constants.
Definition: enum_types.hpp:76
key_value_list_element< surface_attrib_traits > surface_attribute_value
Alias for EGL config attribute list key/value pair.
Definition: surface_attribs.hpp:43
egl_types::int_type value_type
Alias for the value type.
Definition: surface_attribs.hpp:24
Traits for EGL rendering surface attribute key/value list traits.
Definition: surface_attribs.hpp:19
EGLint int_type
Signed integer type.
Definition: config.hpp:116