You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
372 B
C++
22 lines
372 B
C++
#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
|
|
|