diff options
author | Michele Calgaro <[email protected]> | 2020-09-11 14:38:47 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-09-11 14:38:47 +0900 |
commit | 884c8093d63402a1ad0b502244b791e3c6782be3 (patch) | |
tree | a600d4ab0d431a2bdfe4c15b70df43c14fbd8dd0 /debian/fireflies/fireflies-2.08/libgfx/include/gfx/trackball.h | |
parent | 14e1aa2006796f147f3f4811fb908a6b01e79253 (diff) | |
download | extra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.tar.gz extra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.zip |
Added debian extra dependency packages.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'debian/fireflies/fireflies-2.08/libgfx/include/gfx/trackball.h')
-rw-r--r-- | debian/fireflies/fireflies-2.08/libgfx/include/gfx/trackball.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/debian/fireflies/fireflies-2.08/libgfx/include/gfx/trackball.h b/debian/fireflies/fireflies-2.08/libgfx/include/gfx/trackball.h new file mode 100644 index 00000000..1432ed71 --- /dev/null +++ b/debian/fireflies/fireflies-2.08/libgfx/include/gfx/trackball.h @@ -0,0 +1,39 @@ +#ifndef GFXTRACKBALL_INCLUDED // -*- C++ -*- +#define GFXTRACKBALL_INCLUDED +#if !defined(__GNUC__) +# pragma once +#endif + +/************************************************************************ + + Virtual trackball rotation control. + + $Id: trackball.h 427 2004-09-27 04:45:31Z garland $ + + ************************************************************************/ + +#include "baseball.h" + +namespace gfx +{ + +extern void trackball(Quat& q, float p1x, float p1y, float p2x, float p2y); + +class Trackball : public Baseball +{ +public: + Quat lastquat; + +public: + Trackball(); + + virtual void update_animation(); + virtual bool mouse_down(int *where, int which); + virtual bool mouse_up(int *where, int which); + virtual bool mouse_drag(int *where, int *last, int which); +}; + +} // namespace gfx + +// GFXTRACKBALL_INCLUDED +#endif |