Embedding opengl glfw context into wxGLContext ??

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
In need of some credit
In need of some credit
Posts: 2
Joined: Wed Sep 16, 2015 8:01 pm

Embedding opengl glfw context into wxGLContext ??

Postby meiry » Wed Sep 16, 2015 8:10 pm

Hello all
im beginner in this framework , im coming from Qt when it comes to desktop GUI .
i have question in Qt its was inpossible to Embedding glfw window into GLFrame .
who about wxWidgets? i have glfw app which i like to Embed into desktop GUI , what are my options ?
i saw this tutorial that do emmbed OpenGL window

Earned a small fee
Earned a small fee
Posts: 14
Joined: Tue Dec 30, 2014 11:43 pm

Re: Embedding opengl glfw context into wxGLContext ??

Postby tomkulaga » Tue Sep 22, 2015 11:12 pm

A clean option would be to replace all the glfw stuff with wxGLCanvas.

Any rendering code shouldn't change, and glew (or whatever else you use) should also stay the same.

Unless you have to I wouldn't try to focus on embedding a glfw window into a wxWidgets window (nor for Qt). Both frameworks have their own opengl panels/widgets.

Return to “C++ Development”

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 13 guests