Hi everyone,
Please forgive my ineptitude. I'm a beginner!
I'm using nanogui (
https://github.com/mitsuba-renderer/nanogui) in my program and would like to allow SFML to render onto a nanogui window (or screen, as it calls it). I understand that I can do this by getting the window handle of the nanogui window, but I don't understand how to do this.
I have tried this:
int scwidth=1024;
int scheight=768;
nanogui::Screen *screen=nullptr;
screen=new nanogui::Screen(Vector2i(scwidth,scheight),"Project Name");
sf::Window (sf::WindowHandle(screen));
But that doesn't work, as I didn't really think it would. It builds fine and runs, but hits the dreaded EXC_BAD_ACCESS at that last line.
So how *do* I get the window handle of the nanogui window and use it in the sf::Window constructor?? I'm doing this on Mac in Xcode.
Thank you for any light anyone can shed on this...