From c94acb14a26b3fe823286b21ea03377dd3656b05 Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Mon, 17 Apr 2023 17:15:44 +0200 Subject: [PATCH] external ofNode to transform text --- src/gpufont/font.hpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/gpufont/font.hpp b/src/gpufont/font.hpp index d2f4ddd..8e126a2 100644 --- a/src/gpufont/font.hpp +++ b/src/gpufont/font.hpp @@ -870,7 +870,7 @@ class Font { } - void collectVerticesAndIndices(const glm::vec3 & position, + void collectVerticesAndIndices(const ofNode & node, const std::vector & variationText, std::vector & vertices, std::vector & indices, @@ -879,11 +879,6 @@ class Font { float advanceX = 0; float advanceY = 0; - float degree = ofMap(sin(ofGetElapsedTimef()), -1, 1, 0, 90); - ofNode node; - node.rotateDeg(degree, glm::vec3(0, 0, 1)); - node.move(position); - FT_UInt previous = 0; for(const GlyphIdentity & glyphIdentity : variationText){ if(glyphIdentity.charcode == '\0'){