game/mario/gui/gui.cpp
zvon 94d24e37fa
Some checks failed
continuous-integration/drone/push Build is failing
Playing around with buttons
2022-06-22 21:42:57 +02:00

12 lines
584 B
C++

#include "gui.hpp"
/*std::shared_ptr<SDLPP::RectangleRender>
createButton(double x, double y, double w, double h,
std::shared_ptr<SDLPP::Renderer> &r, const std::string &text,
const std::string &color, const std::string &outline_color,
const std::string &background_color,
std::function<void(void *)> click_fun, void *input) {
auto button = std::make_shared<Button>(
x, y, w, h, r, text, color, outline_color, background_color, click_fun, input);
return std::static_pointer_cast<SDLPP::RectangleRender>(button);
}*/