+void State::Render(graphics::Viewport &viewport) {
+ OnRender(viewport);
+}
+
+void State::OnQuit() {
+ while (App().HasState()) {
+ App().PopState();
+ }
+}
+
+
+Assets::Assets() {
+ graphics::Format format;
+ textures.tiles.Bind();
+ textures.tiles.Reserve(1, 1, 3, format);
+ std::uint8_t texdata[] = {
+ 0xFF, 0x00, 0x00, 0xFF,
+ 0x00, 0xFF, 0x00, 0xFF,
+ 0x00, 0x00, 0xFF, 0xFF,
+ };
+ textures.tiles.Data(0, format, texdata);
+ textures.tiles.Data(1, format, texdata + 4);
+ textures.tiles.Data(2, format, texdata + 8);
+}
+
+Assets::~Assets() {