game/mario/gui/gui.cpp

12 lines
584 B
C++
Raw Normal View History

2022-06-21 12:52:36 +00:00
#include "gui.hpp"
2022-06-22 19:42:57 +00:00
/*std::shared_ptr<SDLPP::RectangleRender>
2022-06-21 12:52:36 +00:00
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);
2022-06-22 19:42:57 +00:00
}*/