patern_preview/world: Place selection into the world
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user