Add (optional) uv coordinates to SGPickCallback
This commit is contained in:
parent
627b36a53b
commit
82f6fca06f
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user