From cba0732a46f65364fc4b7a478c8fd92bdf2bdb86 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Tue, 25 Jan 2022 01:03:43 -0500 Subject: [PATCH] v4.1.0 --- CHANGELOG.md | 4 +- CMakeLists.txt | 2 +- docs/_audio_device_8hpp_source.html | 78 +-- docs/_audio_stream_8hpp_source.html | 264 ++++----- docs/_font_8hpp_source.html | 310 +++++----- docs/_image_8hpp_source.html | 715 ++++++++++++------------ docs/_model_8hpp_source.html | 73 +-- docs/_mouse_8hpp_source.html | 55 +- docs/_music_8hpp_source.html | 316 +++++------ docs/_ray_8hpp_source.html | 130 ++--- docs/_sound_8hpp_source.html | 250 +++++---- docs/_wave_8hpp_source.html | 60 +- docs/_window_8hpp_source.html | 502 ++++++++--------- docs/classraylib_1_1_audio_device.html | 14 +- docs/classraylib_1_1_audio_stream.html | 84 ++- docs/classraylib_1_1_font-members.html | 12 +- docs/classraylib_1_1_font.html | 397 ++++++++++++- docs/classraylib_1_1_image-members.html | 161 +++--- docs/classraylib_1_1_image.html | 263 +++++++-- docs/classraylib_1_1_model-members.html | 6 +- docs/classraylib_1_1_model.html | 77 ++- docs/classraylib_1_1_mouse-members.html | 21 +- docs/classraylib_1_1_mouse.html | 70 ++- docs/classraylib_1_1_music.html | 129 ++++- docs/classraylib_1_1_ray-members.html | 2 +- docs/classraylib_1_1_ray.html | 14 +- docs/classraylib_1_1_sound-members.html | 4 +- docs/classraylib_1_1_sound.html | 107 +++- docs/classraylib_1_1_wave.html | 55 +- docs/classraylib_1_1_window.html | 72 ++- docs/functions_f.html | 3 + docs/functions_func_f.html | 3 + docs/functions_func_g.html | 9 + docs/functions_func_i.html | 1 + docs/functions_func_l.html | 6 +- docs/functions_func_s.html | 6 + docs/functions_g.html | 9 + docs/functions_i.html | 1 + docs/functions_l.html | 6 +- docs/functions_s.html | 6 + docs/search/all_10.js | 241 ++++---- docs/search/all_11.js | 40 +- docs/search/all_12.js | 20 +- docs/search/all_13.js | 8 +- docs/search/all_14.js | 6 +- docs/search/all_15.js | 2 +- docs/search/all_16.js | 10 +- docs/search/all_2.js | 2 +- docs/search/all_5.js | 2 +- docs/search/all_6.js | 39 +- docs/search/all_7.js | 4 +- docs/search/all_8.js | 46 +- docs/search/all_9.js | 2 +- docs/search/all_a.js | 34 +- docs/search/all_b.js | 24 +- docs/search/all_c.js | 2 +- docs/search/all_d.js | 20 +- docs/search/all_e.js | 12 +- docs/search/all_f.js | 32 +- docs/search/classes_0.js | 4 +- docs/search/classes_1.js | 2 +- docs/search/classes_2.js | 6 +- docs/search/classes_3.js | 2 +- docs/search/classes_4.js | 2 +- docs/search/classes_5.js | 2 +- docs/search/classes_6.js | 14 +- docs/search/classes_7.js | 2 +- docs/search/classes_8.js | 10 +- docs/search/classes_9.js | 4 +- docs/search/classes_a.js | 2 +- docs/search/classes_b.js | 8 +- docs/search/classes_c.js | 4 +- docs/search/functions_0.js | 18 +- docs/search/functions_1.js | 6 +- docs/search/functions_10.js | 238 ++++---- docs/search/functions_11.js | 40 +- docs/search/functions_12.js | 20 +- docs/search/functions_13.js | 6 +- docs/search/functions_14.js | 2 +- docs/search/functions_15.js | 10 +- docs/search/functions_2.js | 46 +- docs/search/functions_3.js | 30 +- docs/search/functions_4.js | 12 +- docs/search/functions_5.js | 15 +- docs/search/functions_6.js | 261 ++++----- docs/search/functions_7.js | 4 +- docs/search/functions_8.js | 46 +- docs/search/functions_9.js | 2 +- docs/search/functions_a.js | 34 +- docs/search/functions_b.js | 16 +- docs/search/functions_c.js | 2 +- docs/search/functions_d.js | 20 +- docs/search/functions_e.js | 10 +- docs/search/functions_f.js | 24 +- docs/search/namespaces_0.js | 2 +- docs/search/pages_0.js | 2 +- examples/multiple/main.cpp | 23 +- include/Font.hpp | 16 + include/Image.hpp | 8 +- include/Model.hpp | 13 + include/Mouse.hpp | 32 +- include/Music.hpp | 4 + include/Ray.hpp | 4 +- include/Sound.hpp | 10 + include/Wave.hpp | 6 +- include/Window.hpp | 2 + 106 files changed, 3520 insertions(+), 2369 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b99e919..388875d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [4.1.0] - Unreleased +## [4.1.0] - 2022-02-25 ### Added - Web-based example at [core_basic_window_web.cpp](examples/core/core_basic_window_web.cpp) -- An [Exception](README.md#exceptions) is now thrown when an asset fails to load during object construction (applies to Music, Texture, Image, Sound, etc) +- An [Exception](README.md#exceptions) is now thrown when assets fail to load during object construction (applies to Music, Texture, Image, Sound, etc) ### Changed - Unit tests now use [raylib-assert](https://github.com/RobLoach/raylib-assert) diff --git a/CMakeLists.txt b/CMakeLists.txt index 18838dc..c76d17a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.11) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") project (raylib_cpp - VERSION 4.0.4 + VERSION 4.1.0 DESCRIPTION "raylib-cpp C++ Object Oriented Wrapper for raylib" HOMEPAGE_URL "https://github.com/robloach/raylib-cpp" LANGUAGES C CXX) diff --git a/docs/_audio_device_8hpp_source.html b/docs/_audio_device_8hpp_source.html index 5d6a55b..4390b72 100644 --- a/docs/_audio_device_8hpp_source.html +++ b/docs/_audio_device_8hpp_source.html @@ -81,48 +81,48 @@ $(function() {
8 namespace raylib {
12 class AudioDevice {
13  public:
-
19  AudioDevice(bool lateInit = false) {
-
20  if (!lateInit) {
-
21  if (!Init()) {
-
22  throw RaylibException("Failed to initialize AudioDevice");
-
23  }
-
24  }
-
25  }
-
26 
-
30  ~AudioDevice() {
-
31  Close();
-
32  }
-
33 
-
37  inline bool Init() {
-
38  ::InitAudioDevice();
-
39  return IsReady();
-
40  }
-
41 
-
45  inline void Close() {
-
46  ::CloseAudioDevice();
-
47  }
-
48 
-
52  inline bool IsReady() const {
-
53  return ::IsAudioDeviceReady();
-
54  }
-
55 
-
61  inline AudioDevice& SetVolume(float volume) {
-
62  ::SetMasterVolume(volume);
-
63  return *this;
-
64  }
-
65 };
-
66 } // namespace raylib
-
67 
-
68 #endif // RAYLIB_CPP_INCLUDE_AUDIODEVICE_HPP_
+
21  AudioDevice(bool lateInit = false) {
+
22  if (!lateInit) {
+
23  if (!Init()) {
+
24  throw RaylibException("Failed to initialize AudioDevice");
+
25  }
+
26  }
+
27  }
+
28 
+
32  ~AudioDevice() {
+
33  Close();
+
34  }
+
35 
+
39  inline bool Init() {
+
40  ::InitAudioDevice();
+
41  return IsReady();
+
42  }
+
43 
+
47  inline void Close() {
+
48  ::CloseAudioDevice();
+
49  }
+
50 
+
54  inline bool IsReady() const {
+
55  return ::IsAudioDeviceReady();
+
56  }
+
57 
+
63  inline AudioDevice& SetVolume(float volume) {
+
64  ::SetMasterVolume(volume);
+
65  return *this;
+
66  }
+
67 };
+
68 } // namespace raylib
+
69 
+
70 #endif // RAYLIB_CPP_INCLUDE_AUDIODEVICE_HPP_
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
AudioDevice & SetVolume(float volume)
Set master volume (listener).
Definition: AudioDevice.hpp:61
-
bool Init()
Initialize audio device and context.
Definition: AudioDevice.hpp:37
-
~AudioDevice()
Close the audio device and context.
Definition: AudioDevice.hpp:30
-
AudioDevice(bool lateInit=false)
Initialize audio device and context.
Definition: AudioDevice.hpp:19
+
AudioDevice & SetVolume(float volume)
Set master volume (listener).
Definition: AudioDevice.hpp:63
+
bool Init()
Initialize audio device and context.
Definition: AudioDevice.hpp:39
+
~AudioDevice()
Close the audio device and context.
Definition: AudioDevice.hpp:32
+
AudioDevice(bool lateInit=false)
Initialize audio device and context.
Definition: AudioDevice.hpp:21
Audio device management functions.
Definition: AudioDevice.hpp:12
-
void Close()
Close the audio device and context.
Definition: AudioDevice.hpp:45
-
bool IsReady() const
Check if audio device has been initialized successfully.
Definition: AudioDevice.hpp:52
+
void Close()
Close the audio device and context.
Definition: AudioDevice.hpp:47
+
bool IsReady() const
Check if audio device has been initialized successfully.
Definition: AudioDevice.hpp:54
Exception used for most raylib-related exceptions.