Skip to content

Commit a8037e4

Browse files
authored
Merge branch 'master' into next
2 parents 0753b1b + 9e7a1bb commit a8037e4

File tree

278 files changed

+5369
-5644
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

278 files changed

+5369
-5644
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ build
22
.vscode
33
package-lock.json
44
node_modules
5+
cmake-build-debug
6+
.idea

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [3.5.0-beta3] - 2021-02-18
8+
### Added
9+
- Added a C++ version of raylib's loading thread example (by [@pkeir]([https://github.com/pkeir))
10+
- Updated documentation
11+
### Fixed
12+
- Made the global wrapped functions static to avoid redeclaration
13+
714
## [v3.5.0-beta2] - 2021-01-18
815
### Fixed
916
- `Font.charsPadding` loading

CPPLINT.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
set noparent
22
root=..
3-
linelength=100
3+
linelength=120
44
exclude_files=vendor
55
exclude_files=docs
66
filter=-runtime/explicit
7+
filter=-legal/copyright

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
![raylib-cpp Logo](projects/Doxygen/raylib-cpp_256x256.png)
22

3-
# raylib-cpp [![Tests](https://github.com/RobLoach/raylib-cpp/workflows/Tests/badge.svg)](https://github.com/RobLoach/raylib-cpp/actions?query=workflow%3ATests+branch%3Amaster)
3+
# raylib-cpp [![Tests](https://github.com/RobLoach/raylib-cpp/workflows/Tests/badge.svg)](https://github.com/RobLoach/raylib-cpp/actions?query=workflow%3ATests+branch%3Amaster) [![License](https://img.shields.io/badge/license-zlib%2Flibpng-blue.svg)](LICENSE)
44

5-
*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.
66

77
## Example
88

@@ -210,6 +210,22 @@ for (auto& file : files) {
210210
}
211211
```
212212

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+
const char* 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+
213229
### RayMath
214230
215231
The [raymath](https://github.com/raysan5/raylib/blob/master/src/raymath.h) methods are included.
@@ -283,3 +299,7 @@ cpplint --recursive include
283299
### Defines
284300
285301
- `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.

docs/_audio_device_8hpp_source.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
<div class="ttc" id="aclassraylib_1_1_audio_device_html_a5555c3a41868046ea8b6ff08195f21bc"><div class="ttname"><a href="classraylib_1_1_audio_device.html#a5555c3a41868046ea8b6ff08195f21bc">raylib::AudioDevice::IsReady</a></div><div class="ttdeci">bool IsReady() const</div><div class="ttdoc">Check if audio device has been initialized successfully.</div><div class="ttdef"><b>Definition:</b> <a href="_audio_device_8hpp_source.html#l00074">AudioDevice.hpp:74</a></div></div>
148148
<!-- start footer part -->
149149
<hr class="footer"/><address class="footer"><small>
150-
Generated on Mon Jan 18 2021 19:20:15 for raylib-cpp by &#160;<a href="http://www.doxygen.org/index.html">
150+
Generated on Sun Feb 14 2021 16:32:47 for raylib-cpp by &#160;<a href="http://www.doxygen.org/index.html">
151151
<img class="footer" src="doxygen.png" alt="doxygen"/>
152152
</a> 1.8.17
153153
</small></address>

docs/_audio_stream_8hpp_source.html

Lines changed: 75 additions & 81 deletions
Large diffs are not rendered by default.

docs/_bounding_box_8hpp_source.html

Lines changed: 32 additions & 38 deletions
Large diffs are not rendered by default.

docs/_camera2_d_8hpp_source.html

Lines changed: 28 additions & 34 deletions
Large diffs are not rendered by default.

docs/_camera3_d_8hpp_source.html

Lines changed: 105 additions & 111 deletions
Large diffs are not rendered by default.

docs/_color_8hpp_source.html

Lines changed: 150 additions & 156 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)