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](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. *raylib-cpp* is not required to use *raylib* in C++, but the classes do bring using the raylib API more inline with C++'s language pardigm.
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. *raylib-cpp* is not required to use *raylib* in C++, but the classes do bring using the raylib API more inline with C++'s language paradigm.
6
6
7
7
## Example
8
8
@@ -86,7 +86,7 @@ texture.Draw(50, 50, WHITE);
86
86
87
87
### Optional Parameters
88
88
89
-
Many methods have optional parameters with sane defaults.
89
+
Many methods have optional parameters with the same defaults.
90
90
91
91
``` cpp
92
92
// raylib
@@ -98,7 +98,7 @@ texture.Draw(50, 50); // WHITE is provided as the default tint.
98
98
99
99
### Object Destructors
100
100
101
-
Objects will attempt to unload their respective raylib resources on destruction. This means no need to call Unload or Close methods. This applies to the window, textures, images, sounds, etc.
101
+
Objects will attempt to unload their respective raylib resources on destruction. This means that there is no need to call Unload or Close methods. This applies to the window, textures, images, sounds, etc.
Properties can be assigned through getter and setter methods. You still have access to the internal properties, however.
115
+
Properties can be assigned through getter and setter methods. However, you still have access to the internal properties.
116
116
117
117
``` cpp
118
118
// raylib
@@ -208,7 +208,7 @@ for (auto& file : files) {
208
208
209
209
### String Functions
210
210
211
-
Many of the raylib functions have `std::string`-related overrides to allow calling them directly with `std::string`s to save having to use the `.c_str()` method.
211
+
Many of the raylib functions have `std::string`-related overrides to allow calling them directly with `std::string`s and avoid having to use the `.c_str()` method.
212
212
213
213
```cpp
214
214
// raylib
@@ -222,7 +222,7 @@ raylib::OpenURL(url);
222
222
223
223
### Exceptions
224
224
225
-
When loading an asset fails, raylib will log a warning, but provide no other feedback for you to act upon. raylib-cpp will throw a [`RaylibException`](include/RaylibException.hpp) [runtime exception](https://en.cppreference.com/w/cpp/error/runtime_error), allowing to provide a safe method to catch failed loads.
225
+
When loading an asset fails, raylib will log a warning, but provide no other feedback for you to act upon. raylib-cpp will throw a [`RaylibException`](include/RaylibException.hpp) [runtime exception](https://en.cppreference.com/w/cpp/error/runtime_error), allowing to provide a safe method for catching failed loads.
0 commit comments