mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Add Buffer methods
flush, setArrayData, setElement, getElement, getElementCount, getElementStride, getSize, getFormat
This commit is contained in:
@@ -66,12 +66,12 @@ public:
|
||||
{
|
||||
std::string name;
|
||||
DataFormat format;
|
||||
int arraySize;
|
||||
int arrayLength;
|
||||
|
||||
DataDeclaration(const std::string &name, DataFormat format, int arraySize = 0)
|
||||
DataDeclaration(const std::string &name, DataFormat format, int arrayLength = 0)
|
||||
: name(name)
|
||||
, format(format)
|
||||
, arraySize(arraySize)
|
||||
, arrayLength(arrayLength)
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user