Screen to Grid is working pretty reliably, even if switching to float coordinates did make zoom at high values a bit wobbly.

This commit is contained in:
John McCardle 2023-03-03 22:26:38 -05:00
commit 6a4150ec05
3 changed files with 19 additions and 4 deletions

View file

@ -34,7 +34,7 @@ public:
std::vector<GridPoint> points; // grid visible contents
void render(sf::RenderWindow&); // draw to screen
GridPoint& at(int, int);
bool inBounds(int, int);
void screenToGrid(int, int, int&, int&);
GridPoint* atScreenPixel(int, int, int*, int*);