Skip to content

Commit 78adb8c

Browse files
authored
Merge pull request #110 from RobLoach/update
v3.5.0-beta2
2 parents 03d170d + 7704a85 commit 78adb8c

29 files changed

+96
-77
lines changed

CHANGELOG.md

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

7-
## [v3.5.0-beta2] - Unreleased
7+
## [v3.5.0-beta2] - 2021-01-18
88
### Fixed
99
- `Font.charsPadding` loading
1010
### Removed

LICENSE

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
Copyright (c) 2019-2020 Rob Loach (@RobLoach)
1+
Copyright (c) 2019-2021 Rob Loach (@RobLoach)
22

3-
This software is provided "as-is", without any express or implied warranty. In no event
3+
This software is provided "as-is", without any express or implied warranty. In no event
44
will the authors be held liable for any damages arising from the use of this software.
55

6-
Permission is granted to anyone to use this software for any purpose, including commercial
6+
Permission is granted to anyone to use this software for any purpose, including commercial
77
applications, and to alter it and redistribute it freely, subject to the following restrictions:
88

9-
1. The origin of this software must not be misrepresented; you must not claim that you
10-
wrote the original software. If you use this software in a product, an acknowledgment
9+
1. The origin of this software must not be misrepresented; you must not claim that you
10+
wrote the original software. If you use this software in a product, an acknowledgment
1111
in the product documentation would be appreciated but is not required.
1212

1313
2. Altered source versions must be plainly marked as such, and must not be misrepresented

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ int main() {
1313
int screenWidth = 800;
1414
int screenHeight = 450;
1515

16-
raylib::Window w(screenWidth, screenHeight, "raylib-cpp - basic window");
16+
raylib::Window window(screenWidth, screenHeight, "raylib-cpp - basic window");
1717
raylib::Texture logo("raylib_logo.png");
1818

1919
SetTargetFPS(60);
2020

21-
while (!w.ShouldClose())
21+
while (!window.ShouldClose())
2222
{
2323
BeginDrawing();
2424

@@ -28,7 +28,7 @@ int main() {
2828

2929
// Object methods.
3030
logo.Draw(
31-
screenWidth / 2 - logo.GetWidth() / 2,
31+
screenWidth / 2 - logo.GetWidth() / 2,
3232
screenHeight / 2 - logo.GetHeight() / 2);
3333

3434
EndDrawing();
@@ -154,7 +154,7 @@ ImageResize(&cat, 150, 200);
154154
155155
// raylib-cpp
156156
raylib::Image cat("cat.png");
157-
cat.Crop((Rectangle){ 100, 10, 280, 380 })
157+
cat.Crop(100, 10, 280, 380)
158158
.FlipHorizontal()
159159
.Resize(150, 200);
160160
```

examples/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ if (NOT raylib_FOUND)
1111
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../vendor/raylib ${CMAKE_CURRENT_SOURCE_DIR}/../vendor/raylib)
1212
endif()
1313

14+
# Find all examples
1415
foreach(example_dir ${example_dirs})
1516
file(GLOB sources ${example_dir}/*.cpp)
1617
list(APPEND example_sources ${sources})
@@ -20,7 +21,7 @@ foreach(example_dir ${example_dirs})
2021
list(APPEND example_resources ${resources})
2122
endforeach()
2223

23-
# Do each example
24+
# Compile all examples
2425
foreach(example_source ${example_sources})
2526
# Create the basename for the example
2627
get_filename_component(example_name ${example_source} NAME)
@@ -37,4 +38,5 @@ foreach(example_source ${example_sources})
3738

3839
endforeach()
3940

41+
# Copy all the resources
4042
file(COPY ${example_resources} DESTINATION "resources/")

examples/audio/audio_music_stream.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ int main() {
1717
const int screenWidth = 800;
1818
const int screenHeight = 450;
1919

20-
raylib::Window w(screenWidth, screenHeight, "raylib [audio] example - music playing (streaming)");
20+
raylib::Window window(screenWidth, screenHeight, "raylib [audio] example - music playing (streaming)");
2121

2222
raylib::AudioDevice audio; // Initialize audio device
2323

@@ -32,7 +32,7 @@ int main() {
3232
//--------------------------------------------------------------------------------------
3333

3434
// Main game loop
35-
while (!w.ShouldClose()) // Detect window close button or ESC key
35+
while (!window.ShouldClose()) // Detect window close button or ESC key
3636
{
3737
// Update
3838
//----------------------------------------------------------------------------------

examples/audio/audio_sound_loading.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ int main() {
1717
const int screenWidth = 800;
1818
const int screenHeight = 450;
1919

20-
raylib::Window w(screenWidth, screenHeight, "raylib [audio] example - sound loading and playing");
20+
raylib::Window window(screenWidth, screenHeight, "raylib [audio] example - sound loading and playing");
2121

2222
raylib::AudioDevice audiodevice; // Initialize audio device
2323

@@ -28,7 +28,7 @@ int main() {
2828
//--------------------------------------------------------------------------------------
2929

3030
// Main game loop
31-
while (!w.ShouldClose()) // Detect window close button or ESC key
31+
while (!window.ShouldClose()) // Detect window close button or ESC key
3232
{
3333
// Update
3434
//----------------------------------------------------------------------------------

examples/core/core_3d_camera_first_person.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ int main() {
1919
const int screenWidth = 800;
2020
const int screenHeight = 450;
2121

22-
raylib::Window w(screenWidth, screenHeight, "raylib [core] example - 3d camera first person");
22+
raylib::Window window(screenWidth, screenHeight, "raylib [core] example - 3d camera first person");
2323
raylib::Color background(RAYWHITE);
2424

2525
// Define the camera to look into our 3d world (position, target, up vector)
@@ -48,7 +48,7 @@ int main() {
4848
//--------------------------------------------------------------------------------------
4949

5050
// Main game loop
51-
while (!w.ShouldClose()) // Detect window close button or ESC key
51+
while (!window.ShouldClose()) // Detect window close button or ESC key
5252
{
5353
// Update
5454
//----------------------------------------------------------------------------------

examples/core/core_basic_window.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ int main() {
2727
int screenWidth = 800;
2828
int screenHeight = 450;
2929
raylib::Color textColor(LIGHTGRAY);
30-
raylib::Window w(screenWidth, screenHeight, "raylib [core] example - basic window");
30+
raylib::Window window(screenWidth, screenHeight, "raylib [core] example - basic window");
3131

3232
SetTargetFPS(60);
3333
//--------------------------------------------------------------------------------------
3434

3535
// Main game loop
36-
while (!w.ShouldClose()) // Detect window close button or ESC key
36+
while (!window.ShouldClose()) // Detect window close button or ESC key
3737
{
3838
// Update
3939
//----------------------------------------------------------------------------------

examples/core/core_drop_files.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ int main() {
1919
const int screenWidth = 800;
2020
const int screenHeight = 450;
2121

22-
raylib::Window w(screenWidth, screenHeight, "raylib [core] example - drop files");
22+
raylib::Window window(screenWidth, screenHeight, "raylib [core] example - drop files");
2323

2424
std::vector<std::string> droppedFiles;
2525

2626
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
2727
//--------------------------------------------------------------------------------------
2828

2929
// Main game loop
30-
while (!w.ShouldClose()) // Detect window close button or ESC key
30+
while (!window.ShouldClose()) // Detect window close button or ESC key
3131
{
3232
// Update
3333
//----------------------------------------------------------------------------------

examples/core/core_input_mouse.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ int main() {
1717
const int screenWidth = 800;
1818
const int screenHeight = 450;
1919

20-
raylib::Window w(screenWidth, screenHeight, "raylib [core] example - mouse input");
20+
raylib::Window window(screenWidth, screenHeight, "raylib [core] example - mouse input");
2121

2222
raylib::Vector2 ballPosition(-100.0f, -100.0f);
2323
raylib::Color background(RAYWHITE);
@@ -28,7 +28,7 @@ int main() {
2828
//---------------------------------------------------------------------------------------
2929

3030
// Main game loop
31-
while (!w.ShouldClose()) // Detect window close button or ESC key
31+
while (!window.ShouldClose()) // Detect window close button or ESC key
3232
{
3333
// Update
3434
//----------------------------------------------------------------------------------

0 commit comments

Comments
 (0)