1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#include "mouse_motion.h" #include "../../view/state0.h" #include "../actions/pan.h" #include <GL/glut.h> #define S state0 void mouse_motion (int x, int y) { if (S.pan.active) { pan (S.pan.begin[0], S.pan.begin[1], x, y); S.pan.begin[0] = x; S.pan.begin[1] = y; } return; }
Copyright © 2009 Don Pellegrino All Rights Reserved.