diff options
Diffstat (limited to 'py/pykmstest.cpp')
-rw-r--r-- | py/pykmstest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/pykmstest.cpp b/py/pykmstest.cpp index 781a43a..407330d 100644 --- a/py/pykmstest.cpp +++ b/py/pykmstest.cpp @@ -14,6 +14,10 @@ void init_pykmstest(py::module &m) .def(py::init<>()) .def(py::init<uint8_t, uint8_t, uint8_t&>()) .def(py::init<uint8_t, uint8_t, uint8_t, uint8_t&>()) + .def_property_readonly("rgb888", &RGB::rgb888) + .def_property_readonly("argb8888", &RGB::argb8888) + .def_property_readonly("abgr8888", &RGB::abgr8888) + .def_property_readonly("rgb565", &RGB::rgb565) ; // Use lambdas to handle IMappedFramebuffer |