Changed _pixel_x and _pixel_y to be floats
This commit is contained in:
parent
5423add9e2
commit
ebb571473f
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user