#include <smk/Color.hpp>
#include <smk/Shape.hpp>
#include <smk/Window.hpp>
int main() {
circle_red.SetPosition(320, 240);
circle_blue.SetPosition(320 + 200, 240);
{150, 100},
10
);
line.Move(200, 200);
window.ExecuteMainLoop([&] {
window.PoolEvents();
window.Draw(circle_red);
window.Draw(circle_blue);
window.Draw(line);
window.Display();
});
return EXIT_SUCCESS;
}
static Transformable Line(const glm::vec2 &a, const glm::vec2 &b, float thickness)
Return a line with a given thickness.
static Transformable Circle(float radius)
Return a circle.
A window. You can draw objects on the window.
const glm::vec4 Black
Black.
const glm::vec4 Yellow
Yellow.
const glm::vec4 Blue
Blue.