#include <smk/Color.hpp>
#include <smk/Font.hpp>
#include <smk/Input.hpp>
#include <smk/Text.hpp>
#include <smk/Vibrate.hpp>
#include <smk/Window.hpp>
#include "asset.hpp"
int main() {
auto text =
smk::Text(font,
"Touch to vibrate");
text.SetPosition(10, 10);
window.ExecuteMainLoop([&] {
window.PoolEvents();
window.Draw(text);
window.Display();
if (window.input().IsCursorReleased())
smk::Vibrate(30 );
});
return EXIT_SUCCESS;
}
A class for displaying text.
A window. You can draw objects on the window.
const glm::vec4 Black
Black.