15 lines
356 B
C++
15 lines
356 B
C++
#include <iostream>
|
|
#include <sophia/application.hpp>
|
|
|
|
class ExampleTriangle : public sophia::Application {
|
|
public:
|
|
ExampleTriangle()
|
|
: Application{{.width = 800, .height = 600, .name = "ExampleTriangle"}} {}
|
|
|
|
void onCreate() override {
|
|
canvas.triangle({0.0f, -200.0f}, {100.0f, 0.0f}, {-100.0f, 0.0f});
|
|
}
|
|
};
|
|
|
|
SOPHIA_MAIN(ExampleTriangle)
|