Size now contains grid size of subdivisions, so size is never truncated

This commit is contained in:
Yousef Khadadeh 2025-09-16 09:35:03 +03:00
parent 83ff3f689d
commit 65b4f7116c
6 changed files with 63 additions and 36 deletions

View file

@ -17,9 +17,17 @@ class WorldGrid {
WorldScalar size{50000000};
bool visible = true;
WorldVec offset{0, 0};
unsigned subdivisions = 0;
bool removeDivisionsOutwards = false;
void set_remove_divisions_outwards(bool v);
bool get_remove_divisions_outwards();
void set_subdivisions(uint32_t v);
uint32_t get_subdivisions();
private:
bool removeDivisionsOutwards = false;
uint32_t subdivisions = 1;
struct ShaderData {
SkColor4f gridColor;
float mainGridScale;