Add (optional) uv coordinates to SGPickCallback

This commit is contained in:
Thomas Geymayer 2013-05-09 12:40:59 +02:00
parent 627b36a53b
commit 82f6fca06f

View File

@ -44,6 +44,7 @@ public:
struct Info {
SGVec3d wgs84;
SGVec3d local;
SGVec2d uv;
};
SGPickCallback(Priority priority = PriorityOther) :
@ -76,6 +77,13 @@ public:
virtual std::string getCursor() const
{ return std::string(); }
/**
* Whether the uv coordinates of the picking action should be calculated upon
* an intersection.
*/
virtual bool needsUV() const
{ return false; }
private:
Priority _priority;
};