mirror of
https://github.com/love2d/love.git
synced 2026-08-17 02:58:31 +02:00
Add Buffer:clear, to reset all or part of a Buffer's contents to 0.
This commit is contained in:
@@ -131,6 +131,11 @@ public:
|
||||
*/
|
||||
virtual bool fill(size_t offset, size_t size, const void *data) = 0;
|
||||
|
||||
/**
|
||||
* Reset the given portion of this buffer's data to 0.
|
||||
*/
|
||||
virtual void clear(size_t offset, size_t size) = 0;
|
||||
|
||||
/**
|
||||
* Copy a portion of this Buffer's data to another buffer, using the GPU.
|
||||
**/
|
||||
|
||||
Reference in New Issue
Block a user