Example #1
0
void mouseScrollCallback(double xoffset, double yoffset)
{
    if( gEngine->isMaster() )
    {
        ImGui_ImplGlfwGL3_ScrollCallback(gEngine->getCurrentWindowPtr()->getWindowHandle(), xoffset, yoffset);
    }
}
Example #2
0
 void Gui::scroll(window::ScrollEvent e) {
     ImGui_ImplGlfwGL3_ScrollCallback(static_cast<GLFWwindow*>(e.ptr),static_cast<int>(e.xOffset),
                                      static_cast<int>(e.yOffset));
 }