void motion(int x, int y) { moveTrackball(x, y); if(!TwEventMouseMotionGLUT(x, y)) { } }
void cursorPosCallback(GLFWwindow* window, double x, double y) { if( !TwEventMousePosGLFW(x, y) ) // Send event to AntTweakBar { moveTrackball(x, y); } }
void cursorPosCallback(GLFWwindow* window, double x, double y) { #ifdef WITH_TWEAKBAR if (TwEventCursorPosGLFW3(window, x, y)) return; #endif // WITH_TWEAKBAR Context *ctx = static_cast<Context *>(glfwGetWindowUserPointer(window)); moveTrackball(ctx, x, y); }
void cursorPosCallback(GLFWwindow* window, double x, double y) { Context *ctx = static_cast<Context *>(glfwGetWindowUserPointer(window)); moveTrackball(ctx, x, y); }
void motion(int x, int y) { moveTrackball(x, y); }