Sat, 09/14/2024 - 16:22
Forums:
Just testing GLFW sample code that ships with OpenCascade. I tried adding ViewCube to that code by just adding two lines in GlfwOcctView::initViewer()
// Create interactive context myContext = new AIS_InteractiveContext (aViewer); Handle(AIS_ViewCube) aViewCube = new AIS_ViewCube(); myContext->Display(aViewCube, 0, 0, false);
Cube works but there is an issue that mouse hover and click are offset, though primitives (box and sphere) are registering hover in clicks correctly. Also it looks like that view cube is effected by the scene light, not sure if thats expected.
Attachments:
Tue, 11/19/2024 - 13:11
you can read the project of mayo sourcecode
Wed, 11/20/2024 - 08:28
Mayo is using QT not GLFW.