Source browser

examples/egl_context.hpp

Read the complete file below or download its original bytes. Line numbers provide stable links to a declaration or processing step.

File fingerprint
1#ifndef SHDR_EXAMPLES_EGL_CONTEXT_HPP // Open this include guard or optional feature branch.
2#define SHDR_EXAMPLES_EGL_CONTEXT_HPP // Define SHDR_EXAMPLES_EGL_CONTEXT_HPP for the declarations that follow.
3
4#include "shdr.h" // Include shdr.h declarations.
5
6#if defined(SHDR_ENABLE_EGL) && SHDR_ENABLE_EGL // Select the platform or build feature required by this branch.
7namespace shdr_examples { // Group these helpers within their namespace.
8
9/// Compatibility names shared by the example command-line runners and GL tests.
10using egl_context = shdr::headless_context; // Give this type or declaration a convenient local name.
11using context_unavailable = shdr::backend_unavailable; // Give this type or declaration a convenient local name.
12
13} // namespace shdr_examples
14#endif // Finish this conditional compilation branch.
15#endif // Finish this conditional compilation branch.