I am playing on nana library for gui.
I also have to use opengl, But there is one example for opengl, which is for windows. Link
I am using ubuntu linux. above example call reinterpret_cast<HWND>
(fm.native_handle()
);
I finally have found it.
The root window attaches to the OS/Windowing system native window, native_handle returns the handle of native window. In a certain system, the native_window_type can be converted into system native handle type.
auto reinterpret_cast<HWND>(root_widget.native_handle()); //Windows
auto reinterpret_cast<Window>(root_widget.native_handle()); //Linux/X11
I may get hint between HWND, Window.
If I use Window(X11), can I implement to opengl
on nana
library?