Macro smithay::egl_platform [−][src]
macro_rules! egl_platform { ($platform : ident, $native_display : expr, $required_extensions : expr) => { ... }; ($platform : ident, $native_display : expr, $required_extensions : expr, $attrib_list : expr) => { ... }; }
Expand description
Create a EGLPlatform<'a>
for the provided platform.
Arguments
platform
- The platform defined inffi::egl::
native_display
- The native display raw pointer which can be casted to*mut c_void
required_extensions
- The name of the required EGL Extension for this platform
Optional Arguments
attrib_list
- A list offfi::EGLint
like defined in the EGL Extension
Examples
ⓘ
use smithay::backend::egl::{ffi, native::EGLPlatform}; use smithay::egl_platform; // see: https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_platform_gbm.txt egl_platform!(PLATFORM_GBM_KHR, native_display, &["EGL_KHR_platform_gbm"]);