Add (optional) uv coordinates to SGPickCallback
This commit is contained in:
@@ -44,6 +44,7 @@ public:
|
|||||||
struct Info {
|
struct Info {
|
||||||
SGVec3d wgs84;
|
SGVec3d wgs84;
|
||||||
SGVec3d local;
|
SGVec3d local;
|
||||||
|
SGVec2d uv;
|
||||||
};
|
};
|
||||||
|
|
||||||
SGPickCallback(Priority priority = PriorityOther) :
|
SGPickCallback(Priority priority = PriorityOther) :
|
||||||
@@ -76,6 +77,13 @@ public:
|
|||||||
virtual std::string getCursor() const
|
virtual std::string getCursor() const
|
||||||
{ return std::string(); }
|
{ return std::string(); }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether the uv coordinates of the picking action should be calculated upon
|
||||||
|
* an intersection.
|
||||||
|
*/
|
||||||
|
virtual bool needsUV() const
|
||||||
|
{ return false; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Priority _priority;
|
Priority _priority;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user