Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Jun 9, 2024
1 parent 1f7fcad commit 7b02bc5
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[workspace]
members = ["gfx-glyph", "glyph-brush", "layout", "draw-cache"]
resolver = "2"
resolver = "2"
8 changes: 4 additions & 4 deletions gfx-glyph/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ log = "0.4"
cgmath = "0.18"
env_logger = { version = "0.11", default-features = false }
gfx_device_gl = "0.16"
glutin = "0.31"
glutin-winit = "0.4"
old_school_gfx_glutin_ext = "0.32"
glutin = "0.32"
glutin-winit = "0.5"
old_school_gfx_glutin_ext = "0.33"
spin_sleep_util = "0.1"
winit = "0.29"
winit = "0.30"
4 changes: 2 additions & 2 deletions gfx-glyph/examples/depth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn main() -> Result<(), Box<dyn Error>> {
let event_loop = winit::event_loop::EventLoop::new()?;
event_loop.set_control_flow(ControlFlow::Poll);
let title = "gfx_glyph example - resize to see multi-text layout";
let window_builder = winit::window::WindowBuilder::new()
let window_attrs = winit::window::Window::default_attributes()
.with_title(title)
.with_inner_size(winit::dpi::PhysicalSize::new(1024, 576));

Expand All @@ -34,7 +34,7 @@ fn main() -> Result<(), Box<dyn Error>> {
mut color_view,
mut depth_view,
..
} = old_school_gfx_glutin_ext::window_builder(&event_loop, window_builder)
} = old_school_gfx_glutin_ext::window_builder(&event_loop, window_attrs)
.build::<Srgba8, Depth>()?;

let fonts = vec![
Expand Down
4 changes: 2 additions & 2 deletions gfx-glyph/examples/paragraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn main() -> Result<(), Box<dyn Error>> {
event_loop.set_control_flow(ControlFlow::Poll);
let title = "gfx_glyph example - scroll to size, type to modify, ctrl-scroll \
to gpu zoom, ctrl-shift-scroll to gpu rotate";
let window_builder = winit::window::WindowBuilder::new()
let window_attrs = winit::window::Window::default_attributes()
.with_title(title)
.with_inner_size(winit::dpi::PhysicalSize::new(1024, 576));

Expand All @@ -51,7 +51,7 @@ fn main() -> Result<(), Box<dyn Error>> {
mut color_view,
mut depth_view,
..
} = old_school_gfx_glutin_ext::window_builder(&event_loop, window_builder)
} = old_school_gfx_glutin_ext::window_builder(&event_loop, window_attrs)
.build::<Srgba8, Depth>()?;

let font = ab_glyph::FontArc::try_from_slice(include_bytes!("../../fonts/OpenSans-Light.ttf"))?;
Expand Down
4 changes: 2 additions & 2 deletions gfx-glyph/examples/performance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn main() -> Result<(), Box<dyn Error>> {
let event_loop = winit::event_loop::EventLoop::new()?;
event_loop.set_control_flow(ControlFlow::Poll);
let title = "gfx_glyph rendering 30,000 glyphs - scroll to size, type to modify";
let window_builder = winit::window::WindowBuilder::new()
let window_attrs = winit::window::Window::default_attributes()
.with_title(title)
.with_inner_size(winit::dpi::PhysicalSize::new(1024, 576));

Expand All @@ -44,7 +44,7 @@ fn main() -> Result<(), Box<dyn Error>> {
mut color_view,
mut depth_view,
..
} = old_school_gfx_glutin_ext::window_builder(&event_loop, window_builder)
} = old_school_gfx_glutin_ext::window_builder(&event_loop, window_attrs)
.build::<Srgba8, Depth>()?;

let dejavu = FontRef::try_from_slice(include_bytes!("../../fonts/DejaVuSans.ttf"))?;
Expand Down
4 changes: 2 additions & 2 deletions gfx-glyph/examples/pre_positioned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fn main() -> Result<(), Box<dyn Error>> {
let event_loop = winit::event_loop::EventLoop::new()?;
event_loop.set_control_flow(ControlFlow::Poll);
let title = "gfx_glyph example";
let window_builder = winit::window::WindowBuilder::new()
let window_attrs = winit::window::Window::default_attributes()
.with_title(title)
.with_inner_size(winit::dpi::PhysicalSize::new(1024, 576));

Expand All @@ -35,7 +35,7 @@ fn main() -> Result<(), Box<dyn Error>> {
mut color_view,
mut depth_view,
..
} = old_school_gfx_glutin_ext::window_builder(&event_loop, window_builder)
} = old_school_gfx_glutin_ext::window_builder(&event_loop, window_attrs)
.build::<Srgba8, Depth>()?;

let font: &[u8] = include_bytes!("../../fonts/OpenSans-Light.ttf");
Expand Down
4 changes: 2 additions & 2 deletions gfx-glyph/examples/varied.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn main() -> Result<(), Box<dyn Error>> {
let event_loop = winit::event_loop::EventLoop::new()?;
event_loop.set_control_flow(ControlFlow::Poll);
let title = "gfx_glyph example - resize to see multi-text layout";
let window_builder = winit::window::WindowBuilder::new()
let window_attrs = winit::window::Window::default_attributes()
.with_title(title)
.with_inner_size(winit::dpi::PhysicalSize::new(1024, 576));

Expand All @@ -38,7 +38,7 @@ fn main() -> Result<(), Box<dyn Error>> {
mut color_view,
mut depth_view,
..
} = old_school_gfx_glutin_ext::window_builder(&event_loop, window_builder)
} = old_school_gfx_glutin_ext::window_builder(&event_loop, window_attrs)
.build::<Srgba8, Depth>()?;

let font_0 = FontArc::try_from_slice(include_bytes!("../../fonts/DejaVuSans.ttf"))?;
Expand Down
8 changes: 4 additions & 4 deletions glyph-brush/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ approx = "0.5"
criterion = "0.5"
env_logger = { version = "0.11", default-features = false }
gl = "0.14"
glutin = "0.31"
glutin-winit = "0.4"
glutin = "0.32"
glutin-winit = "0.5"
once_cell = "1.3"
raw-window-handle = "0.5"
raw-window-handle = "0.6"
spin_sleep_util = "0.1"
winit = "0.29"
winit = "0.30"

[[bench]]
name = "glyph_brush"
Expand Down
6 changes: 3 additions & 3 deletions glyph-brush/benches/glyph_brush.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ fn continually_modify_end_text_of_1_of_3(c: &mut Criterion) {
let mut brush = GlyphBrushBuilder::using_font(font).build();
let text = LIPSUM;

let string_variants = vec![
let string_variants = [
text.to_owned(),
text.to_owned() + "a",
text.to_owned() + "ab",
Expand Down Expand Up @@ -318,7 +318,7 @@ fn continually_modify_start_text_of_1_of_3(c: &mut Criterion) {
let mut brush = GlyphBrushBuilder::using_font(font).build();
let text = LIPSUM;

let string_variants = vec![
let string_variants = [
text.to_owned(),
"a".to_owned() + text,
"ab".to_owned() + text,
Expand Down Expand Up @@ -364,7 +364,7 @@ fn continually_modify_middle_text_of_1_of_3(c: &mut Criterion) {
ci.next().unwrap().0
};

let string_variants = vec![
let string_variants = [
text.to_owned(),
text[..middle_index].to_owned() + "a" + &text[middle_index..],
text[..middle_index].to_owned() + "ab" + &text[middle_index..],
Expand Down
12 changes: 6 additions & 6 deletions glyph-brush/examples/draw_cache_guts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use glutin::{
use glutin_winit::GlWindow;
use glyph_brush::{ab_glyph::*, *};
use opengl::{GlGlyphTexture, GlTextPipe, Res, Vertex};
use raw_window_handle::HasRawWindowHandle;
use raw_window_handle::HasWindowHandle;
use std::{env, ffi::CString, mem, time::Duration};
use winit::{
event::{ElementState, Event, KeyEvent, MouseScrollDelta, WindowEvent},
Expand Down Expand Up @@ -41,8 +41,8 @@ fn main() -> Res<()> {
events.set_control_flow(ControlFlow::Poll);

let (window, gl_config) = glutin_winit::DisplayBuilder::new()
.with_window_builder(Some(
winit::window::WindowBuilder::new()
.with_window_attributes(Some(
winit::window::Window::default_attributes()
.with_inner_size(winit::dpi::PhysicalSize::new(1024, 576))
.with_title("draw cache example"),
))
Expand All @@ -53,20 +53,20 @@ fn main() -> Res<()> {
})?;

let window = window.unwrap(); // set in display builder
let raw_window_handle = window.raw_window_handle();
let window_handle = window.window_handle()?;
let gl_display = gl_config.display();

let context_attributes = glutin::context::ContextAttributesBuilder::new()
.with_profile(glutin::context::GlProfile::Core)
.with_context_api(glutin::context::ContextApi::OpenGl(Some(
glutin::context::Version::new(3, 2),
)))
.build(Some(raw_window_handle));
.build(Some(window_handle.as_raw()));

let mut dimensions = window.inner_size();

let (gl_surface, gl_ctx) = {
let attrs = window.build_surface_attributes(<_>::default());
let attrs = window.build_surface_attributes(<_>::default())?;
let surface = unsafe { gl_display.create_window_surface(&gl_config, &attrs)? };
let context = unsafe { gl_display.create_context(&gl_config, &context_attributes)? }
.make_current(&surface)?;
Expand Down
12 changes: 6 additions & 6 deletions glyph-brush/examples/opengl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use glutin::{
};
use glutin_winit::GlWindow;
use glyph_brush::{ab_glyph::*, *};
use raw_window_handle::HasRawWindowHandle;
use raw_window_handle::HasWindowHandle;
use std::{
env,
ffi::CString,
Expand Down Expand Up @@ -64,8 +64,8 @@ fn main() -> Res<()> {
events.set_control_flow(ControlFlow::Poll);

let (window, gl_config) = glutin_winit::DisplayBuilder::new()
.with_window_builder(Some(
winit::window::WindowBuilder::new()
.with_window_attributes(Some(
winit::window::Window::default_attributes()
.with_inner_size(winit::dpi::PhysicalSize::new(1024, 576))
.with_title(TITLE),
))
Expand All @@ -76,20 +76,20 @@ fn main() -> Res<()> {
})?;

let window = window.unwrap(); // set in display builder
let raw_window_handle = window.raw_window_handle();
let window_handle = window.window_handle()?;
let gl_display = gl_config.display();

let context_attributes = glutin::context::ContextAttributesBuilder::new()
.with_profile(glutin::context::GlProfile::Core)
.with_context_api(glutin::context::ContextApi::OpenGl(Some(
glutin::context::Version::new(3, 2),
)))
.build(Some(raw_window_handle));
.build(Some(window_handle.as_raw()));

let mut dimensions = window.inner_size();

let (gl_surface, gl_ctx) = {
let attrs = window.build_surface_attributes(<_>::default());
let attrs = window.build_surface_attributes(<_>::default())?;
let surface = unsafe { gl_display.create_window_surface(&gl_config, &attrs)? };
let context = unsafe { gl_display.create_context(&gl_config, &context_attributes)? }
.make_current(&surface)?;
Expand Down

0 comments on commit 7b02bc5

Please sign in to comment.