missing swap buffer methods

This commit is contained in:
Michael Miller
2025-02-17 14:07:55 -08:00
parent 585fa7c6a1
commit 3cbe056e4c
2 changed files with 18 additions and 0 deletions

View File

@ -152,6 +152,12 @@ public:
return false;
}
bool SwapBuffers()
{
std::swap(_dataSending, _dataEditing);
return true;
}
uint8_t* getData() const
{
return _dataEditing;

View File

@ -369,6 +369,18 @@ public:
}
}
bool AlwaysUpdate()
{
// this method requires update to be called only if changes to buffer
return false;
}
bool SwapBuffers()
{
std::swap(_dataSending, _dataEditing);
return true;
}
uint8_t* getData() const
{
return _dataEditing;