OGLplus
(0.59.0)
a C++ wrapper for rendering APIs
eagine
interop
glx
pbuffer.hpp
Go to the documentation of this file.
1
9
#ifndef EAGINE_INTEROP_GLX_PBUFFER_HPP
10
#define EAGINE_INTEROP_GLX_PBUFFER_HPP
11
12
#include "../x11/display.hpp"
13
#include "
fb_config.hpp
"
14
15
#include <GL/glx.h>
16
#include <stdexcept>
17
18
namespace
eagine::glx
{
19
20
class
pbuffer
21
:
public
x11::display_object<::GLXPbuffer, void(::Display*, ::GLXPbuffer)> {
22
public
:
23
pbuffer(
24
const
x11::display& dpy,
25
const
glx::fb_config& fbc,
26
const
int
* attrib_list)
27
: x11::display_object<::GLXPbuffer, void(::Display*, ::GLXPbuffer)>(
28
dpy,
29
::glXCreatePbuffer(dpy, fbc, attrib_list),
30
::glXDestroyPbuffer,
31
"Error creating glX Pbuffer"
) {}
32
};
33
34
}
// namespace eagine::glx
35
36
#endif
fb_config.hpp
eagine::glx
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).