external ofNode to transform text
This commit is contained in:
parent
d78c341871
commit
74fed4e1f4
1 changed files with 6 additions and 3 deletions
|
@ -212,9 +212,12 @@ void GPUFontAtlasLayerCombo::draw(){
|
|||
std::vector <int32_t> indices;
|
||||
|
||||
for(const auto & layer : layers){
|
||||
font->collectVerticesAndIndices(glm::vec3(layer->getProps().x,
|
||||
ofNode node;
|
||||
node.rotateDeg(layer->getProps().rotation, glm::vec3(0, 0, 1));
|
||||
node.move(glm::vec3(layer->getProps().x,
|
||||
layer->getProps().y,
|
||||
0),
|
||||
0));
|
||||
font->collectVerticesAndIndices(node,
|
||||
layer->getVariationText(),
|
||||
vertices, indices, true,
|
||||
layer->getProps().fontSize_px);
|
||||
|
|
Loading…
Reference in a new issue