The main purpose of existing samples is providing new users some guideline for using OCCT in real applications,
so that user interface provided by toolkits like MFC/Qt/WinForms is the essential part of the sample.
At the same time, GLFW is nothing similar - it is a library for managing native windows holding an OpenGL context.
So that a sample based on GLFW can be helpful for demonstrating usage of OCCT 3D Viewer, but not other parts (without inventing a wheel).
It will be also not very helpful for embedding and managing OCCT 3D Viewer into GUI framework, because each framework has its own specifics.
Indeed, Open CASCADE experts have experience embedding OCCT 3D Viewer with many frameworks, and so far I don't see a reason GLFW to be off this list.
Some combinations are much simpler, while others might require expertize in OpenGL.
Mon, 12/03/2018 - 16:44
Thank you for your suggestion - if you would like to improve or extend OCCT with new samples, your patches are welcome!
https://dev.opencascade.org/index.php?q=home/get_involved
The main purpose of existing samples is providing new users some guideline for using OCCT in real applications,
so that user interface provided by toolkits like MFC/Qt/WinForms is the essential part of the sample.
At the same time, GLFW is nothing similar - it is a library for managing native windows holding an OpenGL context.
So that a sample based on GLFW can be helpful for demonstrating usage of OCCT 3D Viewer, but not other parts (without inventing a wheel).
It will be also not very helpful for embedding and managing OCCT 3D Viewer into GUI framework, because each framework has its own specifics.
Mon, 12/03/2018 - 17:51
So it is possible to manage OCCT 3D Viewer into GLFW, right?
I will try for sure. But I am not sure I can figure it out.
Mon, 12/03/2018 - 19:15
Indeed, Open CASCADE experts have experience embedding OCCT 3D Viewer with many frameworks, and so far I don't see a reason GLFW to be off this list.
Some combinations are much simpler, while others might require expertize in OpenGL.
Tue, 12/04/2018 - 12:13
Yes, is possible. Time ago I'd try occ + glfw + imgui for learning poupose.
If you want i can share it.
Tue, 12/04/2018 - 12:28
Hi, Damiano
"occ + glfw + imgui " is exactly what I looking for !
I will really appreciate your sharing.
I tried QT as gui framework first, but then I thought QT is too heavy for me. This is where this question came from.
Thanks again.
Tue, 12/04/2018 - 12:48
Ok i upload a project. Now i have no time to create a real sample. I hope someone can help in this.
Is uncomment but is easy to understand.
Tue, 12/04/2018 - 13:16
thanks!
Sat, 12/29/2018 - 08:55
I figure something out :)
A very simple demo inspired by Damiano Modolo 's code
crossplatform: win10 apple ubuntu
Fri, 12/28/2018 - 17:48
I figure it out by myself, now it works on win10 and apple. :) https://github.com/caadxyz/glfw-occt-demo
Fri, 12/28/2018 - 17:37
demo: https://github.com/caadxyz/glfw-occt-demo
crossplatform: win10, apple