Issue with ViewCube

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.

SteveDraw's picture

you can read the project of mayo sourcecode

Irmantas Rojus's picture

Mayo is using QT not GLFW.