testbed update + triangle example new pattern

This commit is contained in:
2026-09-06 23:39:17 -07:00
parent 69ea48ad22
commit dc40e973d3
2 changed files with 202 additions and 22 deletions
+10 -5
View File
@@ -1,9 +1,14 @@
#include <iostream>
#include <sophia/application.hpp>
int main() {
sophia::Application app{{.width = 800, .height = 600, .name = "Triangle"}};
class ExampleTriangle : public sophia::Application {
public:
ExampleTriangle()
: Application{{.width = 800, .height = 600, .name = "ExampleTriangle"}} {}
app.run();
void onCreate() override {
canvas.triangle({0.0f, -200.0f}, {100.0f, 0.0f}, {-100.0f, 0.0f});
}
};
return EXIT_SUCCESS;
}
SOPHIA_MAIN(ExampleTriangle)