Added measure text size setting, changed look and feel of point to point

This commit is contained in:
matlabbe
2025-02-17 23:05:11 -08:00
parent 674aebfb6b
commit fd80a39207
11 changed files with 275 additions and 77 deletions

View File

@@ -28,8 +28,8 @@ Circle::Circle(float radius, int resolution) : Mesh(GL_TRIANGLE_FAN){
for (int i = resolution; i >= 0; i--) {
float theta = delta_theta * static_cast<float>(i);
vertices.push_back(cos(theta) * radius);
vertices.push_back(0);
vertices.push_back(sin(theta) * radius);
vertices.push_back(0);
}
SetVertices(vertices);
}