From e27f4c6d6d6bf7ae6b7592d6dfdc67ee16214009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Tue, 10 Nov 2020 19:20:03 +0100 Subject: [PATCH 1/5] Update `bytemuck` dependency --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index eac10a8..267c17b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ readme = "README.md" glow = "0.5" glyph_brush = "0.7" log = "0.4" -bytemuck = "1.2" +bytemuck = "1.4" [dev-dependencies] glutin = "0.24" From 44d18b16284a7a198783b61f16661b08e8f426b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Tue, 10 Nov 2020 19:20:43 +0100 Subject: [PATCH 2/5] Update `glutin` dev-dependency --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 267c17b..d217a75 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,5 +17,5 @@ log = "0.4" bytemuck = "1.4" [dev-dependencies] -glutin = "0.24" +glutin = "0.25" env_logger = "0.7" From 131a45a6e81a55401f42db300b83351847ffa7b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Tue, 10 Nov 2020 19:21:09 +0100 Subject: [PATCH 3/5] Update `env_logger` dev-dependency --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d217a75..300102d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,4 +18,4 @@ bytemuck = "1.4" [dev-dependencies] glutin = "0.25" -env_logger = "0.7" +env_logger = "0.8" From acde52281e401d7caa771cdfcc07c69bfdd52d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Tue, 10 Nov 2020 19:23:10 +0100 Subject: [PATCH 4/5] Update `glow` dependency --- Cargo.toml | 2 +- examples/clipping.rs | 12 +++++++----- examples/hello.rs | 12 +++++++----- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 300102d..46c085d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ documentation = "https://docs.rs/glow_glyph" readme = "README.md" [dependencies] -glow = "0.5" +glow = "0.6" glyph_brush = "0.7" log = "0.4" bytemuck = "1.4" diff --git a/examples/clipping.rs b/examples/clipping.rs index 0fbe042..26c430b 100644 --- a/examples/clipping.rs +++ b/examples/clipping.rs @@ -22,9 +22,11 @@ fn main() -> Result<(), Box> { let mut size = context.window().inner_size(); // Initialize OpenGL - let gl = glow::Context::from_loader_function(|s| { - context.get_proc_address(s) as *const _ - }); + let gl = unsafe { + glow::Context::from_loader_function(|s| { + context.get_proc_address(s) as *const _ + }) + }; // Prepare glyph_brush let inconsolata = ab_glyph::FontArc::try_from_slice(include_bytes!( @@ -71,7 +73,7 @@ fn main() -> Result<(), Box> { screen_position: (30.0, 30.0), bounds: (size.width as f32, size.height as f32), text: vec![Text::default() - .with_text("Hello wgpu_glyph!") + .with_text("Hello glow_glyph!") .with_color([0.0, 0.0, 0.0, 1.0]) .with_scale(40.0)], ..Section::default() @@ -85,7 +87,7 @@ fn main() -> Result<(), Box> { screen_position: (30.0, 90.0), bounds: (size.width as f32, size.height as f32), text: vec![Text::default() - .with_text("Hello wgpu_glyph!") + .with_text("Hello glow_glyph!") .with_color([1.0, 1.0, 1.0, 1.0]) .with_scale(40.0)], ..Section::default() diff --git a/examples/hello.rs b/examples/hello.rs index 3be4979..cc9eaa9 100644 --- a/examples/hello.rs +++ b/examples/hello.rs @@ -22,9 +22,11 @@ fn main() -> Result<(), Box> { let mut size = context.window().inner_size(); // Initialize OpenGL - let gl = glow::Context::from_loader_function(|s| { - context.get_proc_address(s) as *const _ - }); + let gl = unsafe { + glow::Context::from_loader_function(|s| { + context.get_proc_address(s) as *const _ + }) + }; // Prepare glyph_brush let inconsolata = ab_glyph::FontArc::try_from_slice(include_bytes!( @@ -77,7 +79,7 @@ fn main() -> Result<(), Box> { screen_position: (30.0, 30.0), bounds: (size.width as f32, size.height as f32), text: vec![Text::default() - .with_text("Hello wgpu_glyph!") + .with_text("Hello glow_glyph!") .with_color([0.0, 0.0, 0.0, 1.0]) .with_scale(40.0)], ..Section::default() @@ -87,7 +89,7 @@ fn main() -> Result<(), Box> { screen_position: (30.0, 90.0), bounds: (size.width as f32, size.height as f32), text: vec![Text::default() - .with_text("Hello wgpu_glyph!") + .with_text("Hello glow_glyph!") .with_color([1.0, 1.0, 1.0, 1.0]) .with_scale(40.0)], ..Section::default() From 77c667286104b25491252ff289816691e45a0aa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Tue, 10 Nov 2020 19:27:29 +0100 Subject: [PATCH 5/5] Update `CHANGELOG` --- CHANGELOG.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 492708b..1a43dbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.4.0] - 2020-11-10 +### Changed +- `glow` updated to `0.6`. [#3] +- `bytemuck` updated to `1.4`. [#3] + +[#3]: https://github.com/hecrj/glow_glyph/pull/3 + ## [0.3.0] - 2020-07-27 ### Changed - `glow` updated to `0.5`. [#2] @@ -29,7 +36,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - First release! :tada: -[Unreleased]: https://github.com/hecrj/glow_glyph/compare/0.3.0...HEAD +[Unreleased]: https://github.com/hecrj/glow_glyph/compare/0.4.0...HEAD +[0.4.0]: https://github.com/hecrj/glow_glyph/compare/0.3.0...0.4.0 [0.3.0]: https://github.com/hecrj/glow_glyph/compare/0.2.1...0.3.0 [0.2.1]: https://github.com/hecrj/glow_glyph/compare/0.2.0...0.2.1 [0.2.0]: https://github.com/hecrj/glow_glyph/compare/0.1.0...0.2.0