#include <smk/Color.hpp>
#include <smk/Input.hpp>
#include <smk/Shape.hpp>
#include <smk/Transformable.hpp>
#include <smk/VertexArray.hpp>
#include <smk/Window.hpp>
int main() {
window.ExecuteMainLoop([&] {
window.PoolEvents();
for (const auto& it : window.input().touches()) {
const auto& touch = it.second;
for (int i = 1; i < touch.data_points.size(); ++i) {
glm::vec2 p1 = touch.data_points[i - 1].position;
glm::vec2 p2 = touch.data_points[i - 0].position;
auto line = smk::Shape::Line(p1, p2, 2);
window.Draw(line);
}
}
window.Display();
});
return EXIT_SUCCESS;
}
A window. You can draw objects on the window.
const glm::vec4 Black
Black.