# Embedding opengl glfw context into wxGLContext?

**URL:** <https://discourse.glfw.org/t/embedding-opengl-glfw-context-into-wxglcontext/1142>\
**Category:** support\
**Created:** [June 25, 2018, 3:08pm UTC](https://discourse.glfw.org/t/embedding-opengl-glfw-context-into-wxglcontext/1142 "2018-06-25T15:08:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JesseVoss](https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/32.png) [@JesseVoss](https://discourse.glfw.org/u/JesseVoss)\
**Post date:** [June 25, 2018, 3:08pm UTC](https://discourse.glfw.org/t/embedding-opengl-glfw-context-into-wxglcontext/1142/1 "2018-06-25T15:08:44Z")

</div>

Hi,

I am 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 .

Please help.

I didn’t find the right solution from the Internet.

References:-  
[https://forums.wxwidgets.org/viewtopic.php?t=41437](https://forums.wxwidgets.org/viewtopic.php?t=41437)  
[Product animation studio](https://jobs.vidzzy.com/hire-3d-product-animation-studio/)

Thanks!

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [June 25, 2018, 3:35pm UTC](https://discourse.glfw.org/t/embedding-opengl-glfw-context-into-wxglcontext/1142/2 "2018-06-25T15:35:16Z")

</div>

For a similar question please see the post [“Attach A GLFWwindow To Windows Window Client Area?”](http://discourse.glfw.org/t/attach-a-glfwwindow-to-windows-window-client-area/882) and the related [GLFW issue on creating a context for an open window](https://github.com/glfw/glfw/issues/25).

Are you sure you want to use GLFW though, or do you just want to use OpenGL with wxWidgets? WxWidgets has [wxGLCanvas](http://docs.wxwidgets.org/3.1/classwx_g_l_canvas.html) which can be used for OpenGL rendering.

---

<div class="post-metadata">

**Author:** ![cheako](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/cheako/32/189_2.png) [@cheako](https://discourse.glfw.org/u/cheako)\
**Post date:** [July 1, 2018, 7:28pm UTC](https://discourse.glfw.org/t/embedding-opengl-glfw-context-into-wxglcontext/1142/3 "2018-07-01T19:28:24Z")

</div>

Sounds like they have some code that is written to use glfw, but want to use it with wxWidgets. I suggest writing a small wrapper for the glfw calls to map them to the wxWidgets functions.
