예제 #1
0
파일: part2.cpp 프로젝트: isqb/graphics
void motion(int x, int y)
{
    moveTrackball(x, y);
	if(!TwEventMouseMotionGLUT(x, y)) {

	}
}
예제 #2
0
void cursorPosCallback(GLFWwindow* window, double x, double y)
{
  if( !TwEventMousePosGLFW(x, y) )  // Send event to AntTweakBar
  {
    moveTrackball(x, y);
  }
}
예제 #3
0
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);
}
예제 #4
0
void cursorPosCallback(GLFWwindow* window, double x, double y)
{
    Context *ctx = static_cast<Context *>(glfwGetWindowUserPointer(window));
    moveTrackball(ctx, x, y);
}
예제 #5
0
void motion(int x, int y)
{
    moveTrackball(x, y);
}