40 std::array<glm::vec2, 6>
vertices(
float x,
float y,
float scale)
42 float xpos = x + bearing.x * scale;
43 float ypos = y + (size.y - bearing.y) * scale;
45 float w = size.x * scale;
46 float h = size.y * scale;
48 std::array<glm::vec2, 6> v;
49 v[0] = glm::vec2(xpos, ypos-h);
50 v[1] = glm::vec2(xpos, ypos);
51 v[2] = glm::vec2(xpos+w, ypos);
52 v[3] = glm::vec2(xpos, ypos-h);
53 v[4] = glm::vec2(xpos+w, ypos);
54 v[5] = glm::vec2(xpos+w, ypos-h);