add setBuff method to Buffer2D
This commit is contained in:
parent
e10a494223
commit
49c2cadb0a
1 changed files with 1 additions and 0 deletions
|
|
@ -58,6 +58,7 @@ namespace tp {
|
||||||
[[nodiscard]] Index2D size() const { return { mSize.x, mSize.y }; }
|
[[nodiscard]] Index2D size() const { return { mSize.x, mSize.y }; }
|
||||||
|
|
||||||
tType* getBuff() const { return mBuff; }
|
tType* getBuff() const { return mBuff; }
|
||||||
|
void setBuff(tType* data, Index2D size) { mBuff = data; mSize = size; }
|
||||||
|
|
||||||
void flipY() {
|
void flipY() {
|
||||||
for (Index i = 0; i < mSize.x; i++) {
|
for (Index i = 0; i < mSize.x; i++) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue