#include <iostream>
#include <smk/Color.hpp>
#include <smk/Sprite.hpp>
#include <smk/Texture.hpp>
#include <smk/Window.hpp>
#include "asset.hpp"
int main() {
auto window =
smk::Window(100, 100,
"smk/example/texture_subrectangle");
auto sprite_subpart =
smk::Sprite(texture, {5, 5, 25, 25});
sprite_subpart.
Move(35, 5);
window.ExecuteMainLoop([&] {
window.PoolEvents();
window.Draw(sprite_full);
window.Draw(sprite_subpart);
window.Display();
});
return EXIT_SUCCESS;
}
A window. You can draw objects on the window.
const glm::vec4 Black
Black.