OGLplus  (0.59.0) a C++ wrapper for rendering APIs

fb_config.hpp
Go to the documentation of this file.
1 
9 #ifndef EAGINE_INTEROP_GLX_FB_CONFIG_HPP
10 #define EAGINE_INTEROP_GLX_FB_CONFIG_HPP
11 
12 #include <GL/glx.h>
13 #include <stdexcept>
14 
15 namespace eagine::glx {
16 
17 class fb_configs;
18 
19 class fb_config {
20 private:
21  ::GLXFBConfig _handle;
22 
23  fb_config(::GLXFBConfig handle)
24  : _handle(handle) {}
25 
26  friend class fb_configs;
27 
28 public:
29  auto handle() const -> ::GLXFBConfig {
30  return _handle;
31  }
32 
33  operator ::GLXFBConfig() const {
34  return handle();
35  }
36 };
37 
38 } // namespace eagine::glx
39 
40 #endif
GLX wrapper code is placed in this namespace.
Definition: x11.hpp:14

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).