Rename love.graphics Text objects to TextBatch.

The name Text is too generic compared to what they're designed for, it made people unnecessarily confused about their purpose.
This commit is contained in:
Sasha Szpakowski
2022-12-08 18:46:44 -04:00
parent 90c3e8d6c8
commit f17d3d94f1
10 changed files with 102 additions and 95 deletions
+3 -3
View File
@@ -30,7 +30,7 @@
#include "ParticleSystem.h"
#include "Font.h"
#include "Video.h"
#include "Text.h"
#include "TextBatch.h"
#include "common/deprecation.h"
#include "common/config.h"
@@ -439,9 +439,9 @@ Mesh *Graphics::newMesh(const std::vector<Mesh::BufferAttribute> &attributes, Pr
return new Mesh(attributes, drawmode);
}
love::graphics::Text *Graphics::newText(graphics::Font *font, const std::vector<Font::ColoredString> &text)
love::graphics::TextBatch *Graphics::newTextBatch(graphics::Font *font, const std::vector<Font::ColoredString> &text)
{
return new Text(font, text);
return new TextBatch(font, text);
}
love::data::ByteData *Graphics::readbackBuffer(Buffer *buffer, size_t offset, size_t size, data::ByteData *dest, size_t destoffset)