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() {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +| lateInit | Whether or not to post-pone initializing the context. |
| lateInit | Whether or not to post-pone initializing the context. |
| raylib::RaylibException | Throws if the AudioDevice failed to initialize. |
Definition at line 19 of file AudioDevice.hpp.
+Definition at line 21 of file AudioDevice.hpp.
-References Init().
+References Init().
@@ -179,7 +185,7 @@ boolDefinition at line 63 of file AudioDevice.hpp.
diff --git a/docs/classraylib_1_1_audio_stream.html b/docs/classraylib_1_1_audio_stream.html index 930b35b..d00c273 100644 --- a/docs/classraylib_1_1_audio_stream.html +++ b/docs/classraylib_1_1_audio_stream.html @@ -93,9 +93,8 @@ Public Member FunctionsAudioStream management functions.
Definition at line 12 of file AudioStream.hpp.
-
+
|
+ +inline | +
Init audio stream (to stream raw audio pcm data)
+| raylib::RaylibException | Throws if the AudioStream failed to load. |
Definition at line 30 of file AudioStream.hpp.
+ +References Load().
+ +Definition at line 49 of file AudioStream.hpp.
+Definition at line 51 of file AudioStream.hpp.
@@ -246,7 +300,7 @@ static voidDefinition at line 52 of file AudioStream.hpp.
+Definition at line 54 of file AudioStream.hpp.
@@ -276,7 +330,7 @@ static voidDefinition at line 50 of file AudioStream.hpp.
+Definition at line 52 of file AudioStream.hpp.
@@ -306,7 +360,7 @@ static voidDefinition at line 51 of file AudioStream.hpp.
+Definition at line 53 of file AudioStream.hpp.
@@ -353,11 +407,11 @@ static voidDefinition at line 173 of file AudioStream.hpp.
+Definition at line 175 of file AudioStream.hpp.
-References IsReady().
+References IsReady().
-Referenced by AudioStream().
+Referenced by AudioStream().
@@ -393,7 +447,7 @@ static voidDefinition at line 49 of file AudioStream.hpp.
+Definition at line 51 of file AudioStream.hpp.
@@ -429,7 +483,7 @@ static voidDefinition at line 52 of file AudioStream.hpp.
+Definition at line 54 of file AudioStream.hpp.
@@ -465,7 +519,7 @@ static voidDefinition at line 50 of file AudioStream.hpp.
+Definition at line 52 of file AudioStream.hpp.
@@ -501,7 +555,7 @@ static voidDefinition at line 51 of file AudioStream.hpp.
+Definition at line 53 of file AudioStream.hpp.
diff --git a/docs/classraylib_1_1_font-members.html b/docs/classraylib_1_1_font-members.html index 1b0fe62..747594a 100644 --- a/docs/classraylib_1_1_font-members.html +++ b/docs/classraylib_1_1_font-members.html @@ -80,10 +80,10 @@ $(function() {Font type, includes texture and charSet array data.
Definition at line 14 of file Font.hpp.
-
+
|
+ +inline | +
Loads a Font from the given file.
+| fileName | The file name of the font to load. |
| raylib::RaylibException | Throws if the given font failed to initialize. |
Definition at line 40 of file Font.hpp.
+ +References Load().
+ +
+
|
+ +inline | +
Loads a Font from the given file, with generation parameters.
+| fileName | The file name of the font to load. |
| raylib::RaylibException | Throws if the given font failed to initialize. |
Definition at line 55 of file Font.hpp.
+ +References Load().
+ +
+
|
+ +inline | +
Loads a Font from the given image with a color key.
+| image | The image to load the fond from. |
| raylib::RaylibException | Throws if the given font failed to initialize. |
Definition at line 70 of file Font.hpp.
+ +References Load().
+ +
+
|
+ +inline | +
Loads a font from memory, based on the given file type and file data.
+| raylib::RaylibException | Throws if the given font failed to initialize. |
Definition at line 83 of file Font.hpp.
+ +References Load().
+ +Definition at line 79 of file Font.hpp.
+Definition at line 111 of file Font.hpp.
@@ -249,7 +495,7 @@ voidDefinition at line 80 of file Font.hpp.
+Definition at line 112 of file Font.hpp.
@@ -279,7 +525,7 @@ voidDefinition at line 81 of file Font.hpp.
+Definition at line 113 of file Font.hpp.
@@ -309,7 +555,7 @@ voidDefinition at line 84 of file Font.hpp.
+Definition at line 116 of file Font.hpp.
@@ -339,7 +585,7 @@ voidDefinition at line 83 of file Font.hpp.
+Definition at line 115 of file Font.hpp.
@@ -369,7 +615,108 @@ voidDefinition at line 82 of file Font.hpp.
+Definition at line 114 of file Font.hpp.
+ + + + +
+
|
+ +inline | +
+
|
+ +inline | +
Loads a font from a given file with generation parameters.
+| fileName | The filename of the font to load. |
| fontSize | The desired size of the font. |
Definition at line 79 of file Font.hpp.
+Definition at line 111 of file Font.hpp.
@@ -441,7 +788,7 @@ voidDefinition at line 80 of file Font.hpp.
+Definition at line 112 of file Font.hpp.
@@ -477,7 +824,7 @@ voidDefinition at line 81 of file Font.hpp.
+Definition at line 113 of file Font.hpp.
@@ -513,7 +860,7 @@ voidDefinition at line 84 of file Font.hpp.
+Definition at line 116 of file Font.hpp.
@@ -549,7 +896,7 @@ voidDefinition at line 83 of file Font.hpp.
+Definition at line 115 of file Font.hpp.
@@ -585,7 +932,7 @@ voidDefinition at line 82 of file Font.hpp.
+Definition at line 114 of file Font.hpp.
diff --git a/docs/classraylib_1_1_image-members.html b/docs/classraylib_1_1_image-members.html index 8cbc3e6..6fd77a6 100644 --- a/docs/classraylib_1_1_image-members.html +++ b/docs/classraylib_1_1_image-members.html @@ -90,86 +90,87 @@ $(function() {References Load().
+References Load().
@@ -525,7 +525,7 @@ static intReferences Load().
+References Load().
@@ -574,7 +574,7 @@ static intReferences Load().
+References Load().
@@ -628,7 +628,7 @@ static intReferences Load().
+References Load().
@@ -666,7 +666,7 @@ static intReferences Load().
+References Load().
@@ -750,7 +750,7 @@ static intDefinition at line 690 of file Image.hpp.
+Definition at line 717 of file Image.hpp.
-Referenced by Load().
+Referenced by Load().
-Load an image from the given file.
-Definition at line 263 of file Image.hpp.
+Definition at line 281 of file Image.hpp.
-References IsReady().
+References IsReady().
+ +
+
|
+ +inline | +
Load image from file into CPU memory (RAM)
+Definition at line 230 of file Image.hpp.
+ +References IsReady(), and raylib::LoadImage().
+ +Referenced by Image().
+ +
+
|
+ +inline | +
Load image sequence from file (frames appended to image.data).
+Definition at line 254 of file Image.hpp.
+ +References IsReady(), and raylib::LoadImageAnim().
+ +
+
|
+ +inline | +
Load image from RAW file data.
+Definition at line 242 of file Image.hpp.
+ +References IsReady(), and raylib::LoadImageRaw().
Load image from memory buffer, fileType refers to extension: i.e.
-"png".
+"png".
+Definition at line 250 of file Image.hpp.
+Definition at line 266 of file Image.hpp.
-References IsReady(), and raylib::LoadImageFromMemory().
+References IsReady(), and raylib::LoadImageFromMemory().
+ +
+
|
+ +inline | +
Loads a texture from the image data.
+Definition at line 692 of file Image.hpp.
+ +References LoadTexture().
Definition at line 294 of file Image.hpp.
+Definition at line 312 of file Image.hpp.
diff --git a/docs/classraylib_1_1_model-members.html b/docs/classraylib_1_1_model-members.html index 0c9d160..ff8df88 100644 --- a/docs/classraylib_1_1_model-members.html +++ b/docs/classraylib_1_1_model-members.html @@ -90,9 +90,9 @@ $(function() {
+
|
+ +inline | +
+
|
+ +inline | +
This is the complete list of members for raylib::Mouse, including all inherited members.
| GetPosition() (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| GetTouchPosition(int index) (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| GetTouchX() (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| GetTouchY() (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| GetTouchPosition(int index) | raylib::Mouse | inlinestatic |
| GetTouchX() | raylib::Mouse | inlinestatic |
| GetTouchY() | raylib::Mouse | inlinestatic |
| GetWheelMove() (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| GetX() (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| GetY() (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| IsButtonPressed(int button) | raylib::Mouse | inlinestatic |
| IsButtonReleased(int button) | raylib::Mouse | inlinestatic |
| IsButtonUp(int button) (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| SetCursor(int cursor) (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| SetOffset(int offsetX, int offsetY) (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| SetPosition(int x, int y) (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| SetScale(float scaleX, float scaleY) (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| SetX(int x) (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| SetY(int y) (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| SetCursor(int cursor=MOUSE_CURSOR_DEFAULT) | raylib::Mouse | inlinestatic |
| SetOffset(int offsetX=0, int offsetY=0) (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| SetOffset(::Vector2 offset) (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| SetPosition(int x, int y) (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| SetPosition(::Vector2 position) (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| SetScale(float scaleX=1.0f, float scaleY=1.0f) (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| SetScale(::Vector2 scale) (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| SetX(int x) (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
| SetY(int y) (defined in raylib::Mouse) | raylib::Mouse | inlinestatic |
+
|
+ +inlinestatic | +
Music stream type (audio file streaming from memory)
Definition at line 14 of file Music.hpp.
-
+
|
+ +inline | +
Load music stream from file.
+| raylib::RaylibException | Throws if the music failed to load. |
Definition at line 36 of file Music.hpp.
+ +References Load().
+ +
+
|
+ +inline | +
Load music stream from memory.
+| raylib::RaylibException | Throws if the music failed to load. |
Definition at line 47 of file Music.hpp.
+ +References Load().
+ +Definition at line 211 of file Music.hpp.
+Definition at line 215 of file Music.hpp.
-Referenced by Load().
+Referenced by Load().
@@ -423,7 +514,7 @@ voidDefinition at line 19 of file Sound.hpp.
-
+
|
+ +inline | +
Loads a sound from the given file.
+| raylib::RaylibException | Throws if the Sound failed to load. |
Definition at line 45 of file Sound.hpp.
+ +References Load().
+ +
+
|
+ +inline | +
Definition at line 190 of file Sound.hpp.
+Definition at line 200 of file Sound.hpp.
-Referenced by Load().
+Referenced by Load().
@@ -298,9 +375,11 @@ voidDefinition at line 171 of file Sound.hpp.
+Definition at line 181 of file Sound.hpp.
-References IsReady().
+References IsReady().
+ +Referenced by Sound().
@@ -336,7 +415,7 @@ voidDefinition at line 67 of file Sound.hpp.
-References Unload().
+References Unload().
diff --git a/docs/classraylib_1_1_wave.html b/docs/classraylib_1_1_wave.html index 1049613..6185060 100644 --- a/docs/classraylib_1_1_wave.html +++ b/docs/classraylib_1_1_wave.html @@ -141,9 +141,8 @@ boolReferences Load().
+References Load().
@@ -424,14 +423,49 @@ voidDefinition at line 205 of file Wave.hpp.
+Definition at line 209 of file Wave.hpp.
-Referenced by Load().
+Referenced by Load().
+ + + + +
+
|
+ +inline | +
Load wave from memory buffer, fileType refers to extension: i.e.
-"wav"
+"wav"
+Definition at line 195 of file Wave.hpp.
+Definition at line 199 of file Wave.hpp.
-References IsReady().
+References IsReady().
diff --git a/docs/classraylib_1_1_window.html b/docs/classraylib_1_1_window.html index 8582a62..1f61317 100644 --- a/docs/classraylib_1_1_window.html +++ b/docs/classraylib_1_1_window.html @@ -81,9 +81,8 @@ $(function() {Public Member Functions | |||||||||||||||||||||
| - | Window (int width=800, int height=450, const std::string &title="raylib", bool lateInit=false) | ||||||||||||||||||||
| Initialize window and OpenGL context. | |||||||||||||||||||||
| Window (int width=800, int height=450, const std::string &title="raylib", bool lateInit=false) | |||||||||||||||||||||
| Initialize window and OpenGL context. More... | |||||||||||||||||||||
| ~Window () | Window and Graphics Device Functions. Definition at line 13 of file Window.hpp. -Member Function Documentation+Constructor & Destructor Documentation+ +◆ Window()+ +
+
+
+
+
+
+Initialize window and OpenGL context. +
Definition at line 20 of file Window.hpp. + +References Init(). + +Member Function Documentation◆ Init()@@ -304,11 +364,11 @@ static bool | Initializes the window.
Definition at line 39 of file Window.hpp. +Definition at line 41 of file Window.hpp. References raylib::InitWindow(). -Referenced by Window(). +Referenced by Window(). diff --git a/docs/functions_f.html b/docs/functions_f.html index 87f8c93..da6659f 100644 --- a/docs/functions_f.html +++ b/docs/functions_f.html @@ -75,6 +75,9 @@ $(function() { | |||||||||||||||||||