external ofNode to transform text
This commit is contained in:
parent
c9f89f5853
commit
c94acb14a2
1 changed files with 1 additions and 6 deletions
|
@ -870,7 +870,7 @@ class Font {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void collectVerticesAndIndices(const glm::vec3 & position,
|
void collectVerticesAndIndices(const ofNode & node,
|
||||||
const std::vector <GlyphIdentity> & variationText,
|
const std::vector <GlyphIdentity> & variationText,
|
||||||
std::vector <BufferVertex> & vertices,
|
std::vector <BufferVertex> & vertices,
|
||||||
std::vector <int32_t> & indices,
|
std::vector <int32_t> & indices,
|
||||||
|
@ -879,11 +879,6 @@ class Font {
|
||||||
float advanceX = 0;
|
float advanceX = 0;
|
||||||
float advanceY = 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;
|
FT_UInt previous = 0;
|
||||||
for(const GlyphIdentity & glyphIdentity : variationText){
|
for(const GlyphIdentity & glyphIdentity : variationText){
|
||||||
if(glyphIdentity.charcode == '\0'){
|
if(glyphIdentity.charcode == '\0'){
|
||||||
|
|
Loading…
Reference in a new issue