Skip to content

Commit

Permalink
updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob committed Feb 21, 2019
1 parent 885e4fc commit 782c0e8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ rules.ninja
Makefile
bin2c
example[1-9]
example_icons
icons
*~
nanogui*.so
Expand Down
2 changes: 1 addition & 1 deletion ext/glfw
2 changes: 1 addition & 1 deletion ext/pybind11
Submodule pybind11 updated 182 files
8 changes: 3 additions & 5 deletions python/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,16 @@ static void sigint_handler(int sig) {
}
#endif

PYBIND11_PLUGIN(nanogui) {
py::module m("nanogui", "NanoGUI plugin");
PYBIND11_MODULE(nanogui, m) {
m.attr("__doc__") = "NanoGUI plugin";

py::class_<MainloopHandle>(m, "MainloopHandle")
.def("join", &MainloopHandle::join);

m.def("init", &nanogui::init, D(init));
m.def("shutdown", &nanogui::shutdown, D(shutdown));
m.def("mainloop", [](int refresh, py::object detach) -> MainloopHandle* {
if (detach != py::none()) {
if (!detach.is(py::none())) {
if (handle)
throw std::runtime_error("Main loop is already running!");

Expand Down Expand Up @@ -248,8 +248,6 @@ PYBIND11_PLUGIN(nanogui) {
register_misc(m);
register_glutil(m);
register_nanovg(m);

return m.ptr();
}

#endif

0 comments on commit 782c0e8

Please sign in to comment.