From 8719c73f265c739caf0b9f2d26d8326526d1f3d2 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Thu, 6 May 2021 18:43:34 -0400 Subject: [PATCH] Documentation updates --- CMakeLists.txt | 6 +- README.md | 13 +- docs/_audio_device_8hpp_source.html | 2 +- docs/_audio_stream_8hpp_source.html | 2 +- docs/_bounding_box_8hpp_source.html | 2 +- docs/_camera2_d_8hpp_source.html | 2 +- docs/_camera3_d_8hpp_source.html | 2 +- docs/_color_8hpp_source.html | 2 +- docs/_font_8hpp_source.html | 2 +- docs/_functions_8hpp_source.html | 2 +- docs/_gamepad_8hpp_source.html | 2 +- docs/_image_8hpp_source.html | 2 +- docs/_material_8hpp_source.html | 2 +- docs/_matrix_8hpp_source.html | 2 +- docs/_mesh_8hpp_source.html | 2 +- docs/_model_8hpp_source.html | 2 +- docs/_model_animation_8hpp_source.html | 2 +- docs/_mouse_8hpp_source.html | 2 +- docs/_music_8hpp_source.html | 2 +- docs/_physics_8hpp_source.html | 2 +- docs/_ray_8hpp_source.html | 2 +- docs/_ray_hit_info_8hpp_source.html | 2 +- docs/_rectangle_8hpp_source.html | 2 +- docs/_render_texture_8hpp_source.html | 2 +- docs/_shader_8hpp_source.html | 2 +- docs/_sound_8hpp_source.html | 2 +- docs/_text_8hpp_source.html | 2 +- docs/_texture_8hpp_source.html | 2 +- docs/_vector2_8hpp_source.html | 2 +- docs/_vector3_8hpp_source.html | 2 +- docs/_vector4_8hpp_source.html | 2 +- docs/_vr_stereo_config_8hpp_source.html | 2 +- docs/_wave_8hpp_source.html | 2 +- docs/_window_8hpp_source.html | 2 +- docs/annotated.html | 2 +- docs/classes.html | 2 +- .../classraylib_1_1_audio_device-members.html | 2 +- docs/classraylib_1_1_audio_device.html | 2 +- .../classraylib_1_1_audio_stream-members.html | 2 +- docs/classraylib_1_1_audio_stream.html | 2 +- .../classraylib_1_1_bounding_box-members.html | 2 +- docs/classraylib_1_1_bounding_box.html | 2 +- docs/classraylib_1_1_camera2_d-members.html | 2 +- docs/classraylib_1_1_camera2_d.html | 2 +- docs/classraylib_1_1_camera3_d-members.html | 2 +- docs/classraylib_1_1_camera3_d.html | 2 +- docs/classraylib_1_1_color-members.html | 2 +- docs/classraylib_1_1_color.html | 2 +- docs/classraylib_1_1_font-members.html | 2 +- docs/classraylib_1_1_font.html | 2 +- docs/classraylib_1_1_gamepad-members.html | 2 +- docs/classraylib_1_1_gamepad.html | 2 +- docs/classraylib_1_1_image-members.html | 2 +- docs/classraylib_1_1_image.html | 2 +- docs/classraylib_1_1_material-members.html | 2 +- docs/classraylib_1_1_material.html | 2 +- docs/classraylib_1_1_matrix-members.html | 2 +- docs/classraylib_1_1_matrix.html | 2 +- docs/classraylib_1_1_mesh-members.html | 2 +- docs/classraylib_1_1_mesh.html | 2 +- docs/classraylib_1_1_model-members.html | 2 +- docs/classraylib_1_1_model.html | 2 +- ...assraylib_1_1_model_animation-members.html | 2 +- docs/classraylib_1_1_model_animation.html | 2 +- docs/classraylib_1_1_mouse-members.html | 2 +- docs/classraylib_1_1_mouse.html | 2 +- docs/classraylib_1_1_music-members.html | 2 +- docs/classraylib_1_1_music.html | 2 +- docs/classraylib_1_1_physics-members.html | 2 +- docs/classraylib_1_1_physics.html | 2 +- docs/classraylib_1_1_ray-members.html | 2 +- docs/classraylib_1_1_ray.html | 2 +- .../classraylib_1_1_ray_hit_info-members.html | 2 +- docs/classraylib_1_1_ray_hit_info.html | 2 +- docs/classraylib_1_1_rectangle-members.html | 2 +- docs/classraylib_1_1_rectangle.html | 2 +- ...lassraylib_1_1_render_texture-members.html | 2 +- docs/classraylib_1_1_render_texture.html | 2 +- docs/classraylib_1_1_shader-members.html | 2 +- docs/classraylib_1_1_shader.html | 2 +- docs/classraylib_1_1_sound-members.html | 2 +- docs/classraylib_1_1_sound.html | 2 +- docs/classraylib_1_1_texture-members.html | 2 +- docs/classraylib_1_1_texture.html | 2 +- docs/classraylib_1_1_vector2-members.html | 2 +- docs/classraylib_1_1_vector2.html | 2 +- docs/classraylib_1_1_vector3-members.html | 2 +- docs/classraylib_1_1_vector3.html | 2 +- docs/classraylib_1_1_vector4-members.html | 2 +- docs/classraylib_1_1_vector4.html | 2 +- ...ssraylib_1_1_vr_stereo_config-members.html | 2 +- docs/classraylib_1_1_vr_stereo_config.html | 2 +- docs/classraylib_1_1_wave-members.html | 2 +- docs/classraylib_1_1_wave.html | 2 +- docs/classraylib_1_1_window-members.html | 2 +- docs/classraylib_1_1_window.html | 2 +- .../dir_d44c64559bbebec7f509842c48db8b23.html | 2 +- docs/functions.html | 2 +- docs/functions_b.html | 2 +- docs/functions_c.html | 2 +- docs/functions_d.html | 2 +- docs/functions_e.html | 2 +- docs/functions_f.html | 2 +- docs/functions_func.html | 2 +- docs/functions_func_b.html | 2 +- docs/functions_func_c.html | 2 +- docs/functions_func_d.html | 2 +- docs/functions_func_e.html | 2 +- docs/functions_func_f.html | 2 +- docs/functions_func_g.html | 2 +- docs/functions_func_h.html | 2 +- docs/functions_func_i.html | 2 +- docs/functions_func_k.html | 2 +- docs/functions_func_l.html | 2 +- docs/functions_func_m.html | 2 +- docs/functions_func_n.html | 2 +- docs/functions_func_o.html | 2 +- docs/functions_func_p.html | 2 +- docs/functions_func_r.html | 2 +- docs/functions_func_s.html | 2 +- docs/functions_func_t.html | 2 +- docs/functions_func_u.html | 2 +- docs/functions_func_w.html | 2 +- docs/functions_func_z.html | 2 +- docs/functions_func_~.html | 2 +- docs/functions_g.html | 2 +- docs/functions_h.html | 2 +- docs/functions_i.html | 2 +- docs/functions_k.html | 2 +- docs/functions_l.html | 2 +- docs/functions_m.html | 2 +- docs/functions_n.html | 2 +- docs/functions_o.html | 2 +- docs/functions_p.html | 2 +- docs/functions_r.html | 2 +- docs/functions_s.html | 2 +- docs/functions_t.html | 2 +- docs/functions_u.html | 2 +- docs/functions_w.html | 2 +- docs/functions_z.html | 2 +- docs/functions_~.html | 2 +- docs/index.html | 4 +- docs/namespacemembers.html | 2 +- docs/namespacemembers_func.html | 2 +- docs/namespaceraylib.html | 2 +- docs/namespaces.html | 2 +- docs/physac_8hpp_source.html | 2 +- docs/raylib-cpp-utils_8hpp_source.html | 2 +- docs/raylib-cpp_8hpp_source.html | 2 +- docs/raylib_8hpp_source.html | 2 +- docs/raymath_8hpp_source.html | 2 +- examples/core/core_basic_window.cpp | 2 +- examples/core/core_input_mouse.cpp | 4 +- examples/shapes/shapes_logo_raylib.cpp | 2 +- examples/text/text_raylib_fonts.cpp | 2 +- examples/textures/textures_image_drawing.cpp | 2 +- projects/CMake/CMakeLists.txt | 9 +- projects/CMake/main.cpp | 2 +- tests/catch.hpp | 388 ++++++++++-------- tests/raylib_test.cpp | 10 +- 160 files changed, 397 insertions(+), 343 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 89a18e9..222caa6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,8 +9,8 @@ project (raylib-cpp # Options option(BUILD_RAYLIB_CPP_EXAMPLES "Examples" ON) -# C++17 -set(CMAKE_CXX_STANDARD 17) +# C++ +set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) @@ -26,7 +26,7 @@ endif() # Testing include(CTest) enable_testing() -if(BUILD_TESTING) +if(BUILD_TESTING AND BUILD_RAYLIB_CPP_EXAMPLES) set(CTEST_CUSTOM_TESTS_IGNORE pkg-config--static ) diff --git a/README.md b/README.md index 9458ffa..485bd3a 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ Vector2 position = {50.0f, 50.0f}; DrawPixelV(position, color); // Extra V in method name. // raylib-cpp -raylib::Color color = GRAY; +raylib::Color color = raylib::Color::Gray(); color.DrawPixel(50, 50); Vector2 position(50.0f, 50.0f); color.DrawPixel(position); // No more V in method name. @@ -222,10 +222,8 @@ OpenURL(url); // raylib-cpp std::string url = "https://raylib.com"; raylib::OpenURL(url); -OpenURL(url.c_str()); // Alternatively ``` - ### RayMath The [raymath](https://github.com/raysan5/raylib/blob/master/src/raymath.h) methods are included. @@ -245,8 +243,9 @@ raylib::Vector2 newDirection = direction.Rotate(30); *raylib-cpp* is a header-only library. This means in order to use it, you must link your project to [raylib](https://www.raylib.com/), and then include [`include/raylib-cpp.hpp`](raylib-cpp/include/raylib-cpp.hpp). 1. Set up a *raylib* project using the [build and install instructions](https://github.com/raysan5/raylib#build-and-installation) -2. Download *raylib-cpp* -3. Include [`raylib-cpp.hpp`](include/raylib-cpp.hpp) +2. Ensure C++ files are compiled with C++ +3. Download *raylib-cpp* +4. Include [`include/raylib-cpp.hpp`](include/raylib-cpp.hpp) ``` cpp #include "path/to/raylib-cpp.hpp" ``` @@ -262,7 +261,7 @@ If there's a project template you would like to see added, feel free to [make an ## Development -The following are some tools in order to build and contribute to raylib-cpp... +The following are some tools in order to build and contribute to *raylib-cpp*... ### Compiling @@ -302,4 +301,4 @@ cpplint --recursive include ## License -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. +*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. diff --git a/docs/_audio_device_8hpp_source.html b/docs/_audio_device_8hpp_source.html index bbf9dff..3e84d4f 100644 --- a/docs/_audio_device_8hpp_source.html +++ b/docs/_audio_device_8hpp_source.html @@ -122,7 +122,7 @@ $(function() {
bool IsReady() const
Check if audio device has been initialized successfully.
Definition: AudioDevice.hpp:49
diff --git a/docs/_audio_stream_8hpp_source.html b/docs/_audio_stream_8hpp_source.html index b3fee12..00553f2 100644 --- a/docs/_audio_stream_8hpp_source.html +++ b/docs/_audio_stream_8hpp_source.html @@ -181,7 +181,7 @@ $(function() {
AudioStream(unsigned int SampleRate, unsigned int SampleSize, unsigned int Channels)
Init audio stream (to stream raw audio pcm data)
Definition: AudioStream.hpp:20
diff --git a/docs/_bounding_box_8hpp_source.html b/docs/_bounding_box_8hpp_source.html index bcec48f..f483d66 100644 --- a/docs/_bounding_box_8hpp_source.html +++ b/docs/_bounding_box_8hpp_source.html @@ -139,7 +139,7 @@ $(function() {
bool CheckCollision(const ::Ray &ray) const
Detect collision between ray and bounding box.
Definition: BoundingBox.hpp:62
diff --git a/docs/_camera2_d_8hpp_source.html b/docs/_camera2_d_8hpp_source.html index 6f583e2..23f7be7 100644 --- a/docs/_camera2_d_8hpp_source.html +++ b/docs/_camera2_d_8hpp_source.html @@ -147,7 +147,7 @@ $(function() {
Vector2 GetWorldToScreen(::Vector2 position) const
Returns the screen space position for a 3d world space position.
Definition: Camera2D.hpp:57
diff --git a/docs/_camera3_d_8hpp_source.html b/docs/_camera3_d_8hpp_source.html index fae12af..3156124 100644 --- a/docs/_camera3_d_8hpp_source.html +++ b/docs/_camera3_d_8hpp_source.html @@ -214,7 +214,7 @@ $(function() {
Vector2 GetWorldToScreen(::Vector3 position) const
Returns the screen space position for a 3d world space position.
Definition: Camera3D.hpp:116
diff --git a/docs/_color_8hpp_source.html b/docs/_color_8hpp_source.html index 9c12dbf..60a3582 100644 --- a/docs/_color_8hpp_source.html +++ b/docs/_color_8hpp_source.html @@ -302,7 +302,7 @@ $(function() {
Color(int hexValue)
Get Color structure from hexadecimal value.
Definition: Color.hpp:48
diff --git a/docs/_font_8hpp_source.html b/docs/_font_8hpp_source.html index af8feb3..1944282 100644 --- a/docs/_font_8hpp_source.html +++ b/docs/_font_8hpp_source.html @@ -197,7 +197,7 @@ $(function() {
Font & DrawText(const std::string &text, ::Rectangle rec, float fontSize, float spacing, bool wordWrap, ::Color tint, int selectStart, int selectLength, ::Color selectText, ::Color selectBack)
Draw text using font inside rectangle limits with support for text selection.
Definition: Font.hpp:79
diff --git a/docs/_functions_8hpp_source.html b/docs/_functions_8hpp_source.html index 356a91c..ed5dc19 100644 --- a/docs/_functions_8hpp_source.html +++ b/docs/_functions_8hpp_source.html @@ -261,7 +261,7 @@ $(function() {
static std::string GetClipboardText()
Get clipboard text content.
Definition: Functions.hpp:52
diff --git a/docs/_gamepad_8hpp_source.html b/docs/_gamepad_8hpp_source.html index 471596e..9f050ee 100644 --- a/docs/_gamepad_8hpp_source.html +++ b/docs/_gamepad_8hpp_source.html @@ -173,7 +173,7 @@ $(function() {
static bool IsAvailable(int number)
Detect if a gamepad is available.
Definition: Gamepad.hpp:44
diff --git a/docs/_image_8hpp_source.html b/docs/_image_8hpp_source.html index 80b046b..c376b2f 100644 --- a/docs/_image_8hpp_source.html +++ b/docs/_image_8hpp_source.html @@ -539,7 +539,7 @@ $(function() {
Image & ColorReplace(::Color color, ::Color replace)
Modify image color: replace color.
Definition: Image.hpp:407
diff --git a/docs/_material_8hpp_source.html b/docs/_material_8hpp_source.html index f45fd8b..67ec50a 100644 --- a/docs/_material_8hpp_source.html +++ b/docs/_material_8hpp_source.html @@ -146,7 +146,7 @@ $(function() {
Material type (generic)
Definition: Material.hpp:14
diff --git a/docs/_matrix_8hpp_source.html b/docs/_matrix_8hpp_source.html index c164771..5cabd98 100644 --- a/docs/_matrix_8hpp_source.html +++ b/docs/_matrix_8hpp_source.html @@ -296,7 +296,7 @@ $(function() {
float Trace() const
Returns the trace of the matrix (sum of the values along the diagonal)
Definition: Matrix.hpp:93
diff --git a/docs/_mesh_8hpp_source.html b/docs/_mesh_8hpp_source.html index 9afe45d..b804935 100644 --- a/docs/_mesh_8hpp_source.html +++ b/docs/_mesh_8hpp_source.html @@ -267,7 +267,7 @@ $(function() {
::Mesh Plane(float width, float length, int resX, int resZ)
Generate plane mesh (with subdivisions)
Definition: Mesh.hpp:46
diff --git a/docs/_model_8hpp_source.html b/docs/_model_8hpp_source.html index 7e83cdb..a16e41b 100644 --- a/docs/_model_8hpp_source.html +++ b/docs/_model_8hpp_source.html @@ -218,7 +218,7 @@ $(function() {
Model & UnloadKeepMeshes()
Unload model (but not meshes) from memory (RAM and/or VRAM)
Definition: Model.hpp:61
diff --git a/docs/_model_animation_8hpp_source.html b/docs/_model_animation_8hpp_source.html index 69ed58f..3849bfe 100644 --- a/docs/_model_animation_8hpp_source.html +++ b/docs/_model_animation_8hpp_source.html @@ -141,7 +141,7 @@ $(function() {
Model animation.
diff --git a/docs/_mouse_8hpp_source.html b/docs/_mouse_8hpp_source.html index f325756..988653f 100644 --- a/docs/_mouse_8hpp_source.html +++ b/docs/_mouse_8hpp_source.html @@ -159,7 +159,7 @@ $(function() {
static bool IsButtonReleased(int button)
Detect if a mouse button has been released once.
Definition: Mouse.hpp:30
diff --git a/docs/_music_8hpp_source.html b/docs/_music_8hpp_source.html index 55a3bfa..5fff28f 100644 --- a/docs/_music_8hpp_source.html +++ b/docs/_music_8hpp_source.html @@ -192,7 +192,7 @@ $(function() {
float GetTimePlayed() const
Get current music time played (in seconds)
Definition: Music.hpp:131
diff --git a/docs/_physics_8hpp_source.html b/docs/_physics_8hpp_source.html index a389b44..88cea7e 100644 --- a/docs/_physics_8hpp_source.html +++ b/docs/_physics_8hpp_source.html @@ -195,7 +195,7 @@ $(function() {
Vector2 type.
Definition: Vector2.hpp:16
diff --git a/docs/_ray_8hpp_source.html b/docs/_ray_8hpp_source.html index 7478240..3cb9867 100644 --- a/docs/_ray_8hpp_source.html +++ b/docs/_ray_8hpp_source.html @@ -158,7 +158,7 @@ $(function() {
RayHitInfo GetCollisionGround(float groundHeight) const
Get collision info between ray and ground plane (Y-normal plane)
Definition: Ray.hpp:82
diff --git a/docs/_ray_hit_info_8hpp_source.html b/docs/_ray_hit_info_8hpp_source.html index f619e7d..82c8bea 100644 --- a/docs/_ray_hit_info_8hpp_source.html +++ b/docs/_ray_hit_info_8hpp_source.html @@ -138,7 +138,7 @@ $(function() {
RayHitInfo(const ::Ray &ray, const ::Model &model)
Get collision info between ray and model.
Definition: RayHitInfo.hpp:34
diff --git a/docs/_rectangle_8hpp_source.html b/docs/_rectangle_8hpp_source.html index 1e2a040..51b89e8 100644 --- a/docs/_rectangle_8hpp_source.html +++ b/docs/_rectangle_8hpp_source.html @@ -230,7 +230,7 @@ $(function() {
Rectangle & Draw(::Color color)
Draw a color-filled rectangle.
Definition: Rectangle.hpp:49
diff --git a/docs/_render_texture_8hpp_source.html b/docs/_render_texture_8hpp_source.html index 79b0386..46f9b60 100644 --- a/docs/_render_texture_8hpp_source.html +++ b/docs/_render_texture_8hpp_source.html @@ -138,7 +138,7 @@ $(function() {
Texture type.
Definition: Texture.hpp:15
diff --git a/docs/_shader_8hpp_source.html b/docs/_shader_8hpp_source.html index 74fbaf8..f90701f 100644 --- a/docs/_shader_8hpp_source.html +++ b/docs/_shader_8hpp_source.html @@ -183,7 +183,7 @@ $(function() {
Shader & SetValue(int uniformLoc, const ::Texture2D &texture)
Set shader uniform value for texture.
Definition: Shader.hpp:127
diff --git a/docs/_sound_8hpp_source.html b/docs/_sound_8hpp_source.html index 6e144ae..6cbe604 100644 --- a/docs/_sound_8hpp_source.html +++ b/docs/_sound_8hpp_source.html @@ -185,7 +185,7 @@ $(function() {
Sound & PlayMulti()
Play a sound (using multichannel buffer pool)
Definition: Sound.hpp:94
diff --git a/docs/_text_8hpp_source.html b/docs/_text_8hpp_source.html index cb77ca3..57f9bd7 100644 --- a/docs/_text_8hpp_source.html +++ b/docs/_text_8hpp_source.html @@ -120,7 +120,7 @@ $(function() {
static unsigned int TextLength(const std::string &text)
Check if two text string are equal.
Definition: Text.hpp:49
diff --git a/docs/_texture_8hpp_source.html b/docs/_texture_8hpp_source.html index 1bd2f4d..d6c28b0 100644 --- a/docs/_texture_8hpp_source.html +++ b/docs/_texture_8hpp_source.html @@ -283,7 +283,7 @@ $(function() {
Texture & Update(const void *pixels)
Update GPU texture with new data.
Definition: Texture.hpp:94
diff --git a/docs/_vector2_8hpp_source.html b/docs/_vector2_8hpp_source.html index 1997ac5..79b472d 100644 --- a/docs/_vector2_8hpp_source.html +++ b/docs/_vector2_8hpp_source.html @@ -364,7 +364,7 @@ $(function() {
bool CheckCollisionLines(::Vector2 endPos1, ::Vector2 startPos2, ::Vector2 endPos2, ::Vector2 *collisionPoint) const
Check the collision between two lines defined by two points each, returns collision point by referenc...
Definition: Vector2.hpp:313
diff --git a/docs/_vector3_8hpp_source.html b/docs/_vector3_8hpp_source.html index 8b1179e..dbfc5fd 100644 --- a/docs/_vector3_8hpp_source.html +++ b/docs/_vector3_8hpp_source.html @@ -382,7 +382,7 @@ $(function() {
bool CheckCollision(float radius1, const ::Vector3 &center2, float radius2)
Detect collision between two spheres.
Definition: Vector3.hpp:297
diff --git a/docs/_vector4_8hpp_source.html b/docs/_vector4_8hpp_source.html index 65d9dca..c71eb6c 100644 --- a/docs/_vector4_8hpp_source.html +++ b/docs/_vector4_8hpp_source.html @@ -238,7 +238,7 @@ $(function() {
Color type, RGBA (32bit)
Definition: Color.hpp:14
diff --git a/docs/_vr_stereo_config_8hpp_source.html b/docs/_vr_stereo_config_8hpp_source.html index 519928e..1186aa2 100644 --- a/docs/_vr_stereo_config_8hpp_source.html +++ b/docs/_vr_stereo_config_8hpp_source.html @@ -139,7 +139,7 @@ $(function() {
~VrStereoConfig()
Unload VR stereo config.
diff --git a/docs/_wave_8hpp_source.html b/docs/_wave_8hpp_source.html index 74c6f5a..e1540b7 100644 --- a/docs/_wave_8hpp_source.html +++ b/docs/_wave_8hpp_source.html @@ -201,7 +201,7 @@ $(function() {
inline ::Sound LoadSound()
Load sound from wave data.
Definition: Wave.hpp:128
diff --git a/docs/_window_8hpp_source.html b/docs/_window_8hpp_source.html index 47db75a..c9bb39c 100644 --- a/docs/_window_8hpp_source.html +++ b/docs/_window_8hpp_source.html @@ -329,7 +329,7 @@ $(function() {
Window and Graphics Device Functions.
Definition: Window.hpp:12
diff --git a/docs/annotated.html b/docs/annotated.html index f8076a3..9c26038 100644 --- a/docs/annotated.html +++ b/docs/annotated.html @@ -105,7 +105,7 @@ $(function() { diff --git a/docs/classes.html b/docs/classes.html index 492efcf..ee02d36 100644 --- a/docs/classes.html +++ b/docs/classes.html @@ -144,7 +144,7 @@ $(function() { diff --git a/docs/classraylib_1_1_audio_device-members.html b/docs/classraylib_1_1_audio_device-members.html index b706cc7..77abf9c 100644 --- a/docs/classraylib_1_1_audio_device-members.html +++ b/docs/classraylib_1_1_audio_device-members.html @@ -83,7 +83,7 @@ $(function() { diff --git a/docs/classraylib_1_1_audio_device.html b/docs/classraylib_1_1_audio_device.html index 80ba839..4eaf5e1 100644 --- a/docs/classraylib_1_1_audio_device.html +++ b/docs/classraylib_1_1_audio_device.html @@ -150,7 +150,7 @@ bool  diff --git a/docs/classraylib_1_1_audio_stream-members.html b/docs/classraylib_1_1_audio_stream-members.html index 80fbeb1..ec2be40 100644 --- a/docs/classraylib_1_1_audio_stream-members.html +++ b/docs/classraylib_1_1_audio_stream-members.html @@ -100,7 +100,7 @@ $(function() { diff --git a/docs/classraylib_1_1_audio_stream.html b/docs/classraylib_1_1_audio_stream.html index 3c90f77..332584a 100644 --- a/docs/classraylib_1_1_audio_stream.html +++ b/docs/classraylib_1_1_audio_stream.html @@ -435,7 +435,7 @@ static void  diff --git a/docs/classraylib_1_1_bounding_box-members.html b/docs/classraylib_1_1_bounding_box-members.html index b0e4937..cb929ef 100644 --- a/docs/classraylib_1_1_bounding_box-members.html +++ b/docs/classraylib_1_1_bounding_box-members.html @@ -89,7 +89,7 @@ $(function() { diff --git a/docs/classraylib_1_1_bounding_box.html b/docs/classraylib_1_1_bounding_box.html index a4024b2..0da2b34 100644 --- a/docs/classraylib_1_1_bounding_box.html +++ b/docs/classraylib_1_1_bounding_box.html @@ -262,7 +262,7 @@ bool  diff --git a/docs/classraylib_1_1_camera2_d-members.html b/docs/classraylib_1_1_camera2_d-members.html index 8052695..0d52920 100644 --- a/docs/classraylib_1_1_camera2_d-members.html +++ b/docs/classraylib_1_1_camera2_d-members.html @@ -94,7 +94,7 @@ $(function() { diff --git a/docs/classraylib_1_1_camera2_d.html b/docs/classraylib_1_1_camera2_d.html index 9d03da1..e0fe394 100644 --- a/docs/classraylib_1_1_camera2_d.html +++ b/docs/classraylib_1_1_camera2_d.html @@ -404,7 +404,7 @@ Public Member Functions diff --git a/docs/classraylib_1_1_camera3_d-members.html b/docs/classraylib_1_1_camera3_d-members.html index 80a04db..6221087 100644 --- a/docs/classraylib_1_1_camera3_d-members.html +++ b/docs/classraylib_1_1_camera3_d-members.html @@ -103,7 +103,7 @@ $(function() { diff --git a/docs/classraylib_1_1_camera3_d.html b/docs/classraylib_1_1_camera3_d.html index 90be7df..523f375 100644 --- a/docs/classraylib_1_1_camera3_d.html +++ b/docs/classraylib_1_1_camera3_d.html @@ -506,7 +506,7 @@ Public Member Functions diff --git a/docs/classraylib_1_1_color-members.html b/docs/classraylib_1_1_color-members.html index d399b33..e42bcc7 100644 --- a/docs/classraylib_1_1_color-members.html +++ b/docs/classraylib_1_1_color-members.html @@ -144,7 +144,7 @@ $(function() { diff --git a/docs/classraylib_1_1_color.html b/docs/classraylib_1_1_color.html index c8b3842..82e512d 100644 --- a/docs/classraylib_1_1_color.html +++ b/docs/classraylib_1_1_color.html @@ -573,7 +573,7 @@ static Color  diff --git a/docs/classraylib_1_1_font-members.html b/docs/classraylib_1_1_font-members.html index 001c823..c8c8480 100644 --- a/docs/classraylib_1_1_font-members.html +++ b/docs/classraylib_1_1_font-members.html @@ -105,7 +105,7 @@ $(function() { diff --git a/docs/classraylib_1_1_font.html b/docs/classraylib_1_1_font.html index d035cc7..333da0e 100644 --- a/docs/classraylib_1_1_font.html +++ b/docs/classraylib_1_1_font.html @@ -569,7 +569,7 @@ void Unload () diff --git a/docs/classraylib_1_1_gamepad-members.html b/docs/classraylib_1_1_gamepad-members.html index baf4c36..7eefeb8 100644 --- a/docs/classraylib_1_1_gamepad-members.html +++ b/docs/classraylib_1_1_gamepad-members.html @@ -96,7 +96,7 @@ $(function() { diff --git a/docs/classraylib_1_1_gamepad.html b/docs/classraylib_1_1_gamepad.html index bbdfa14..a511b8e 100644 --- a/docs/classraylib_1_1_gamepad.html +++ b/docs/classraylib_1_1_gamepad.html @@ -232,7 +232,7 @@ int number diff --git a/docs/classraylib_1_1_image-members.html b/docs/classraylib_1_1_image-members.html index 7a14463..f0f350b 100644 --- a/docs/classraylib_1_1_image-members.html +++ b/docs/classraylib_1_1_image-members.html @@ -163,7 +163,7 @@ $(function() { diff --git a/docs/classraylib_1_1_image.html b/docs/classraylib_1_1_image.html index dbf7643..819909b 100644 --- a/docs/classraylib_1_1_image.html +++ b/docs/classraylib_1_1_image.html @@ -929,7 +929,7 @@ Static Public Member Functions diff --git a/docs/classraylib_1_1_material-members.html b/docs/classraylib_1_1_material-members.html index ea77c88..a5f3604 100644 --- a/docs/classraylib_1_1_material-members.html +++ b/docs/classraylib_1_1_material-members.html @@ -88,7 +88,7 @@ $(function() { diff --git a/docs/classraylib_1_1_material.html b/docs/classraylib_1_1_material.html index e56bd38..ef2620d 100644 --- a/docs/classraylib_1_1_material.html +++ b/docs/classraylib_1_1_material.html @@ -259,7 +259,7 @@ static std::vector< Materi diff --git a/docs/classraylib_1_1_matrix-members.html b/docs/classraylib_1_1_matrix-members.html index da446ad..3e26996 100644 --- a/docs/classraylib_1_1_matrix-members.html +++ b/docs/classraylib_1_1_matrix-members.html @@ -139,7 +139,7 @@ $(function() { diff --git a/docs/classraylib_1_1_matrix.html b/docs/classraylib_1_1_matrix.html index 5b07ac3..8e7ab22 100644 --- a/docs/classraylib_1_1_matrix.html +++ b/docs/classraylib_1_1_matrix.html @@ -1338,7 +1338,7 @@ static Matrix  diff --git a/docs/classraylib_1_1_mesh-members.html b/docs/classraylib_1_1_mesh-members.html index 4520ca8..d776dfc 100644 --- a/docs/classraylib_1_1_mesh-members.html +++ b/docs/classraylib_1_1_mesh-members.html @@ -133,7 +133,7 @@ $(function() { diff --git a/docs/classraylib_1_1_mesh.html b/docs/classraylib_1_1_mesh.html index a8f0853..b82b65c 100644 --- a/docs/classraylib_1_1_mesh.html +++ b/docs/classraylib_1_1_mesh.html @@ -1308,7 +1308,7 @@ Static Public Member Functions diff --git a/docs/classraylib_1_1_model-members.html b/docs/classraylib_1_1_model-members.html index e248c34..51a90f2 100644 --- a/docs/classraylib_1_1_model-members.html +++ b/docs/classraylib_1_1_model-members.html @@ -110,7 +110,7 @@ $(function() { diff --git a/docs/classraylib_1_1_model.html b/docs/classraylib_1_1_model.html index b5c0ef4..b3cb978 100644 --- a/docs/classraylib_1_1_model.html +++ b/docs/classraylib_1_1_model.html @@ -789,7 +789,7 @@ void  diff --git a/docs/classraylib_1_1_model_animation-members.html b/docs/classraylib_1_1_model_animation-members.html index 6ef2e99..b34aa29 100644 --- a/docs/classraylib_1_1_model_animation-members.html +++ b/docs/classraylib_1_1_model_animation-members.html @@ -92,7 +92,7 @@ $(function() { diff --git a/docs/classraylib_1_1_model_animation.html b/docs/classraylib_1_1_model_animation.html index 6614669..53c9096 100644 --- a/docs/classraylib_1_1_model_animation.html +++ b/docs/classraylib_1_1_model_animation.html @@ -403,7 +403,7 @@ static std::vector< diff --git a/docs/classraylib_1_1_mouse-members.html b/docs/classraylib_1_1_mouse-members.html index 5de36f2..c6d64e6 100644 --- a/docs/classraylib_1_1_mouse-members.html +++ b/docs/classraylib_1_1_mouse-members.html @@ -94,7 +94,7 @@ $(function() { diff --git a/docs/classraylib_1_1_mouse.html b/docs/classraylib_1_1_mouse.html index 6a8c275..bc12a2c 100644 --- a/docs/classraylib_1_1_mouse.html +++ b/docs/classraylib_1_1_mouse.html @@ -142,7 +142,7 @@ static void SetY (int diff --git a/docs/classraylib_1_1_music-members.html b/docs/classraylib_1_1_music-members.html index 41e087f..d75cb23 100644 --- a/docs/classraylib_1_1_music-members.html +++ b/docs/classraylib_1_1_music-members.html @@ -103,7 +103,7 @@ $(function() { diff --git a/docs/classraylib_1_1_music.html b/docs/classraylib_1_1_music.html index 708933e..a3da83f 100644 --- a/docs/classraylib_1_1_music.html +++ b/docs/classraylib_1_1_music.html @@ -511,7 +511,7 @@ void  diff --git a/docs/classraylib_1_1_physics-members.html b/docs/classraylib_1_1_physics-members.html index 097cdb6..13a753c 100644 --- a/docs/classraylib_1_1_physics-members.html +++ b/docs/classraylib_1_1_physics-members.html @@ -100,7 +100,7 @@ $(function() { diff --git a/docs/classraylib_1_1_physics.html b/docs/classraylib_1_1_physics.html index 8111991..9fbb13f 100644 --- a/docs/classraylib_1_1_physics.html +++ b/docs/classraylib_1_1_physics.html @@ -151,7 +151,7 @@ int GetShapeVerticesCount< diff --git a/docs/classraylib_1_1_ray-members.html b/docs/classraylib_1_1_ray-members.html index feed708..e464bff 100644 --- a/docs/classraylib_1_1_ray-members.html +++ b/docs/classraylib_1_1_ray-members.html @@ -92,7 +92,7 @@ $(function() { diff --git a/docs/classraylib_1_1_ray.html b/docs/classraylib_1_1_ray.html index 34b07bb..df416e0 100644 --- a/docs/classraylib_1_1_ray.html +++ b/docs/classraylib_1_1_ray.html @@ -273,7 +273,7 @@ bool  diff --git a/docs/classraylib_1_1_ray_hit_info-members.html b/docs/classraylib_1_1_ray_hit_info-members.html index 679af6e..ea659c2 100644 --- a/docs/classraylib_1_1_ray_hit_info-members.html +++ b/docs/classraylib_1_1_ray_hit_info-members.html @@ -92,7 +92,7 @@ $(function() { diff --git a/docs/classraylib_1_1_ray_hit_info.html b/docs/classraylib_1_1_ray_hit_info.html index a791d73..bbe9bc2 100644 --- a/docs/classraylib_1_1_ray_hit_info.html +++ b/docs/classraylib_1_1_ray_hit_info.html @@ -402,7 +402,7 @@ Public Member Functions diff --git a/docs/classraylib_1_1_rectangle-members.html b/docs/classraylib_1_1_rectangle-members.html index 0351f63..733cd11 100644 --- a/docs/classraylib_1_1_rectangle-members.html +++ b/docs/classraylib_1_1_rectangle-members.html @@ -115,7 +115,7 @@ $(function() { diff --git a/docs/classraylib_1_1_rectangle.html b/docs/classraylib_1_1_rectangle.html index 5437f06..500c5c6 100644 --- a/docs/classraylib_1_1_rectangle.html +++ b/docs/classraylib_1_1_rectangle.html @@ -469,7 +469,7 @@ inline ::Vector4  diff --git a/docs/classraylib_1_1_render_texture-members.html b/docs/classraylib_1_1_render_texture-members.html index 3492f27..49d3245 100644 --- a/docs/classraylib_1_1_render_texture-members.html +++ b/docs/classraylib_1_1_render_texture-members.html @@ -91,7 +91,7 @@ $(function() { diff --git a/docs/classraylib_1_1_render_texture.html b/docs/classraylib_1_1_render_texture.html index a2dda6b..1624960 100644 --- a/docs/classraylib_1_1_render_texture.html +++ b/docs/classraylib_1_1_render_texture.html @@ -328,7 +328,7 @@ void Unload () diff --git a/docs/classraylib_1_1_shader-members.html b/docs/classraylib_1_1_shader-members.html index 3bbd259..12f9dba 100644 --- a/docs/classraylib_1_1_shader-members.html +++ b/docs/classraylib_1_1_shader-members.html @@ -97,7 +97,7 @@ $(function() { diff --git a/docs/classraylib_1_1_shader.html b/docs/classraylib_1_1_shader.html index ec15cac..2b3e7c5 100644 --- a/docs/classraylib_1_1_shader.html +++ b/docs/classraylib_1_1_shader.html @@ -529,7 +529,7 @@ Static Public Member Functions diff --git a/docs/classraylib_1_1_sound-members.html b/docs/classraylib_1_1_sound-members.html index cb2d4de..fd97f54 100644 --- a/docs/classraylib_1_1_sound-members.html +++ b/docs/classraylib_1_1_sound-members.html @@ -97,7 +97,7 @@ $(function() { diff --git a/docs/classraylib_1_1_sound.html b/docs/classraylib_1_1_sound.html index 10df509..f021905 100644 --- a/docs/classraylib_1_1_sound.html +++ b/docs/classraylib_1_1_sound.html @@ -292,7 +292,7 @@ void 
Wave/Sound management functions.
Definition: Sound.hpp:18
diff --git a/docs/classraylib_1_1_texture-members.html b/docs/classraylib_1_1_texture-members.html index 3cdbe2c..7d8a1d4 100644 --- a/docs/classraylib_1_1_texture-members.html +++ b/docs/classraylib_1_1_texture-members.html @@ -118,7 +118,7 @@ $(function() { diff --git a/docs/classraylib_1_1_texture.html b/docs/classraylib_1_1_texture.html index 56e6a1c..c901bf9 100644 --- a/docs/classraylib_1_1_texture.html +++ b/docs/classraylib_1_1_texture.html @@ -604,7 +604,7 @@ static int  diff --git a/docs/classraylib_1_1_vector2-members.html b/docs/classraylib_1_1_vector2-members.html index ca884f7..082fab8 100644 --- a/docs/classraylib_1_1_vector2-members.html +++ b/docs/classraylib_1_1_vector2-members.html @@ -133,7 +133,7 @@ $(function() { diff --git a/docs/classraylib_1_1_vector2.html b/docs/classraylib_1_1_vector2.html index 0a970ca..4c89bcb 100644 --- a/docs/classraylib_1_1_vector2.html +++ b/docs/classraylib_1_1_vector2.html @@ -410,7 +410,7 @@ static Vector2 < diff --git a/docs/classraylib_1_1_vector3-members.html b/docs/classraylib_1_1_vector3-members.html index d2e61d9..9895cb9 100644 --- a/docs/classraylib_1_1_vector3-members.html +++ b/docs/classraylib_1_1_vector3-members.html @@ -142,7 +142,7 @@ $(function() { diff --git a/docs/classraylib_1_1_vector3.html b/docs/classraylib_1_1_vector3.html index 51f6f09..40228b1 100644 --- a/docs/classraylib_1_1_vector3.html +++ b/docs/classraylib_1_1_vector3.html @@ -484,7 +484,7 @@ static Vector3 < diff --git a/docs/classraylib_1_1_vector4-members.html b/docs/classraylib_1_1_vector4-members.html index 19226c4..0f1dc9a 100644 --- a/docs/classraylib_1_1_vector4-members.html +++ b/docs/classraylib_1_1_vector4-members.html @@ -117,7 +117,7 @@ $(function() { diff --git a/docs/classraylib_1_1_vector4.html b/docs/classraylib_1_1_vector4.html index 01bb26a..0847d6b 100644 --- a/docs/classraylib_1_1_vector4.html +++ b/docs/classraylib_1_1_vector4.html @@ -474,7 +474,7 @@ static Vector4 < diff --git a/docs/classraylib_1_1_vr_stereo_config-members.html b/docs/classraylib_1_1_vr_stereo_config-members.html index 7946eb6..cc8bcd3 100644 --- a/docs/classraylib_1_1_vr_stereo_config-members.html +++ b/docs/classraylib_1_1_vr_stereo_config-members.html @@ -83,7 +83,7 @@ $(function() { diff --git a/docs/classraylib_1_1_vr_stereo_config.html b/docs/classraylib_1_1_vr_stereo_config.html index f43378d..1f95515 100644 --- a/docs/classraylib_1_1_vr_stereo_config.html +++ b/docs/classraylib_1_1_vr_stereo_config.html @@ -111,7 +111,7 @@ void  diff --git a/docs/classraylib_1_1_wave-members.html b/docs/classraylib_1_1_wave-members.html index af0a0d4..4d0a1a5 100644 --- a/docs/classraylib_1_1_wave-members.html +++ b/docs/classraylib_1_1_wave-members.html @@ -104,7 +104,7 @@ $(function() { diff --git a/docs/classraylib_1_1_wave.html b/docs/classraylib_1_1_wave.html index 92c130d..d1cfab2 100644 --- a/docs/classraylib_1_1_wave.html +++ b/docs/classraylib_1_1_wave.html @@ -561,7 +561,7 @@ void  diff --git a/docs/classraylib_1_1_window-members.html b/docs/classraylib_1_1_window-members.html index 8cd6b42..7df6d7d 100644 --- a/docs/classraylib_1_1_window-members.html +++ b/docs/classraylib_1_1_window-members.html @@ -119,7 +119,7 @@ $(function() { diff --git a/docs/classraylib_1_1_window.html b/docs/classraylib_1_1_window.html index 5e17b05..26cf974 100644 --- a/docs/classraylib_1_1_window.html +++ b/docs/classraylib_1_1_window.html @@ -259,7 +259,7 @@ static bool  diff --git a/docs/dir_d44c64559bbebec7f509842c48db8b23.html b/docs/dir_d44c64559bbebec7f509842c48db8b23.html index ad276ab..dd0b7df 100644 --- a/docs/dir_d44c64559bbebec7f509842c48db8b23.html +++ b/docs/dir_d44c64559bbebec7f509842c48db8b23.html @@ -74,7 +74,7 @@ $(function() { diff --git a/docs/functions.html b/docs/functions.html index 54efa51..8be514b 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -94,7 +94,7 @@ $(function() { diff --git a/docs/functions_b.html b/docs/functions_b.html index a4611ef..18ca437 100644 --- a/docs/functions_b.html +++ b/docs/functions_b.html @@ -86,7 +86,7 @@ $(function() { diff --git a/docs/functions_c.html b/docs/functions_c.html index 9ef248f..08389b0 100644 --- a/docs/functions_c.html +++ b/docs/functions_c.html @@ -144,7 +144,7 @@ $(function() { diff --git a/docs/functions_d.html b/docs/functions_d.html index 8fb1e11..2cf20c7 100644 --- a/docs/functions_d.html +++ b/docs/functions_d.html @@ -108,7 +108,7 @@ $(function() { diff --git a/docs/functions_e.html b/docs/functions_e.html index ac568a1..d0cd342 100644 --- a/docs/functions_e.html +++ b/docs/functions_e.html @@ -88,7 +88,7 @@ $(function() { diff --git a/docs/functions_f.html b/docs/functions_f.html index d7d55fa..8370d2a 100644 --- a/docs/functions_f.html +++ b/docs/functions_f.html @@ -89,7 +89,7 @@ $(function() { diff --git a/docs/functions_func.html b/docs/functions_func.html index 97aea85..68918c6 100644 --- a/docs/functions_func.html +++ b/docs/functions_func.html @@ -94,7 +94,7 @@ $(function() { diff --git a/docs/functions_func_b.html b/docs/functions_func_b.html index 8728e5b..85550a7 100644 --- a/docs/functions_func_b.html +++ b/docs/functions_func_b.html @@ -86,7 +86,7 @@ $(function() { diff --git a/docs/functions_func_c.html b/docs/functions_func_c.html index 860fa38..b4443d1 100644 --- a/docs/functions_func_c.html +++ b/docs/functions_func_c.html @@ -144,7 +144,7 @@ $(function() { diff --git a/docs/functions_func_d.html b/docs/functions_func_d.html index 2da1e42..e6bf318 100644 --- a/docs/functions_func_d.html +++ b/docs/functions_func_d.html @@ -108,7 +108,7 @@ $(function() { diff --git a/docs/functions_func_e.html b/docs/functions_func_e.html index 16991b9..a340a02 100644 --- a/docs/functions_func_e.html +++ b/docs/functions_func_e.html @@ -88,7 +88,7 @@ $(function() { diff --git a/docs/functions_func_f.html b/docs/functions_func_f.html index fd7675a..3986196 100644 --- a/docs/functions_func_f.html +++ b/docs/functions_func_f.html @@ -89,7 +89,7 @@ $(function() { diff --git a/docs/functions_func_g.html b/docs/functions_func_g.html index 80f7ccd..b88781c 100644 --- a/docs/functions_func_g.html +++ b/docs/functions_func_g.html @@ -465,7 +465,7 @@ $(function() { diff --git a/docs/functions_func_h.html b/docs/functions_func_h.html index 9a709a6..ce1a983 100644 --- a/docs/functions_func_h.html +++ b/docs/functions_func_h.html @@ -76,7 +76,7 @@ $(function() { diff --git a/docs/functions_func_i.html b/docs/functions_func_i.html index 1a35653..7242c08 100644 --- a/docs/functions_func_i.html +++ b/docs/functions_func_i.html @@ -140,7 +140,7 @@ $(function() { diff --git a/docs/functions_func_k.html b/docs/functions_func_k.html index b6d8c1d..3706602 100644 --- a/docs/functions_func_k.html +++ b/docs/functions_func_k.html @@ -73,7 +73,7 @@ $(function() { diff --git a/docs/functions_func_l.html b/docs/functions_func_l.html index 03be33c..e1b46a3 100644 --- a/docs/functions_func_l.html +++ b/docs/functions_func_l.html @@ -119,7 +119,7 @@ $(function() { diff --git a/docs/functions_func_m.html b/docs/functions_func_m.html index 0fb18c5..c331ce2 100644 --- a/docs/functions_func_m.html +++ b/docs/functions_func_m.html @@ -91,7 +91,7 @@ $(function() { diff --git a/docs/functions_func_n.html b/docs/functions_func_n.html index c86d19c..750de6d 100644 --- a/docs/functions_func_n.html +++ b/docs/functions_func_n.html @@ -74,7 +74,7 @@ $(function() { diff --git a/docs/functions_func_o.html b/docs/functions_func_o.html index 957bf5c..5295a7e 100644 --- a/docs/functions_func_o.html +++ b/docs/functions_func_o.html @@ -97,7 +97,7 @@ $(function() { diff --git a/docs/functions_func_p.html b/docs/functions_func_p.html index dd17341..62b2458 100644 --- a/docs/functions_func_p.html +++ b/docs/functions_func_p.html @@ -92,7 +92,7 @@ $(function() { diff --git a/docs/functions_func_r.html b/docs/functions_func_r.html index e11e271..6cf6335 100644 --- a/docs/functions_func_r.html +++ b/docs/functions_func_r.html @@ -102,7 +102,7 @@ $(function() { diff --git a/docs/functions_func_s.html b/docs/functions_func_s.html index 6d72937..a83f0fd 100644 --- a/docs/functions_func_s.html +++ b/docs/functions_func_s.html @@ -449,7 +449,7 @@ $(function() { diff --git a/docs/functions_func_t.html b/docs/functions_func_t.html index cbd371a..d08c922 100644 --- a/docs/functions_func_t.html +++ b/docs/functions_func_t.html @@ -97,7 +97,7 @@ $(function() { diff --git a/docs/functions_func_u.html b/docs/functions_func_u.html index e2a460d..c2ea493 100644 --- a/docs/functions_func_u.html +++ b/docs/functions_func_u.html @@ -114,7 +114,7 @@ $(function() { diff --git a/docs/functions_func_w.html b/docs/functions_func_w.html index 20ec107..48d12cf 100644 --- a/docs/functions_func_w.html +++ b/docs/functions_func_w.html @@ -79,7 +79,7 @@ $(function() { diff --git a/docs/functions_func_z.html b/docs/functions_func_z.html index 7bbc0f8..79da102 100644 --- a/docs/functions_func_z.html +++ b/docs/functions_func_z.html @@ -73,7 +73,7 @@ $(function() { diff --git a/docs/functions_func_~.html b/docs/functions_func_~.html index 9e55214..8c3624a 100644 --- a/docs/functions_func_~.html +++ b/docs/functions_func_~.html @@ -85,7 +85,7 @@ $(function() { diff --git a/docs/functions_g.html b/docs/functions_g.html index 8ba32c4..5492161 100644 --- a/docs/functions_g.html +++ b/docs/functions_g.html @@ -465,7 +465,7 @@ $(function() { diff --git a/docs/functions_h.html b/docs/functions_h.html index 72c0609..662239d 100644 --- a/docs/functions_h.html +++ b/docs/functions_h.html @@ -76,7 +76,7 @@ $(function() { diff --git a/docs/functions_i.html b/docs/functions_i.html index 4e8bee7..f9882bf 100644 --- a/docs/functions_i.html +++ b/docs/functions_i.html @@ -140,7 +140,7 @@ $(function() { diff --git a/docs/functions_k.html b/docs/functions_k.html index f9806cc..9590106 100644 --- a/docs/functions_k.html +++ b/docs/functions_k.html @@ -73,7 +73,7 @@ $(function() { diff --git a/docs/functions_l.html b/docs/functions_l.html index 8025909..d35aba0 100644 --- a/docs/functions_l.html +++ b/docs/functions_l.html @@ -119,7 +119,7 @@ $(function() { diff --git a/docs/functions_m.html b/docs/functions_m.html index 2b19adb..113241f 100644 --- a/docs/functions_m.html +++ b/docs/functions_m.html @@ -91,7 +91,7 @@ $(function() { diff --git a/docs/functions_n.html b/docs/functions_n.html index 7337c9e..1e8a0e1 100644 --- a/docs/functions_n.html +++ b/docs/functions_n.html @@ -74,7 +74,7 @@ $(function() { diff --git a/docs/functions_o.html b/docs/functions_o.html index 809ad7e..70b31ff 100644 --- a/docs/functions_o.html +++ b/docs/functions_o.html @@ -97,7 +97,7 @@ $(function() { diff --git a/docs/functions_p.html b/docs/functions_p.html index ad6f001..6c38036 100644 --- a/docs/functions_p.html +++ b/docs/functions_p.html @@ -92,7 +92,7 @@ $(function() { diff --git a/docs/functions_r.html b/docs/functions_r.html index b23d42f..4244767 100644 --- a/docs/functions_r.html +++ b/docs/functions_r.html @@ -102,7 +102,7 @@ $(function() { diff --git a/docs/functions_s.html b/docs/functions_s.html index e66f453..794b4d0 100644 --- a/docs/functions_s.html +++ b/docs/functions_s.html @@ -449,7 +449,7 @@ $(function() { diff --git a/docs/functions_t.html b/docs/functions_t.html index c0d09a3..c4c870d 100644 --- a/docs/functions_t.html +++ b/docs/functions_t.html @@ -97,7 +97,7 @@ $(function() { diff --git a/docs/functions_u.html b/docs/functions_u.html index 610ac8e..34928dd 100644 --- a/docs/functions_u.html +++ b/docs/functions_u.html @@ -114,7 +114,7 @@ $(function() { diff --git a/docs/functions_w.html b/docs/functions_w.html index 0bf2d09..c08676b 100644 --- a/docs/functions_w.html +++ b/docs/functions_w.html @@ -79,7 +79,7 @@ $(function() { diff --git a/docs/functions_z.html b/docs/functions_z.html index 8436082..3d90b67 100644 --- a/docs/functions_z.html +++ b/docs/functions_z.html @@ -73,7 +73,7 @@ $(function() { diff --git a/docs/functions_~.html b/docs/functions_~.html index d2bd887..a6c2084 100644 --- a/docs/functions_~.html +++ b/docs/functions_~.html @@ -85,7 +85,7 @@ $(function() { diff --git a/docs/index.html b/docs/index.html index 0cd77c6..256370b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -97,7 +97,7 @@ $(function() {
//--------------------------------------------------------------------------------------
int screenWidth = 800;
int screenHeight = 450;
-
raylib::Color textColor(LIGHTGRAY);
+
raylib::Color textColor = raylib::Color::LightGray();
raylib::Window window(screenWidth, screenHeight, "raylib [core] example - basic window");
SetTargetFPS(60);
@@ -140,7 +140,7 @@ $(function() {
Window and Graphics Device Functions.
Definition: Window.hpp:12
diff --git a/docs/namespacemembers.html b/docs/namespacemembers.html index 3a73c2a..0fa47ed 100644 --- a/docs/namespacemembers.html +++ b/docs/namespacemembers.html @@ -216,7 +216,7 @@ $(function() { diff --git a/docs/namespacemembers_func.html b/docs/namespacemembers_func.html index 5b51b7b..ea6b0c0 100644 --- a/docs/namespacemembers_func.html +++ b/docs/namespacemembers_func.html @@ -216,7 +216,7 @@ $(function() { diff --git a/docs/namespaceraylib.html b/docs/namespaceraylib.html index 569d955..0269935 100644 --- a/docs/namespaceraylib.html +++ b/docs/namespaceraylib.html @@ -330,7 +330,7 @@ static void  diff --git a/docs/namespaces.html b/docs/namespaces.html index 9915584..fafe444 100644 --- a/docs/namespaces.html +++ b/docs/namespaces.html @@ -75,7 +75,7 @@ $(function() { diff --git a/docs/physac_8hpp_source.html b/docs/physac_8hpp_source.html index e1eb6a6..5a58d16 100644 --- a/docs/physac_8hpp_source.html +++ b/docs/physac_8hpp_source.html @@ -87,7 +87,7 @@ $(function() { diff --git a/docs/raylib-cpp-utils_8hpp_source.html b/docs/raylib-cpp-utils_8hpp_source.html index dd12d56..5fd30d0 100644 --- a/docs/raylib-cpp-utils_8hpp_source.html +++ b/docs/raylib-cpp-utils_8hpp_source.html @@ -88,7 +88,7 @@ $(function() { diff --git a/docs/raylib-cpp_8hpp_source.html b/docs/raylib-cpp_8hpp_source.html index 2e96948..0fa12d2 100644 --- a/docs/raylib-cpp_8hpp_source.html +++ b/docs/raylib-cpp_8hpp_source.html @@ -116,7 +116,7 @@ $(function() {
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:7
diff --git a/docs/raylib_8hpp_source.html b/docs/raylib_8hpp_source.html index 0312dea..c38c510 100644 --- a/docs/raylib_8hpp_source.html +++ b/docs/raylib_8hpp_source.html @@ -87,7 +87,7 @@ $(function() { diff --git a/docs/raymath_8hpp_source.html b/docs/raymath_8hpp_source.html index 6849130..634897b 100644 --- a/docs/raymath_8hpp_source.html +++ b/docs/raymath_8hpp_source.html @@ -89,7 +89,7 @@ $(function() { diff --git a/examples/core/core_basic_window.cpp b/examples/core/core_basic_window.cpp index d95affc..6fd81c5 100644 --- a/examples/core/core_basic_window.cpp +++ b/examples/core/core_basic_window.cpp @@ -26,7 +26,7 @@ int main() { //-------------------------------------------------------------------------------------- int screenWidth = 800; int screenHeight = 450; - raylib::Color textColor(LIGHTGRAY); + raylib::Color textColor = raylib::Color::LightGray(); raylib::Window window(screenWidth, screenHeight, "raylib [core] example - basic window"); SetTargetFPS(60); diff --git a/examples/core/core_input_mouse.cpp b/examples/core/core_input_mouse.cpp index 96a78ce..833f621 100644 --- a/examples/core/core_input_mouse.cpp +++ b/examples/core/core_input_mouse.cpp @@ -20,8 +20,8 @@ int main() { raylib::Window window(screenWidth, screenHeight, "raylib [core] example - mouse input"); raylib::Vector2 ballPosition(-100.0f, -100.0f); - raylib::Color ballColor(DARKBLUE); - raylib::Color textColor(DARKGRAY); + raylib::Color ballColor = raylib::Color::DarkBlue(); + raylib::Color textColor = raylib::Color::DarkGray(); SetTargetFPS(60); // Set our game to run at 60 frames-per-second //--------------------------------------------------------------------------------------- diff --git a/examples/shapes/shapes_logo_raylib.cpp b/examples/shapes/shapes_logo_raylib.cpp index 3702a89..134f228 100644 --- a/examples/shapes/shapes_logo_raylib.cpp +++ b/examples/shapes/shapes_logo_raylib.cpp @@ -18,7 +18,7 @@ int main() { const int screenHeight = 450; raylib::Window window(screenWidth, screenHeight, "raylib [shapes] example - raylib logo using shapes"); - raylib::Color foreground = raylib::Color(0, 68, 130); + raylib::Color foreground(0, 68, 130); raylib::Color background = RAYWHITE; SetTargetFPS(60); // Set our game to run at 60 frames-per-second diff --git a/examples/text/text_raylib_fonts.cpp b/examples/text/text_raylib_fonts.cpp index b8decef..bf0e066 100644 --- a/examples/text/text_raylib_fonts.cpp +++ b/examples/text/text_raylib_fonts.cpp @@ -26,7 +26,7 @@ int main() { int screenHeight = 450; raylib::Window window(screenWidth, screenHeight, "raylib [text] example - raylib fonts"); - raylib::Color textColor(DARKGRAY); + raylib::Color textColor = DARKGRAY; // NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required) std::array fonts = { diff --git a/examples/textures/textures_image_drawing.cpp b/examples/textures/textures_image_drawing.cpp index 4bc761a..4e2496f 100644 --- a/examples/textures/textures_image_drawing.cpp +++ b/examples/textures/textures_image_drawing.cpp @@ -21,7 +21,7 @@ int main(void) const int screenHeight = 450; raylib::Window window(screenWidth, screenHeight, "raylib [textures] example - image drawing"); - raylib::Color darkGray(DARKGRAY); + raylib::Color darkGray = DARKGRAY; // NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required) raylib::Image cat("resources/cat.png"); // Load image in CPU memory (RAM) diff --git a/projects/CMake/CMakeLists.txt b/projects/CMake/CMakeLists.txt index e841748..ff97ad2 100644 --- a/projects/CMake/CMakeLists.txt +++ b/projects/CMake/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.11) # FetchContent is available in 3.11+ project(raylib-cpp-example) # raylib -find_package(raylib 3.7.0 QUIET) +find_package(raylib QUIET) if (NOT raylib_FOUND) include(FetchContent) FetchContent_Declare( @@ -22,13 +22,12 @@ if (NOT raylib_FOUND) endif() # raylib-cpp -find_package(raylib-cpp 3.7.0 QUIET) +find_package(raylib-cpp QUIET) if (NOT raylib-cpp_FOUND) include(FetchContent) - FetchContent_Declare( + FetchContent_Declare( raylib-cpp - GIT_REPOSITORY https://github.com/RobLoach/raylib-cpp.git - GIT_TAG 9a02e9f2d0cc86a70735a25ed5dfa1f2082ceadc + URL https://github.com/RobLoach/raylib-cpp/archive/master.tar.gz ) FetchContent_GetProperties(raylib-cpp) if (NOT raylib-cpp_POPULATED) # Have we downloaded raylib yet? diff --git a/projects/CMake/main.cpp b/projects/CMake/main.cpp index bc13f23..257de99 100644 --- a/projects/CMake/main.cpp +++ b/projects/CMake/main.cpp @@ -26,7 +26,7 @@ int main() { //-------------------------------------------------------------------------------------- int screenWidth = 800; int screenHeight = 450; - raylib::Color textColor(LIGHTGRAY); + raylib::Color textColor = LIGHTGRAY; raylib::Window window(screenWidth, screenHeight, "raylib [core] example - basic window"); SetTargetFPS(60); diff --git a/tests/catch.hpp b/tests/catch.hpp index 0384171..36eaeb2 100644 --- a/tests/catch.hpp +++ b/tests/catch.hpp @@ -1,9 +1,9 @@ /* - * Catch v2.13.4 - * Generated: 2020-12-29 14:48:00.116107 + * Catch v2.13.6 + * Generated: 2021-04-16 18:23:38.044268 * ---------------------------------------------------------- * This file has been merged from multiple headers. Please don't edit it directly - * Copyright (c) 2020 Two Blue Cubes Ltd. All rights reserved. + * Copyright (c) 2021 Two Blue Cubes Ltd. All rights reserved. * * Distributed under the Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -15,7 +15,7 @@ #define CATCH_VERSION_MAJOR 2 #define CATCH_VERSION_MINOR 13 -#define CATCH_VERSION_PATCH 4 +#define CATCH_VERSION_PATCH 6 #ifdef __clang__ # pragma clang system_header @@ -66,13 +66,16 @@ #if !defined(CATCH_CONFIG_IMPL_ONLY) // start catch_platform.h +// See e.g.: +// https://opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/TargetConditionals.h.auto.html #ifdef __APPLE__ -# include -# if TARGET_OS_OSX == 1 -# define CATCH_PLATFORM_MAC -# elif TARGET_OS_IPHONE == 1 -# define CATCH_PLATFORM_IPHONE -# endif +# include +# if (defined(TARGET_OS_OSX) && TARGET_OS_OSX == 1) || \ + (defined(TARGET_OS_MAC) && TARGET_OS_MAC == 1) +# define CATCH_PLATFORM_MAC +# elif (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE == 1) +# define CATCH_PLATFORM_IPHONE +# endif #elif defined(linux) || defined(__linux) || defined(__linux__) # define CATCH_PLATFORM_LINUX @@ -132,9 +135,9 @@ namespace Catch { #endif -// We have to avoid both ICC and Clang, because they try to mask themselves -// as gcc, and we want only GCC in this block -#if defined(__GNUC__) && !defined(__clang__) && !defined(__ICC) && !defined(__CUDACC__) +// Only GCC compiler should be used in this block, so other compilers trying to +// mask themselves as GCC should be ignored. +#if defined(__GNUC__) && !defined(__clang__) && !defined(__ICC) && !defined(__CUDACC__) && !defined(__LCC__) # define CATCH_INTERNAL_START_WARNINGS_SUPPRESSION _Pragma( "GCC diagnostic push" ) # define CATCH_INTERNAL_STOP_WARNINGS_SUPPRESSION _Pragma( "GCC diagnostic pop" ) @@ -7054,8 +7057,8 @@ namespace Catch { double b2 = bias - z1; double a1 = a(b1); double a2 = a(b2); - auto lo = std::max(cumn(a1), 0); - auto hi = std::min(cumn(a2), n - 1); + auto lo = (std::max)(cumn(a1), 0); + auto hi = (std::min)(cumn(a2), n - 1); return { point, resample[lo], resample[hi], confidence_level }; } @@ -7124,7 +7127,9 @@ namespace Catch { } template EnvironmentEstimate> estimate_clock_cost(FloatDuration resolution) { - auto time_limit = std::min(resolution * clock_cost_estimation_tick_limit, FloatDuration(clock_cost_estimation_time_limit)); + auto time_limit = (std::min)( + resolution * clock_cost_estimation_tick_limit, + FloatDuration(clock_cost_estimation_time_limit)); auto time_clock = [](int k) { return Detail::measure([k] { for (int i = 0; i < k; ++i) { @@ -7771,7 +7776,7 @@ namespace Catch { double sb = stddev.point; double mn = mean.point / n; double mg_min = mn / 2.; - double sg = std::min(mg_min / 4., sb / std::sqrt(n)); + double sg = (std::min)(mg_min / 4., sb / std::sqrt(n)); double sg2 = sg * sg; double sb2 = sb * sb; @@ -7790,7 +7795,7 @@ namespace Catch { return (nc / n) * (sb2 - nc * sg2); }; - return std::min(var_out(1), var_out(std::min(c_max(0.), c_max(mg_min)))) / sb2; + return (std::min)(var_out(1), var_out((std::min)(c_max(0.), c_max(mg_min)))) / sb2; } bootstrap_analysis analyse_samples(double confidence_level, int n_resamples, std::vector::iterator first, std::vector::iterator last) { @@ -7980,86 +7985,58 @@ namespace Catch { // start catch_fatal_condition.h -// start catch_windows_h_proxy.h - - -#if defined(CATCH_PLATFORM_WINDOWS) - -#if !defined(NOMINMAX) && !defined(CATCH_CONFIG_NO_NOMINMAX) -# define CATCH_DEFINED_NOMINMAX -# define NOMINMAX -#endif -#if !defined(WIN32_LEAN_AND_MEAN) && !defined(CATCH_CONFIG_NO_WIN32_LEAN_AND_MEAN) -# define CATCH_DEFINED_WIN32_LEAN_AND_MEAN -# define WIN32_LEAN_AND_MEAN -#endif - -#ifdef __AFXDLL -#include -#else -#include -#endif - -#ifdef CATCH_DEFINED_NOMINMAX -# undef NOMINMAX -#endif -#ifdef CATCH_DEFINED_WIN32_LEAN_AND_MEAN -# undef WIN32_LEAN_AND_MEAN -#endif - -#endif // defined(CATCH_PLATFORM_WINDOWS) - -// end catch_windows_h_proxy.h -#if defined( CATCH_CONFIG_WINDOWS_SEH ) +#include namespace Catch { - struct FatalConditionHandler { - - static LONG CALLBACK handleVectoredException(PEXCEPTION_POINTERS ExceptionInfo); - FatalConditionHandler(); - static void reset(); - ~FatalConditionHandler(); - - private: - static bool isSet; - static ULONG guaranteeSize; - static PVOID exceptionHandlerHandle; - }; - -} // namespace Catch - -#elif defined ( CATCH_CONFIG_POSIX_SIGNALS ) - -#include - -namespace Catch { - - struct FatalConditionHandler { - - static bool isSet; - static struct sigaction oldSigActions[]; - static stack_t oldSigStack; - static char altStackMem[]; - - static void handleSignal( int sig ); + // Wrapper for platform-specific fatal error (signals/SEH) handlers + // + // Tries to be cooperative with other handlers, and not step over + // other handlers. This means that unknown structured exceptions + // are passed on, previous signal handlers are called, and so on. + // + // Can only be instantiated once, and assumes that once a signal + // is caught, the binary will end up terminating. Thus, there + class FatalConditionHandler { + bool m_started = false; + // Install/disengage implementation for specific platform. + // Should be if-defed to work on current platform, can assume + // engage-disengage 1:1 pairing. + void engage_platform(); + void disengage_platform(); + public: + // Should also have platform-specific implementations as needed FatalConditionHandler(); ~FatalConditionHandler(); - static void reset(); + + void engage() { + assert(!m_started && "Handler cannot be installed twice."); + m_started = true; + engage_platform(); + } + + void disengage() { + assert(m_started && "Handler cannot be uninstalled without being installed first"); + m_started = false; + disengage_platform(); + } }; -} // namespace Catch - -#else - -namespace Catch { - struct FatalConditionHandler { - void reset(); + //! Simple RAII guard for (dis)engaging the FatalConditionHandler + class FatalConditionHandlerGuard { + FatalConditionHandler* m_handler; + public: + FatalConditionHandlerGuard(FatalConditionHandler* handler): + m_handler(handler) { + m_handler->engage(); + } + ~FatalConditionHandlerGuard() { + m_handler->disengage(); + } }; -} -#endif +} // end namespace Catch // end catch_fatal_condition.h #include @@ -8185,6 +8162,7 @@ namespace Catch { std::vector m_unfinishedSections; std::vector m_activeSections; TrackerContext m_trackerContext; + FatalConditionHandler m_fatalConditionhandler; bool m_lastAssertionPassed = false; bool m_shouldReportUnexpected = true; bool m_includeSuccessfulResults; @@ -10057,6 +10035,36 @@ namespace Catch { } // end catch_errno_guard.h +// start catch_windows_h_proxy.h + + +#if defined(CATCH_PLATFORM_WINDOWS) + +#if !defined(NOMINMAX) && !defined(CATCH_CONFIG_NO_NOMINMAX) +# define CATCH_DEFINED_NOMINMAX +# define NOMINMAX +#endif +#if !defined(WIN32_LEAN_AND_MEAN) && !defined(CATCH_CONFIG_NO_WIN32_LEAN_AND_MEAN) +# define CATCH_DEFINED_WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif + +#ifdef __AFXDLL +#include +#else +#include +#endif + +#ifdef CATCH_DEFINED_NOMINMAX +# undef NOMINMAX +#endif +#ifdef CATCH_DEFINED_WIN32_LEAN_AND_MEAN +# undef WIN32_LEAN_AND_MEAN +#endif + +#endif // defined(CATCH_PLATFORM_WINDOWS) + +// end catch_windows_h_proxy.h #include namespace Catch { @@ -10573,7 +10581,7 @@ namespace Catch { // Extracts the actual name part of an enum instance // In other words, it returns the Blue part of Bikeshed::Colour::Blue StringRef extractInstanceName(StringRef enumInstance) { - // Find last occurence of ":" + // Find last occurrence of ":" size_t name_start = enumInstance.size(); while (name_start > 0 && enumInstance[name_start - 1] != ':') { --name_start; @@ -10735,25 +10743,47 @@ namespace Catch { // end catch_exception_translator_registry.cpp // start catch_fatal_condition.cpp -#if defined(__GNUC__) -# pragma GCC diagnostic push -# pragma GCC diagnostic ignored "-Wmissing-field-initializers" -#endif +#include + +#if !defined( CATCH_CONFIG_WINDOWS_SEH ) && !defined( CATCH_CONFIG_POSIX_SIGNALS ) + +namespace Catch { + + // If neither SEH nor signal handling is required, the handler impls + // do not have to do anything, and can be empty. + void FatalConditionHandler::engage_platform() {} + void FatalConditionHandler::disengage_platform() {} + FatalConditionHandler::FatalConditionHandler() = default; + FatalConditionHandler::~FatalConditionHandler() = default; + +} // end namespace Catch + +#endif // !CATCH_CONFIG_WINDOWS_SEH && !CATCH_CONFIG_POSIX_SIGNALS + +#if defined( CATCH_CONFIG_WINDOWS_SEH ) && defined( CATCH_CONFIG_POSIX_SIGNALS ) +#error "Inconsistent configuration: Windows' SEH handling and POSIX signals cannot be enabled at the same time" +#endif // CATCH_CONFIG_WINDOWS_SEH && CATCH_CONFIG_POSIX_SIGNALS #if defined( CATCH_CONFIG_WINDOWS_SEH ) || defined( CATCH_CONFIG_POSIX_SIGNALS ) namespace { - // Report the error condition + //! Signals fatal error message to the run context void reportFatal( char const * const message ) { Catch::getCurrentContext().getResultCapture()->handleFatalErrorCondition( message ); } -} -#endif // signals/SEH handling + //! Minimal size Catch2 needs for its own fatal error handling. + //! Picked anecdotally, so it might not be sufficient on all + //! platforms, and for all configurations. + constexpr std::size_t minStackSizeForErrors = 32 * 1024; +} // end unnamed namespace + +#endif // CATCH_CONFIG_WINDOWS_SEH || CATCH_CONFIG_POSIX_SIGNALS #if defined( CATCH_CONFIG_WINDOWS_SEH ) namespace Catch { + struct SignalDefs { DWORD id; const char* name; }; // There is no 1-1 mapping between signals and windows exceptions. @@ -10766,7 +10796,7 @@ namespace Catch { { static_cast(EXCEPTION_INT_DIVIDE_BY_ZERO), "Divide by zero error" }, }; - LONG CALLBACK FatalConditionHandler::handleVectoredException(PEXCEPTION_POINTERS ExceptionInfo) { + static LONG CALLBACK handleVectoredException(PEXCEPTION_POINTERS ExceptionInfo) { for (auto const& def : signalDefs) { if (ExceptionInfo->ExceptionRecord->ExceptionCode == def.id) { reportFatal(def.name); @@ -10777,38 +10807,50 @@ namespace Catch { return EXCEPTION_CONTINUE_SEARCH; } - FatalConditionHandler::FatalConditionHandler() { - isSet = true; - // 32k seems enough for Catch to handle stack overflow, - // but the value was found experimentally, so there is no strong guarantee - guaranteeSize = 32 * 1024; - exceptionHandlerHandle = nullptr; - // Register as first handler in current chain - exceptionHandlerHandle = AddVectoredExceptionHandler(1, handleVectoredException); - // Pass in guarantee size to be filled - SetThreadStackGuarantee(&guaranteeSize); - } + // Since we do not support multiple instantiations, we put these + // into global variables and rely on cleaning them up in outlined + // constructors/destructors + static PVOID exceptionHandlerHandle = nullptr; - void FatalConditionHandler::reset() { - if (isSet) { - RemoveVectoredExceptionHandler(exceptionHandlerHandle); - SetThreadStackGuarantee(&guaranteeSize); - exceptionHandlerHandle = nullptr; - isSet = false; + // For MSVC, we reserve part of the stack memory for handling + // memory overflow structured exception. + FatalConditionHandler::FatalConditionHandler() { + ULONG guaranteeSize = static_cast(minStackSizeForErrors); + if (!SetThreadStackGuarantee(&guaranteeSize)) { + // We do not want to fully error out, because needing + // the stack reserve should be rare enough anyway. + Catch::cerr() + << "Failed to reserve piece of stack." + << " Stack overflows will not be reported successfully."; } } - FatalConditionHandler::~FatalConditionHandler() { - reset(); + // We do not attempt to unset the stack guarantee, because + // Windows does not support lowering the stack size guarantee. + FatalConditionHandler::~FatalConditionHandler() = default; + + void FatalConditionHandler::engage_platform() { + // Register as first handler in current chain + exceptionHandlerHandle = AddVectoredExceptionHandler(1, handleVectoredException); + if (!exceptionHandlerHandle) { + CATCH_RUNTIME_ERROR("Could not register vectored exception handler"); + } } -bool FatalConditionHandler::isSet = false; -ULONG FatalConditionHandler::guaranteeSize = 0; -PVOID FatalConditionHandler::exceptionHandlerHandle = nullptr; + void FatalConditionHandler::disengage_platform() { + if (!RemoveVectoredExceptionHandler(exceptionHandlerHandle)) { + CATCH_RUNTIME_ERROR("Could not unregister vectored exception handler"); + } + exceptionHandlerHandle = nullptr; + } -} // namespace Catch +} // end namespace Catch -#elif defined( CATCH_CONFIG_POSIX_SIGNALS ) +#endif // CATCH_CONFIG_WINDOWS_SEH + +#if defined( CATCH_CONFIG_POSIX_SIGNALS ) + +#include namespace Catch { @@ -10817,10 +10859,6 @@ namespace Catch { const char* name; }; - // 32kb for the alternate stack seems to be sufficient. However, this value - // is experimentally determined, so that's not guaranteed. - static constexpr std::size_t sigStackSize = 32768 >= MINSIGSTKSZ ? 32768 : MINSIGSTKSZ; - static SignalDefs signalDefs[] = { { SIGINT, "SIGINT - Terminal interrupt signal" }, { SIGILL, "SIGILL - Illegal instruction signal" }, @@ -10830,7 +10868,32 @@ namespace Catch { { SIGABRT, "SIGABRT - Abort (abnormal termination) signal" } }; - void FatalConditionHandler::handleSignal( int sig ) { +// Older GCCs trigger -Wmissing-field-initializers for T foo = {} +// which is zero initialization, but not explicit. We want to avoid +// that. +#if defined(__GNUC__) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wmissing-field-initializers" +#endif + + static char* altStackMem = nullptr; + static std::size_t altStackSize = 0; + static stack_t oldSigStack{}; + static struct sigaction oldSigActions[sizeof(signalDefs) / sizeof(SignalDefs)]{}; + + static void restorePreviousSignalHandlers() { + // We set signal handlers back to the previous ones. Hopefully + // nobody overwrote them in the meantime, and doesn't expect + // their signal handlers to live past ours given that they + // installed them after ours.. + for (std::size_t i = 0; i < sizeof(signalDefs) / sizeof(SignalDefs); ++i) { + sigaction(signalDefs[i].id, &oldSigActions[i], nullptr); + } + // Return the old stack + sigaltstack(&oldSigStack, nullptr); + } + + static void handleSignal( int sig ) { char const * name = ""; for (auto const& def : signalDefs) { if (sig == def.id) { @@ -10838,16 +10901,33 @@ namespace Catch { break; } } - reset(); - reportFatal(name); + // We need to restore previous signal handlers and let them do + // their thing, so that the users can have the debugger break + // when a signal is raised, and so on. + restorePreviousSignalHandlers(); + reportFatal( name ); raise( sig ); } FatalConditionHandler::FatalConditionHandler() { - isSet = true; + assert(!altStackMem && "Cannot initialize POSIX signal handler when one already exists"); + if (altStackSize == 0) { + altStackSize = std::max(static_cast(SIGSTKSZ), minStackSizeForErrors); + } + altStackMem = new char[altStackSize](); + } + + FatalConditionHandler::~FatalConditionHandler() { + delete[] altStackMem; + // We signal that another instance can be constructed by zeroing + // out the pointer. + altStackMem = nullptr; + } + + void FatalConditionHandler::engage_platform() { stack_t sigStack; sigStack.ss_sp = altStackMem; - sigStack.ss_size = sigStackSize; + sigStack.ss_size = altStackSize; sigStack.ss_flags = 0; sigaltstack(&sigStack, &oldSigStack); struct sigaction sa = { }; @@ -10859,40 +10939,17 @@ namespace Catch { } } - FatalConditionHandler::~FatalConditionHandler() { - reset(); - } - - void FatalConditionHandler::reset() { - if( isSet ) { - // Set signals back to previous values -- hopefully nobody overwrote them in the meantime - for( std::size_t i = 0; i < sizeof(signalDefs)/sizeof(SignalDefs); ++i ) { - sigaction(signalDefs[i].id, &oldSigActions[i], nullptr); - } - // Return the old stack - sigaltstack(&oldSigStack, nullptr); - isSet = false; - } - } - - bool FatalConditionHandler::isSet = false; - struct sigaction FatalConditionHandler::oldSigActions[sizeof(signalDefs)/sizeof(SignalDefs)] = {}; - stack_t FatalConditionHandler::oldSigStack = {}; - char FatalConditionHandler::altStackMem[sigStackSize] = {}; - -} // namespace Catch - -#else - -namespace Catch { - void FatalConditionHandler::reset() {} -} - -#endif // signals/SEH handling - #if defined(__GNUC__) # pragma GCC diagnostic pop #endif + + void FatalConditionHandler::disengage_platform() { + restorePreviousSignalHandlers(); + } + +} // end namespace Catch + +#endif // CATCH_CONFIG_POSIX_SIGNALS // end catch_fatal_condition.cpp // start catch_generators.cpp @@ -11447,7 +11504,8 @@ namespace { return lhs == rhs; } - auto ulpDiff = std::abs(lc - rc); + // static cast as a workaround for IBM XLC + auto ulpDiff = std::abs(static_cast(lc - rc)); return static_cast(ulpDiff) <= maxUlpDiff; } @@ -11621,7 +11679,6 @@ Floating::WithinRelMatcher WithinRel(float target) { } // namespace Matchers } // namespace Catch - // end catch_matchers_floating.cpp // start catch_matchers_generic.cpp @@ -12955,9 +13012,8 @@ namespace Catch { } void RunContext::invokeActiveTestCase() { - FatalConditionHandler fatalConditionHandler; // Handle signals + FatalConditionHandlerGuard _(&m_fatalConditionhandler); m_activeTestCase->invoke(); - fatalConditionHandler.reset(); } void RunContext::handleUnfinishedSections() { @@ -15320,7 +15376,7 @@ namespace Catch { } Version const& libraryVersion() { - static Version version( 2, 13, 4, "", 0 ); + static Version version( 2, 13, 6, "", 0 ); return version; } diff --git a/tests/raylib_test.cpp b/tests/raylib_test.cpp index 66f357a..2778796 100644 --- a/tests/raylib_test.cpp +++ b/tests/raylib_test.cpp @@ -22,11 +22,11 @@ TEST_CASE("raylib_test", "[raylib_test]" ) { } SECTION("Color") { - raylib::Color c(RED); - REQUIRE(c.ToInt() == ::ColorToInt(RED)); + raylib::Color color = RED; + REQUIRE(color.ToInt() == ::ColorToInt(RED)); - c = RAYWHITE; - REQUIRE(c.r == RAYWHITE.r); + color = RAYWHITE; + REQUIRE(color.r == RAYWHITE.r); } SECTION("RayMath") { @@ -37,6 +37,6 @@ TEST_CASE("raylib_test", "[raylib_test]" ) { SECTION("Functions") { std::vector files = raylib::GetDirectoryFiles(::GetWorkingDirectory()); - REQUIRE(files.size() > 2); + REQUIRE(files.size() > 3); } }