#ifndef MBUOY_ATTR_ONDRAW_HPP #define MBUOY_ATTR_ONDRAW_HPP #include "position.hpp" #include "dimensions.hpp" namespace mbuoy { struct ondraw { void (*func)(const position&, const dimensions&); void operator()(const position& pos, const dimensions& dim) const noexcept { func(pos, dim); } }; } // namespace mbuoy #endif // MBUOY_ATTR_ONDRAW_HPP