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_
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::AudioDevice::SetVolume
AudioDevice & SetVolume(float volume)
Set master volume (listener).
Definition: AudioDevice.hpp:61
-
raylib::AudioDevice::Init
bool Init()
Initialize audio device and context.
Definition: AudioDevice.hpp:37
-
raylib::AudioDevice::~AudioDevice
~AudioDevice()
Close the audio device and context.
Definition: AudioDevice.hpp:30
-
raylib::AudioDevice::AudioDevice
AudioDevice(bool lateInit=false)
Initialize audio device and context.
Definition: AudioDevice.hpp:19
+
raylib::AudioDevice::SetVolume
AudioDevice & SetVolume(float volume)
Set master volume (listener).
Definition: AudioDevice.hpp:63
+
raylib::AudioDevice::Init
bool Init()
Initialize audio device and context.
Definition: AudioDevice.hpp:39
+
raylib::AudioDevice::~AudioDevice
~AudioDevice()
Close the audio device and context.
Definition: AudioDevice.hpp:32
+
raylib::AudioDevice::AudioDevice
AudioDevice(bool lateInit=false)
Initialize audio device and context.
Definition: AudioDevice.hpp:21
raylib::AudioDevice
Audio device management functions.
Definition: AudioDevice.hpp:12
-
raylib::AudioDevice::Close
void Close()
Close the audio device and context.
Definition: AudioDevice.hpp:45
-
raylib::AudioDevice::IsReady
bool IsReady() const
Check if audio device has been initialized successfully.
Definition: AudioDevice.hpp:52
+
raylib::AudioDevice::Close
void Close()
Close the audio device and context.
Definition: AudioDevice.hpp:47
+
raylib::AudioDevice::IsReady
bool IsReady() const
Check if audio device has been initialized successfully.
Definition: AudioDevice.hpp:54
raylib::RaylibException
Exception used for most raylib-related exceptions.
Definition: RaylibException.hpp:13