@@ -21,7 +21,7 @@ void Sketch::setup()
21
21
font2->setSize (40 );
22
22
font2->setColor (0 .75f , 0 , 0 , 1 );
23
23
24
- strokeBatch
24
+ lineBatch
25
25
.setPrimitive (GL_LINES)
26
26
.setShader (colorShader)
27
27
.setShaderColor (0 , 0 , 0 , 0 .25f );
@@ -37,7 +37,7 @@ void Sketch::setup()
37
37
38
38
void Sketch::resize ()
39
39
{
40
- strokeBatch .clear ();
40
+ lineBatch .clear ();
41
41
drawGuides ();
42
42
drawCircle (windowInfo.center (), RADIUS);
43
43
@@ -64,7 +64,7 @@ void Sketch::draw()
64
64
65
65
// ---
66
66
67
- strokeBatch .flush ();
67
+ lineBatch .flush ();
68
68
69
69
font1->replaySequence (sequence1);
70
70
@@ -76,10 +76,10 @@ void Sketch::draw()
76
76
77
77
void Sketch::drawGuides ()
78
78
{
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));
79
+ lineBatch .addVertices (glm::vec2 (PADDING, 0 ), glm::vec2 (PADDING, windowInfo.height ));
80
+ lineBatch .addVertices (glm::vec2 (windowInfo.width - PADDING, 0 ), glm::vec2 (windowInfo.width - PADDING, windowInfo.height ));
81
+ lineBatch .addVertices (glm::vec2 (0 , PADDING), glm::vec2 (windowInfo.width , PADDING));
82
+ lineBatch .addVertices (glm::vec2 (0 , windowInfo.height - PADDING), glm::vec2 (windowInfo.width , windowInfo.height - PADDING));
83
83
}
84
84
85
85
void Sketch::drawCircle (const glm::vec2 &position, float radius)
@@ -96,7 +96,7 @@ void Sketch::drawCircle(const glm::vec2 &position, float radius)
96
96
97
97
for (int i = 0 ; i < n - 1 ; i++)
98
98
{
99
- strokeBatch .addVertices (points[i], points[i + 1 ]);
99
+ lineBatch .addVertices (points[i], points[i + 1 ]);
100
100
}
101
101
}
102
102
0 commit comments