blob: 525834b06e3a415f3e53139c2298846df8b02cc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <kms++/kms++.h>
#include <kms++/omap/omapkms++.h>
namespace py = pybind11;
using namespace kms;
using namespace std;
void init_pykmsomap(py::module &m)
{
py::class_<OmapCard>(m, "OmapCard", py::base<Card>())
.def(py::init<>())
;
py::class_<OmapFramebuffer>(m, "OmapFramebuffer", py::base<MappedFramebuffer>())
.def(py::init<OmapCard&, uint32_t, uint32_t, PixelFormat>(),
py::keep_alive<1, 2>()) // Keep OmapCard alive until this is destructed
;
}
|