You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*raylib-cpp* is a C++ wrapper library for [raylib](https://www.raylib.com/), a simple and easy-to-use library to enjoy videogames programming. This C++ header provides object-oriented wrappers around raylib's struct interfaces.
5
+
[raylib-cpp](https://github.com/robloach/raylib-cpp) is a C++ wrapper library for [raylib](https://www.raylib.com), a simple and easy-to-use library to enjoy videogames programming. This C++ header provides object-oriented wrappers around *raylib*'s struct interfaces.
6
6
7
7
## Example
8
8
@@ -210,6 +210,22 @@ for (auto& file : files) {
210
210
}
211
211
```
212
212
213
+
### String Functions
214
+
215
+
Many of the raylib functions have `std::string`-related functions to allow calling them directly with `std::string`s to save having to use the `.c_str()` method.
216
+
217
+
```cpp
218
+
// raylib
219
+
constchar* url = "https://raylib.com";
220
+
OpenURL(url);
221
+
222
+
// raylib-cpp
223
+
std::string url = "https://raylib.com";
224
+
raylib::OpenURL(url);
225
+
OpenURL(url.c_str()); // Alternatively
226
+
```
227
+
228
+
213
229
### RayMath
214
230
215
231
The [raymath](https://github.com/raysan5/raylib/blob/master/src/raymath.h) methods are included.
@@ -283,3 +299,7 @@ cpplint --recursive include
283
299
### Defines
284
300
285
301
- `RAYLIB_CPP_NO_MATH` - When set, will skip adding the `raymath.h` integrations
302
+
303
+
## License
304
+
305
+
raylib-cpp is licensed under an unmodified zlib/libpng license, which is an OSI-certified, BSD-like license that allows static linking with closed source software. Check [LICENSE](LICENSE) for further details.
0 commit comments