From 068348b3e3e56efb13c94a2e2d09239ec8a3b63c Mon Sep 17 00:00:00 2001 From: Ilya Shurupov <163508118+elushaX@users.noreply.github.com> Date: Sun, 24 Nov 2024 01:45:50 +0300 Subject: [PATCH] add setBuff method to Buffer2D --- Containers/public/Buffer2D.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Containers/public/Buffer2D.hpp b/Containers/public/Buffer2D.hpp index 9fda2a8..b28fb6d 100644 --- a/Containers/public/Buffer2D.hpp +++ b/Containers/public/Buffer2D.hpp @@ -58,6 +58,7 @@ namespace tp { [[nodiscard]] Index2D size() const { return { mSize.x, mSize.y }; } tType* getBuff() const { return mBuff; } + void setBuff(tType* data, Index2D size) { mBuff = data; mSize = size; } void flipY() { for (Index i = 0; i < mSize.x; i++) {