Add Buffer methods

flush, setArrayData, setElement, getElement, getElementCount, getElementStride, getSize, getFormat
This commit is contained in:
Alex Szpakowski
2020-07-25 19:48:54 -03:00
parent 1d087cc5c2
commit d75f5df80d
6 changed files with 264 additions and 6 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ Buffer::Buffer(Graphics *gfx, const Settings &settings, const std::vector<DataDe
if (vertexbuffer)
{
if (decl.arraySize > 0)
if (decl.arrayLength > 0)
throw love::Exception("Arrays are not supported in vertex buffers.");
if (info.isMatrix)