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

pixmap.hpp
Go to the documentation of this file.
1 
9 #ifndef EAGINE_INTEROP_GLX_PIXMAP_HPP
10 #define EAGINE_INTEROP_GLX_PIXMAP_HPP
11 
12 #include "../x11/display.hpp"
13 #include "../x11/pixmap.hpp"
14 #include "../x11/visual_info.hpp"
15 
16 #include <GL/glx.h>
17 #include <stdexcept>
18 
19 namespace eagine::glx {
20 
21 class pixmap
22  : public x11::display_object<::GLXPixmap, void(::Display*, ::GLXPixmap)> {
23 public:
24  pixmap(
25  const x11::display& dpy,
26  const x11::visual_info& vi,
27  const x11::pixmap& pmp)
28  : x11::display_object<::GLXPixmap, void(::Display*, ::GLXPixmap)>(
29  dpy,
30  ::glXCreateGLXPixmap(dpy, vi, pmp),
31  ::glXDestroyGLXPixmap,
32  "Error creating glX Pixmap") {}
33 };
34 
35 } // namespace eagine::glx
36 
37 #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).