Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Creates a blank screen and closes when the user presses the [X] button.
- * Uses Pugl behind the scenes.
- */
- #include <nanogui/nanogui.h>
- using namespace nanogui;
- int main()
- {
- nanogui::init();
- Screen *screen = new Screen(Vector2i(640, 400), "Hello world");
- nanogui::mainloop(screen);
- delete screen;
- nanogui::shutdown();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment