aboutsummaryrefslogtreecommitdiffstats
path: root/attr/ondraw.hpp
blob: d0932ef727772e430d93c21614993eabab7d0818 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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