raylib-cpp
C++ object-oriented wrapper library for raylib.
Loading...
Searching...
No Matches
raylib-cpp-utils.hpp
1
4#ifndef RAYLIB_CPP_INCLUDE_RAYLIB_CPP_UTILS_HPP_
5#define RAYLIB_CPP_INCLUDE_RAYLIB_CPP_UTILS_HPP_
6
7#ifndef GETTER
15#define GETTER(type, method, name) \
16 \
17 type Get##method() const { return name; }
18#endif
19
20#ifndef GETTERSETTER
28#define GETTERSETTER(type, method, name) \
29 GETTER(type, method, name) \
30 \
31 void Set##method(type value) { name = value; }
32#endif
33
34#endif // RAYLIB_CPP_INCLUDE_RAYLIB_CPP_UTILS_HPP_