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 { \
18 return name; \
19 }
20#endif
21
22#ifndef GETTERSETTER
30#define GETTERSETTER(type, method, name) \
31 GETTER(type, method, name) \
32 \
33 void Set##method(type value) { \
34 name = value; \
35 }
36#endif
37
38#endif // RAYLIB_CPP_INCLUDE_RAYLIB_CPP_UTILS_HPP_