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++) {