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:
parent
e295bfb742
commit
6a4150ec05
3 changed files with 19 additions and 4 deletions
|
|
@ -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*);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue