Skip to content

Commit

Permalink
Change Section::default to Section::new to work with alexheretic/…
Browse files Browse the repository at this point in the history
  • Loading branch information
aweinstock314 committed Feb 21, 2023
1 parent ed453a5 commit 7face12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/clipping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ fn main() -> Result<(), Box<dyn Error>> {
text: vec![Text::new("Hello wgpu_glyph!")
.with_color([0.0, 0.0, 0.0, 1.0])
.with_scale(40.0)],
..Section::default()
..Section::new()
});

// Draw the text!
Expand All @@ -159,7 +159,7 @@ fn main() -> Result<(), Box<dyn Error>> {
text: vec![Text::new("Hello wgpu_glyph!")
.with_color([1.0, 1.0, 1.0, 1.0])
.with_scale(40.0)],
..Section::default()
..Section::new()
});

// Draw the text!
Expand Down
4 changes: 2 additions & 2 deletions examples/depth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ fn main() -> Result<(), Box<dyn Error>> {
.with_scale(95.0)
.with_color([0.8, 0.8, 0.8, 1.0])
.with_z(0.9)],
..Section::default()
..Section::new()
});

// Queue background text next.
Expand All @@ -149,7 +149,7 @@ fn main() -> Result<(), Box<dyn Error>> {
.with_scale(30.0)
.with_color([0.05, 0.05, 0.1, 1.0])
.with_z(0.2)],
..Section::default()
..Section::new()
});

// Draw all the text!
Expand Down
4 changes: 2 additions & 2 deletions examples/hello.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ fn main() -> Result<(), Box<dyn Error>> {
.with_color([0.0, 0.0, 0.0, 1.0])
.with_outline_color([1.0, 1.0, 1.0, 1.0])
.with_scale(40.0)],
..Section::default()
..Section::new()
});

glyph_brush.queue(Section {
Expand All @@ -149,7 +149,7 @@ fn main() -> Result<(), Box<dyn Error>> {
.with_color([1.0, 1.0, 1.0, 1.0])
.with_outline_color([0.0, 0.0, 0.0, 1.0])
.with_scale(40.0)],
..Section::default()
..Section::new()
});

// Draw the text!
Expand Down

0 comments on commit 7face12

Please sign in to comment.