Added GetBuffer()

This commit is contained in:
Alex 2022-11-11 04:41:51 +02:00
parent 5f320bcf25
commit ec91346acd
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -126,6 +126,7 @@ namespace Video
warn("Buffer %d already exists, skipping creation", Index);
}
void SetBuffer(int Index) { memcpy(this->framebuffer.BaseAddress, this->Buffers[Index]->Buffer, this->Buffers[Index]->Size); }
ScreenBuffer *GetBuffer(int Index) { return this->Buffers[Index]; }
void ClearBuffer(int Index) { memset(this->Buffers[Index]->Buffer, 0, this->Buffers[Index]->Size); }
void DeleteBuffer(int Index)
{