patern_preview/world: Place selection into the world

This commit is contained in:
2026-01-14 17:34:15 +01:00
parent 5c9b60163a
commit 3e7e7e2547
4 changed files with 22 additions and 8 deletions

View File

@@ -27,6 +27,7 @@ private:
bool is_started = false;
std::shared_ptr<ctx> context_;
Vector2 mouse_pos_ = {0, 0};
bool is_unplacable_ = false;
};
} // namespace gol

View File

@@ -37,6 +37,7 @@ public:
void setCell(int x, int y);
void resize(int width, int height); // destructive
std::vector<uint32_t> getSelection(Vector2i &origin, Vector2i &size);
void setSelection(Vector2i &origin, Vector2i &size, std::vector<uint32_t> &data);
// Private members
private: