Add a python extension function to access picked location. Refs #2065

This commit is contained in:
baldurk committed 2022-05-31 11:26:59 +01:00
1 parent 6d7d4829ee
commit f01dfbecc1
3 files changed
+35

No files matched your search

+9
View File
@@ -667,6 +667,15 @@ bounds parameters will be clamped to the available subresources.
)");
virtual void GotoLocation(uint32_t x, uint32_t y) = 0;
DOCUMENT(R"(Returns the currently selected texel location in the current texture.
If no location is currently selected or there is no current texture, this will return ``(-1, -1)``.
:return: The currently picked pixel location.
:rtype: Tuple[int,int]
)");
virtual rdcpair<int32_t, int32_t> GetPickedLocation() = 0;
DOCUMENT(R"(Return the currently selected texture overlay.
:return: The currently selected texture overlay.