Registry / other / nanogui

nanogui

JSON →
library2019-09-23vcpkgunverified

NanoGUI is a minimalistic cross-platform widget library for OpenGL 3.x or higher.

vcpkg install nanogui
INSTALL
IMPORT
SIG · NANOGUI
N
nanogui
othercppv2019-09-23
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

nanogui/screen.h
#include <nanogui/screen.h>

Create a simple window with a button

#include <nanogui/screen.h> #include <nanogui/window.h> #include <nanogui/button.h> int main() { nanogui::init(); nanogui::Screen screen(nanogui::Vector2i(800, 600), "NanoGUI Example"); nanogui::Window *window = new nanogui::Window(&screen, "Hello"); new nanogui::Button(window, "Click me"); screen.performLayout(); screen.drawAll(); nanogui::shutdown(); return 0; }
Debug
Known issues
gotchaRequires OpenGL 3.2+ context and GLFW (included via vcpkg).
fix
Ensure your system supports OpenGL 3.2 and link against GLFW.
affects: all
Upgrade
Version history
2019-09-23latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources

No resource links recorded.

nanogui — pip install nanogui · libregistry