Skip to content

Commit 56fd2b8

Browse files
committed
Bump to v3.1.3
1 parent 7eaf982 commit 56fd2b8

3,231 files changed

Lines changed: 676803 additions & 28080 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.clang-tidy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Checks: '*,
77
-google*,
88
-llvm*,
99
-zircon*,
10-
-*braces-around-statements,
1110
-*magic-numbers,
1211
-*use-trailing-return-type,
1312
-*reinterpret-cast,
@@ -19,5 +18,4 @@ Checks: '*,
1918
-*swappable-parameters'
2019
WarningsAsErrors: '*'
2120
HeaderFilterRegex: '.*'
22-
AnalyzeTemporaryDtors: false
2321
FormatStyle: llvm

.github/workflows/build.yml

Lines changed: 56 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,71 @@ jobs:
1717

1818
steps:
1919
- name: Checkout repo
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- name: Install dependencies (ENABLE_CONAN=ON)
2323
if: matrix.cmake-var == 'ENABLE_CONAN=ON'
2424
run: |
2525
sudo apt-get install cmake pkg-config
2626
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev
27-
sudo apt-get install libx11-xcb-dev libfontenc-dev libice-dev libsm-dev libxau-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev xtrans-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev xkb-data libxcb-dri3-dev uuid-dev libxcb-util-dev libxcb-cursor-dev
27+
sudo apt-get install \
28+
libx11-xcb-dev \
29+
libfontenc-dev \
30+
libice-dev \
31+
libsm-dev \
32+
libxau-dev \
33+
libxaw7-dev \
34+
libxcomposite-dev \
35+
libxcursor-dev \
36+
libxdamage-dev \
37+
libxdmcp-dev \
38+
libxext-dev \
39+
libxfixes-dev \
40+
libxft-dev \
41+
libxi-dev \
42+
libxinerama-dev \
43+
libxkbfile-dev \
44+
libxmu-dev \
45+
libxmuu-dev \
46+
libxpm-dev \
47+
libxrandr-dev \
48+
libxrender-dev \
49+
libxres-dev \
50+
libxss-dev \
51+
libxt-dev \
52+
libxtst-dev \
53+
libxv-dev \
54+
libxvmc-dev \
55+
libxxf86vm-dev \
56+
xtrans-dev \
57+
libxcb-render0-dev \
58+
libxcb-render-util0-dev \
59+
libxcb-xkb-dev \
60+
libxcb-icccm4-dev \
61+
libxcb-image0-dev \
62+
libxcb-keysyms1-dev \
63+
libxcb-randr0-dev \
64+
libxcb-shape0-dev \
65+
libxcb-sync-dev \
66+
libxcb-xfixes0-dev \
67+
libxcb-xinerama0-dev \
68+
xkb-data \
69+
libxcb-dri3-dev \
70+
uuid-dev \
71+
libxcb-util-dev \
72+
libxcb-cursor-dev
2873
sudo apt-get install python3 pip
2974
pip install "conan<2.0"
3075
3176
- name: Install dependencies (ENABLE_CONAN=OFF)
3277
if: matrix.cmake-var == 'ENABLE_CONAN=OFF'
3378
run: |
34-
sudo apt-get install cmake
35-
sudo apt-get install libglew-dev libsdl2-dev libsdl2-image-dev
79+
sudo apt-get update
80+
sudo apt-get install -y \
81+
cmake \
82+
libglew-dev \
83+
libsdl2-dev \
84+
libsdl2-image-dev
3685
3786
- name: Install GCC
3887
if: matrix.compiler == 'GCC'
@@ -83,10 +132,10 @@ jobs:
83132

84133
# steps:
85134
# - name: Checkout repo
86-
# uses: actions/checkout@v3
135+
# uses: actions/checkout@v4
87136

88137
# - name: Set up Python
89-
# uses: actions/setup-python@v3
138+
# uses: actions/setup-python@v4
90139
# with:
91140
# python-version: '3.10'
92141
# - run: |
@@ -113,7 +162,7 @@ jobs:
113162

114163
steps:
115164
- name: Checkout repo
116-
uses: actions/checkout@v3
165+
uses: actions/checkout@v4
117166

118167
- name: Install Emscripten
119168
run: |

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
# Release notes
22

3+
## v3.1.3
4+
5+
* Update dependencies (glslang, volk).
6+
* Fix potentially unsafe uses of `string_view`.
7+
* Fix use of Vulkan semaphores.
8+
* Favor passing `glm::vec*` by value, except in the public API.
9+
* Improve code formatting.
10+
* Use more compact underlying types for enums.
11+
312
## v3.1.2
413

514
* [@abacchi00 (André Bacchi)](https://github.com/abacchi00): fix: ensure web build runs correctly.
615
* Fix `cmake_minimum_required()` deprecation warnings.
716
* Disable warnings for vendored-in libraries in WASM builds.
817

9-
1018
## v3.1.1
1119

1220
* Added a shader compile check to make GLSL ES shaders compatible with macOS.

abcg/abcg.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* This file is part of ABCg (https://github.com/hbatagelo/abcg).
88
*
9-
* @copyright (c) 2021--2023 Harlen Batagelo. All rights reserved.
9+
* @copyright (c) 2021--2026 Harlen Batagelo. All rights reserved.
1010
* This project is released under the MIT License.
1111
*/
1212

abcg/abcgApplication.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* This file is part of ABCg (https://github.com/hbatagelo/abcg).
66
*
7-
* @copyright (c) 2021--2023 Harlen Batagelo. All rights reserved.
7+
* @copyright (c) 2021--2026 Harlen Batagelo. All rights reserved.
88
* This project is released under the MIT License.
99
*/
1010

@@ -149,8 +149,9 @@ void abcg::Application::mainLoopIterator([[maybe_unused]] bool &done) const {
149149
SDL_Event event{};
150150
while (SDL_PollEvent(&event) != 0) {
151151
#if !defined(__EMSCRIPTEN__)
152-
if (event.type == SDL_QUIT)
152+
if (event.type == SDL_QUIT) {
153153
done = true;
154+
}
154155
#endif
155156
m_window->templateHandleEvent(event, done);
156157
}

abcg/abcgApplication.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* This file is part of ABCg (https://github.com/hbatagelo/abcg).
66
*
7-
* @copyright (c) 2021--2023 Harlen Batagelo. All rights reserved.
7+
* @copyright (c) 2021--2026 Harlen Batagelo. All rights reserved.
88
* This project is released under the MIT License.
99
*/
1010

@@ -15,7 +15,7 @@
1515

1616
#define ABCG_VERSION_MAJOR 3
1717
#define ABCG_VERSION_MINOR 1
18-
#define ABCG_VERSION_PATCH 1
18+
#define ABCG_VERSION_PATCH 3
1919

2020
/**
2121
* @brief Root namespace.

abcg/abcgException.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* This file is part of ABCg (https://github.com/hbatagelo/abcg).
66
*
7-
* @copyright (c) 2021--2023 Harlen Batagelo. All rights reserved.
7+
* @copyright (c) 2021--2026 Harlen Batagelo. All rights reserved.
88
* This project is released under the MIT License.
99
*/
1010

@@ -46,7 +46,7 @@ abcg::RuntimeError::RuntimeError(std::string_view what,
4646
std::string
4747
abcg::RuntimeError::prettyPrint(std::string_view what,
4848
source_location const &sourceLocation) {
49-
return toRedString(what.data()) + " in " + sourceLocation.file_name() + ":" +
49+
return toRedString(what) + " in " + sourceLocation.file_name() + ":" +
5050
std::to_string(sourceLocation.line()) + ", " +
5151
toYellowString(sourceLocation.function_name()) + "\n";
5252
}
@@ -66,7 +66,7 @@ abcg::SDLError::SDLError(std::string_view what,
6666

6767
std::string abcg::SDLError::prettyPrint(std::string_view what,
6868
source_location const &sourceLocation) {
69-
return toRedString(what.data()) + " (" + SDL_GetError() + ") in " +
69+
return toRedString(what) + " (" + SDL_GetError() + ") in " +
7070
sourceLocation.file_name() + ":" +
7171
std::to_string(sourceLocation.line()) + ", " +
7272
toYellowString(sourceLocation.function_name()) + "\n";
@@ -88,7 +88,7 @@ abcg::SDLImageError::SDLImageError(std::string_view what,
8888
std::string
8989
abcg::SDLImageError::prettyPrint(std::string_view what,
9090
source_location const &sourceLocation) {
91-
return toRedString(what.data()) + " (" + IMG_GetError() + ") in " +
91+
return toRedString(what) + " (" + IMG_GetError() + ") in " +
9292
sourceLocation.file_name() + ":" +
9393
std::to_string(sourceLocation.line()) + ", " +
9494
toYellowString(sourceLocation.function_name()) + "\n";
@@ -98,20 +98,20 @@ abcg::RuntimeError::RuntimeError(std::string_view what)
9898
: Exception(prettyPrint(what)) {}
9999

100100
std::string abcg::RuntimeError::prettyPrint(std::string_view what) {
101-
return toRedString(what.data()) + "\n";
101+
return toRedString(what) + "\n";
102102
}
103103

104104
abcg::SDLError::SDLError(std::string_view what)
105105
: Exception(prettyPrint(what)) {}
106106

107107
std::string abcg::SDLError::prettyPrint(std::string_view what) {
108-
return toRedString(what.data()) + " (" + SDL_GetError() + ")\n";
108+
return toRedString(what) + " (" + SDL_GetError() + ")\n";
109109
}
110110

111111
abcg::SDLImageError::SDLImageError(std::string_view what)
112112
: Exception(prettyPrint(what)) {}
113113

114114
std::string abcg::SDLImageError::prettyPrint(std::string_view what) {
115-
return toRedString(what.data()) + " (" + IMG_GetError() + ")\n";
115+
return toRedString(what) + " (" + IMG_GetError() + ")\n";
116116
}
117117
#endif

abcg/abcgException.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* This file is part of ABCg (https://github.com/hbatagelo/abcg).
88
*
9-
* @copyright (c) 2021--2023 Harlen Batagelo. All rights reserved.
9+
* @copyright (c) 2021--2026 Harlen Batagelo. All rights reserved.
1010
* This project is released under the MIT License.
1111
*/
1212

@@ -53,7 +53,7 @@ class abcg::Exception : public std::exception {
5353
[[nodiscard]] char const *what() const noexcept override;
5454

5555
private:
56-
std::string m_what{};
56+
std::string m_what;
5757
};
5858

5959
/**

abcg/abcgExternal.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* This file is part of ABCg (https://github.com/hbatagelo/abcg).
88
*
9-
* @copyright (c) 2021--2023 Harlen Batagelo. All rights reserved.
9+
* @copyright (c) 2021--2026 Harlen Batagelo. All rights reserved.
1010
* This project is released under the MIT License.
1111
*/
1212

abcg/abcgImage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* This file is part of ABCg (https://github.com/hbatagelo/abcg).
66
*
7-
* @copyright (c) 2021--2023 Harlen Batagelo. All rights reserved.
7+
* @copyright (c) 2021--2026 Harlen Batagelo. All rights reserved.
88
* This project is released under the MIT License.
99
*/
1010

0 commit comments

Comments
 (0)