Reputation: 111
I want to build an application whereby I can rotate a 3D cube using an accelerometer (hardware is complete).
I a coding in C++ using an OpenGL API, I am able to create windows with both windows.h and glfw.h libraries. The reason why I am using windows.h is that I want to implement buttons.
Can I create all my graphics using the GLFW functions in a parent window that I created? Because I see that windows use handles while glfw uses GLFWwindow* window;
I would like to know if this is possible? if not how must I go about this to tackle the task?
Upvotes: 1
Views: 294
Reputation: 63124
A GLFW window is indeed just a window. You can obtain its native handle through glfwGetWin32Window
.
Upvotes: 1