OGLplus
(0.59.0)
a C++ wrapper for rendering APIs
eagine
interop
x11
color_map.hpp
Go to the documentation of this file.
1
9
#ifndef EAGINE_INTEROP_X11_COLOR_MAP_HPP
10
#define EAGINE_INTEROP_X11_COLOR_MAP_HPP
11
12
#include "
display.hpp
"
13
#include "
visual_info.hpp
"
14
15
#include <X11/Xlib.h>
16
#include <stdexcept>
17
18
namespace
eagine::x11
{
19
20
class
colormap :
public
display_object<::Colormap> {
21
public
:
22
colormap(
const
display& dpy,
const
visual_info& vi)
23
: display_object<::Colormap>(
24
dpy,
25
::XCreateColormap(
26
dpy,
27
RootWindow(dpy.get(), vi->screen),
28
vi->visual,
29
AllocNone),
30
::XFreeColormap,
31
"Error creating X Colormap"
) {}
32
};
33
34
}
// namespace eagine::x11
35
36
#endif
eagine::x11
X11 wrapper code is placed in this namespace.
Definition:
x11.hpp:11
visual_info.hpp
display.hpp
Copyright © 2015-2021
Matúš Chochlík
.
<
chochlik -at -gmail.com
>
Documentation generated on Tue Apr 13 2021 by
Doxygen
(version 1.8.17).