File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ include(FetchContent)
11
11
FetchContent_Declare (
12
12
bave
13
13
GIT_REPOSITORY https://github.com/karnkaul/bave
14
- GIT_TAG ff3978f8431649007d3309db513d3de3e72fe823 # v0.4.9
14
+ GIT_TAG v0.5.0
15
15
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /ext/bave"
16
16
)
17
17
Original file line number Diff line number Diff line change @@ -40,17 +40,17 @@ void set_log_max_levels() {
40
40
}
41
41
42
42
auto run (int const argc, char const * const * argv) -> int {
43
+ auto data_loader = bave::DataLoaderBuilder{argc, argv}.add_zip (" assets.zip" ).add_dir (" assets" ).build ();
43
44
auto create_info = bave::DesktopApp::CreateInfo{
44
- .args = bave::make_args (argc, argv),
45
45
.title = " Spaced" ,
46
46
.mode = bave::Windowed{.extent = {1920 , 1080 }},
47
47
.msaa = vk::SampleCountFlagBits::e4 ,
48
- .assets_patterns = " assets " ,
48
+ .data_loader = std::move (data_loader) ,
49
49
};
50
50
51
51
set_log_max_levels ();
52
52
53
- auto app = bave::DesktopApp{create_info};
53
+ auto app = bave::DesktopApp{std::move ( create_info) };
54
54
app.set_bootloader ([](bave::App& app) { return std::make_unique<spaced::Spaced>(app); });
55
55
return static_cast <int >(app.run ());
56
56
}
Original file line number Diff line number Diff line change 1
1
#include < bave/graphics/particle_system.hpp>
2
- #include < bave/json_io.hpp>
2
+ #include < bave/io/ json_io.hpp>
3
3
#include < bave/logger.hpp>
4
4
#include < spaced/assets/asset_loader.hpp>
5
5
#include < mutex>
Original file line number Diff line number Diff line change 1
- #include < bave/json_io.hpp>
1
+ #include < bave/io/ json_io.hpp>
2
2
#include < spaced/services/styles.hpp>
3
3
#include < spaced/util.hpp>
4
4
Original file line number Diff line number Diff line change 1
1
#include < bave/core/is_positive.hpp>
2
- #include < bave/json_io.hpp>
2
+ #include < bave/io/ json_io.hpp>
3
3
#include < bave/loader.hpp>
4
4
#include < spaced/scenes/load_assets.hpp>
5
5
#include < spaced/services/audio.hpp>
Original file line number Diff line number Diff line change 1
- #include < bave/json_io.hpp>
1
+ #include < bave/io/ json_io.hpp>
2
2
#include < spaced/util.hpp>
3
3
4
4
namespace spaced {
You can’t perform that action at this time.
0 commit comments