Skip to content

Commit 91d5734

Browse files
authored
Release 0.18 (#45)
* update to vulkano 8f99cea * reduce specificity of versions * bump version and add changelog entries * use released versions
1 parent 1eb12a1 commit 91d5734

File tree

17 files changed

+707
-644
lines changed

17 files changed

+707
-644
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Unreleased
22

3+
# Version 0.18.0 (September 18th, 2022)
4+
5+
- **BREAKING** Update dependency `vulkano` & `vulkano-shaders` to `0.30`.
6+
- **BREAKING** Update dependency `ilmenite` to `0.12`.
37
- **BREAKING** `Input` and `HookManager` (a.k.a. `BinHook`) have been rewritten/merged.
48
- As this is a rewrite, the design has changed greatly. Please refer to docs.
59
- Convenience methods on `Input` are now accessed on windows instead.
@@ -18,11 +22,16 @@
1822
- Specifically `InputScrollBuilder.upper_blocks(...)` replaces this hack.
1923
- **BREAKING** `BinID` is now a concrete type instead of an alias.
2024
- **BREAKING** `Interface.get_bin_id_atop(...)` and `Interface.get_bin_atop(...)` now additionally take a `BstWindowID`.
25+
- **BREAKING** `ImageEffect` now has `GlyphWithColor` varient.
26+
- **BREAKING** Removed `Basalt::physical_device_index()` as `vulkano` no longer has indexes for physical devices.
2127
- Interface now has the methods `get_bins_atop(...)` and `get_bin_ids_atop` which function like their singular varients, but return a sorted `Vec` instead where the top most is first.
2228
- New `Interval` system
2329
- This system introduces the ability to run a hook on a specfic interval down to 1 ms of precision.
2430
- The minimum resolution is platform/scheduler specific, but generally Windows is about 1.4ms and linux at 1 ms.
2531
- The rewritten `Input` system utilizes this functionality with `on_hold` and `on_scroll`, *where smooth scrolling is enabled*, to provide more frequent and consistent intervals.
32+
- Changed font used to a more common, less quirky font Roboto.
33+
- Improved subpixel sampling for glyphs in interface shaders.
34+
- Added method `Basalt::physical_device_ref()`.
2635

2736
# Version 0.17.0 (August 19th, 2022)
2837

Cargo.toml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "basalt"
33
edition = "2021"
4-
version = "0.17.0"
4+
version = "0.18.0"
55
authors = ["Austin <[email protected]>"]
66
repository = "https://github.com/AustinJ235/basalt"
77
documentation = "https://docs.rs/basalt"
@@ -12,21 +12,21 @@ categories = ["graphics","gui"]
1212
readme = "README.md"
1313

1414
[dependencies]
15-
vulkano = "0.30"
16-
vulkano-shaders = "0.30"
17-
ilmenite = "0.11"
15+
vulkano = "0.31"
16+
vulkano-shaders = "0.31"
17+
ilmenite = "0.12"
1818
ash = "0.37"
19-
image = "0.24.2"
20-
parking_lot = "0.12.1"
21-
crossbeam = "0.8.1"
22-
winit = "0.27.2"
23-
curl = "0.4.43"
24-
ordered-float = "3.0.0"
25-
arc-swap = "1.5.0"
26-
bytemuck = "1.7"
27-
smallvec = "1.8"
28-
guillotiere = "0.6.2"
29-
raw-window-handle = "0.5.0"
19+
image = "0.24"
20+
parking_lot = "0.12"
21+
crossbeam = "0.8"
22+
winit = "0.27"
23+
curl = "0.4"
24+
ordered-float = "3"
25+
arc-swap = "1"
26+
bytemuck = "1"
27+
smallvec = "1"
28+
guillotiere = "0.6"
29+
raw-window-handle = "0.5"
3030

3131
[target.'cfg(target_os = "macos")'.dependencies]
3232
objc = "0.2.5"

examples/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ publish = false
88
[dependencies]
99
basalt = { path = "../" }
1010
# Dependancies below are not required for app.rs
11-
vulkano = "0.30"
12-
vulkano-shaders = "0.30"
13-
bytemuck = "1.7"
11+
vulkano = "0.31"
12+
vulkano-shaders = "0.31"
13+
bytemuck = "1"

examples/src/bin/app.rs

Lines changed: 47 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,56 @@ use basalt::interface::bin::{self, BinPosition, BinStyle};
33
use basalt::{Basalt, BstOptions};
44

55
fn main() {
6-
Basalt::initialize(
7-
BstOptions::default().window_size(300, 300).title("Basalt").app_loop(),
8-
Box::new(move |basalt_res| {
9-
let basalt = basalt_res.unwrap();
10-
let background = basalt.interface_ref().new_bin();
6+
Basalt::initialize(
7+
BstOptions::default()
8+
.window_size(300, 300)
9+
.title("Basalt")
10+
.app_loop(),
11+
Box::new(move |basalt_res| {
12+
let basalt = basalt_res.unwrap();
13+
let background = basalt.interface_ref().new_bin();
1114

12-
background.style_update(BinStyle {
13-
pos_from_t: Some(0.0),
14-
pos_from_b: Some(0.0),
15-
pos_from_l: Some(0.0),
16-
pos_from_r: Some(0.0),
17-
back_color: Some(bin::Color::srgb_hex("f0f0f0")),
18-
..BinStyle::default()
19-
});
15+
background.style_update(BinStyle {
16+
pos_from_t: Some(0.0),
17+
pos_from_b: Some(0.0),
18+
pos_from_l: Some(0.0),
19+
pos_from_r: Some(0.0),
20+
back_color: Some(bin::Color::srgb_hex("f0f0f0")),
21+
..BinStyle::default()
22+
});
2023

21-
let button = basalt.interface_ref().new_bin();
22-
background.add_child(button.clone());
24+
let button = basalt.interface_ref().new_bin();
25+
background.add_child(button.clone());
2326

24-
button.style_update(BinStyle {
25-
position: Some(BinPosition::Parent),
26-
pos_from_t: Some(75.0),
27-
pos_from_l: Some(75.0),
28-
width: Some(75.0),
29-
height: Some(30.0),
30-
back_color: Some(bin::Color::srgb_hex("c0c0c0")),
31-
border_size_t: Some(1.0),
32-
border_size_b: Some(1.0),
33-
border_size_l: Some(1.0),
34-
border_size_r: Some(1.0),
35-
border_color_t: Some(bin::Color::srgb_hex("707070")),
36-
border_color_b: Some(bin::Color::srgb_hex("707070")),
37-
border_color_l: Some(bin::Color::srgb_hex("707070")),
38-
border_color_r: Some(bin::Color::srgb_hex("707070")),
39-
text: String::from("Button"),
40-
text_height: Some(14.0),
41-
pad_t: Some(10.0),
42-
pad_l: Some(10.0),
43-
text_color: Some(bin::Color::srgb_hex("303030")),
44-
..BinStyle::default()
45-
});
27+
button.style_update(BinStyle {
28+
position: Some(BinPosition::Parent),
29+
pos_from_t: Some(75.0),
30+
pos_from_l: Some(75.0),
31+
width: Some(75.0),
32+
height: Some(30.0),
33+
back_color: Some(bin::Color::srgb_hex("c0c0c0")),
34+
border_size_t: Some(1.0),
35+
border_size_b: Some(1.0),
36+
border_size_l: Some(1.0),
37+
border_size_r: Some(1.0),
38+
border_color_t: Some(bin::Color::srgb_hex("707070")),
39+
border_color_b: Some(bin::Color::srgb_hex("707070")),
40+
border_color_l: Some(bin::Color::srgb_hex("707070")),
41+
border_color_r: Some(bin::Color::srgb_hex("707070")),
42+
text: String::from("Button"),
43+
text_height: Some(14.0),
44+
pad_t: Some(10.0),
45+
pad_l: Some(10.0),
46+
text_color: Some(bin::Color::srgb_hex("303030")),
47+
..BinStyle::default()
48+
});
4649

47-
button.on_mouse_press(MouseButton::Left, move |_button, event_data| {
48-
println!("{:?}", event_data);
49-
});
50+
button.on_press(MouseButton::Left, move |_, window, local| {
51+
println!("{:?} {:?}", window, local);
52+
Default::default()
53+
});
5054

51-
basalt.wait_for_exit().unwrap();
52-
}),
53-
);
55+
basalt.wait_for_exit().unwrap();
56+
}),
57+
);
5458
}

0 commit comments

Comments
 (0)