raylib-cpp
C++ object-oriented wrapper library for raylib.
include
raylib-cpp-utils.hpp
1
/*
2
* LICENSE: zlib/libpng
3
*
4
* raylib-cpp is licensed under an unmodified zlib/libpng license, which is an OSI-certified,
5
* BSD-like license that allows static linking with closed source software:
6
*
7
* Copyright (c) 2020 Rob Loach (@RobLoach)
8
*
9
* This software is provided "as-is", without any express or implied warranty. In no event
10
* will the authors be held liable for any damages arising from the use of this software.
11
*
12
* Permission is granted to anyone to use this software for any purpose, including commercial
13
* applications, and to alter it and redistribute it freely, subject to the following restrictions:
14
*
15
* 1. The origin of this software must not be misrepresented; you must not claim that you
16
* wrote the original software. If you use this software in a product, an acknowledgment
17
* in the product documentation would be appreciated but is not required.
18
*
19
* 2. Altered source versions must be plainly marked as such, and must not be misrepresented
20
* as being the original software.
21
*
22
* 3. This notice may not be removed or altered from any source distribution.
23
*/
24
25
#ifndef RAYLIB_CPP_INCLUDE_RAYLIB_CPP_UTILS_HPP_
26
#define RAYLIB_CPP_INCLUDE_RAYLIB_CPP_UTILS_HPP_
27
28
#ifndef GETTERSETTER
29
36
#define GETTERSETTER(type, method, name) \
37
inline type Get##method() const { return name; } \
38
inline void Set##method(type value) { name = value; }
39
#endif
40
41
#endif // RAYLIB_CPP_INCLUDE_RAYLIB_CPP_UTILS_HPP_
Generated on Sun Feb 14 2021 16:32:47 for raylib-cpp by
1.8.17