Skip to content

Instantly share code, notes, and snippets.

void BatchRenderer2D::drawString(const std::string& text, const maths::vec3& position, const maths::vec4& color)
{
using namespace ftgl;
float ts = 0.0f;
bool found = false;
for (int i = 0; i < m_TextureSlots.size(); i++)