mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Always use explicitly typed buffers, even in internal code
This commit is contained in:
@@ -103,8 +103,7 @@ public:
|
||||
{}
|
||||
};
|
||||
|
||||
Buffer(const Settings &settings, const void *data, size_t size);
|
||||
Buffer(Graphics *gfx, const Settings &settings, const std::vector<DataDeclaration> &format, const void *data, size_t size, size_t arraylength);
|
||||
Buffer(Graphics *gfx, const Settings &settings, const std::vector<DataDeclaration> &format, size_t size, size_t arraylength);
|
||||
virtual ~Buffer();
|
||||
|
||||
size_t getSize() const { return size; }
|
||||
@@ -154,6 +153,8 @@ public:
|
||||
**/
|
||||
virtual void copyTo(size_t offset, size_t size, Buffer *other, size_t otheroffset) = 0;
|
||||
|
||||
static std::vector<DataDeclaration> getCommonFormatDeclaration(CommonFormat format);
|
||||
|
||||
class Mapper
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user