Changed _pixel_x and _pixel_y to be floats

This commit is contained in:
Robert Osfield 2007-03-06 12:01:55 +00:00
parent 5423add9e2
commit ebb571473f
2 changed files with 4 additions and 4 deletions

View File

@ -103,7 +103,7 @@ class OSGMANIPULATOR_EXPORT PointerInfo
if (needToResetHitIter) _hitIter = _hitList.begin();
}
void setMousePosition(int pixel_x, int pixel_y)
void setMousePosition(float pixel_x, float pixel_y)
{
_pixel_x = pixel_x;
_pixel_y = pixel_y;
@ -111,7 +111,7 @@ class OSGMANIPULATOR_EXPORT PointerInfo
public:
int _pixel_x, _pixel_y;
float _pixel_x, _pixel_y;
osg::Camera* _camera;
IntersectionList _hitList;

View File

@ -18,8 +18,8 @@
using namespace osgManipulator;
PointerInfo::PointerInfo():
_pixel_x(0),
_pixel_y(0),
_pixel_x(0.0),
_pixel_y(0.0),
_camera(0)
{
_hitIter = _hitList.begin();