external ofNode to transform text

This commit is contained in:
jrkb 2023-04-17 17:15:44 +02:00
parent c9f89f5853
commit c94acb14a2

View file

@ -870,7 +870,7 @@ class Font {
}
void collectVerticesAndIndices(const glm::vec3 & position,
void collectVerticesAndIndices(const ofNode & node,
const std::vector <GlyphIdentity> & variationText,
std::vector <BufferVertex> & vertices,
std::vector <int32_t> & 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'){