@@ -69,20 +69,17 @@ void Sketch::draw()
69
69
font1->replaySequence (sequence1);
70
70
71
71
font2->beginSequence (sequence2);
72
- drawCircularText (*font2, TEXT, windowInfo.center (), RADIUS, clock ()->getTime () * 100 .0f , XFont::ALIGN_MIDDLE);
72
+ drawCircularText (*font2, TEXT, windowInfo.center (), RADIUS, - clock ()->getTime () * 100 .0f , XFont::ALIGN_MIDDLE);
73
73
font2->endSequence ();
74
74
font2->replaySequence (sequence2);
75
75
}
76
76
77
77
void Sketch::drawGuides ()
78
78
{
79
- float width = windowInfo.width ;
80
- float height = windowInfo.height ;
81
-
82
- strokeBatch.addVertices (glm::vec2 (PADDING, 0 ), glm::vec2 (PADDING, height));
83
- strokeBatch.addVertices (glm::vec2 (width - PADDING, 0 ), glm::vec2 (width - PADDING, height));
84
- strokeBatch.addVertices (glm::vec2 (0 , PADDING), glm::vec2 (width, PADDING));
85
- strokeBatch.addVertices (glm::vec2 (0 , height - PADDING), glm::vec2 (width, height - PADDING));
79
+ strokeBatch.addVertices (glm::vec2 (PADDING, 0 ), glm::vec2 (PADDING, windowInfo.height ));
80
+ strokeBatch.addVertices (glm::vec2 (windowInfo.width - PADDING, 0 ), glm::vec2 (windowInfo.width - PADDING, windowInfo.height ));
81
+ strokeBatch.addVertices (glm::vec2 (0 , PADDING), glm::vec2 (windowInfo.width , PADDING));
82
+ strokeBatch.addVertices (glm::vec2 (0 , windowInfo.height - PADDING), glm::vec2 (windowInfo.width , windowInfo.height - PADDING));
86
83
}
87
84
88
85
void Sketch::drawCircle (const glm::vec2 &position, float radius)
0 commit comments