Skip to content

Commit

Permalink
Tweak example App drop order
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic committed Jun 29, 2024
1 parent 0697ced commit 2927d71
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions gfx-glyph/examples/depth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ impl winit::application::ApplicationHandler for WinitApp {
}

struct App {
window: winit::window::Window,
gl_surface: glutin::surface::Surface<glutin::surface::WindowSurface>,
gl_context: glutin::context::PossiblyCurrentContext,
device: gfx_device_gl::Device,
encoder: gfx::Encoder<gfx_device_gl::Resources, gfx_device_gl::CommandBuffer>,
color_view: gfx::handle::RenderTargetView<gfx_device_gl::Resources, Srgba8>,
Expand All @@ -64,6 +61,9 @@ struct App {
view_size: PhysicalSize<u32>,
interval: spin_sleep_util::Interval,
reporter: spin_sleep_util::RateReporter,
gl_surface: glutin::surface::Surface<glutin::surface::WindowSurface>,
gl_context: glutin::context::PossiblyCurrentContext,
window: winit::window::Window,
}

impl App {
Expand Down
6 changes: 3 additions & 3 deletions gfx-glyph/examples/paragraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ impl winit::application::ApplicationHandler for WinitApp {
}

struct App {
window: winit::window::Window,
gl_surface: glutin::surface::Surface<glutin::surface::WindowSurface>,
gl_context: glutin::context::PossiblyCurrentContext,
device: gfx_device_gl::Device,
encoder: gfx::Encoder<gfx_device_gl::Resources, gfx_device_gl::CommandBuffer>,
color_view: gfx::handle::RenderTargetView<gfx_device_gl::Resources, Srgba8>,
Expand All @@ -85,6 +82,9 @@ struct App {
font_size: f32,
zoom: f32,
angle: f32,
gl_surface: glutin::surface::Surface<glutin::surface::WindowSurface>,
gl_context: glutin::context::PossiblyCurrentContext,
window: winit::window::Window,
}

impl App {
Expand Down
6 changes: 3 additions & 3 deletions gfx-glyph/examples/performance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ impl winit::application::ApplicationHandler for WinitApp {
}

struct App {
window: winit::window::Window,
gl_surface: glutin::surface::Surface<glutin::surface::WindowSurface>,
gl_context: glutin::context::PossiblyCurrentContext,
device: gfx_device_gl::Device,
encoder: gfx::Encoder<gfx_device_gl::Resources, gfx_device_gl::CommandBuffer>,
color_view: gfx::handle::RenderTargetView<gfx_device_gl::Resources, Srgba8>,
Expand All @@ -75,6 +72,9 @@ struct App {
reporter: spin_sleep_util::RateReporter,
text: String,
font_size: f32,
gl_surface: glutin::surface::Surface<glutin::surface::WindowSurface>,
gl_context: glutin::context::PossiblyCurrentContext,
window: winit::window::Window,
}

impl App {
Expand Down
6 changes: 3 additions & 3 deletions gfx-glyph/examples/pre_positioned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ impl winit::application::ApplicationHandler for WinitApp {
}

struct App {
window: winit::window::Window,
gl_surface: glutin::surface::Surface<glutin::surface::WindowSurface>,
gl_context: glutin::context::PossiblyCurrentContext,
device: gfx_device_gl::Device,
encoder: gfx::Encoder<gfx_device_gl::Resources, gfx_device_gl::CommandBuffer>,
color_view: gfx::handle::RenderTargetView<gfx_device_gl::Resources, Srgba8>,
Expand All @@ -69,6 +66,9 @@ struct App {
glyphs: Vec<SectionGlyph>,
width: f32,
height: f32,
gl_surface: glutin::surface::Surface<glutin::surface::WindowSurface>,
gl_context: glutin::context::PossiblyCurrentContext,
window: winit::window::Window,
}

impl App {
Expand Down
6 changes: 3 additions & 3 deletions gfx-glyph/examples/varied.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ impl winit::application::ApplicationHandler for WinitApp {
}

struct App {
window: winit::window::Window,
gl_surface: glutin::surface::Surface<glutin::surface::WindowSurface>,
gl_context: glutin::context::PossiblyCurrentContext,
device: gfx_device_gl::Device,
encoder: gfx::Encoder<gfx_device_gl::Resources, gfx_device_gl::CommandBuffer>,
color_view: gfx::handle::RenderTargetView<gfx_device_gl::Resources, Srgba8>,
Expand All @@ -72,6 +69,9 @@ struct App {
italic_font: FontId,
serif_font: FontId,
mono_font: FontId,
gl_surface: glutin::surface::Surface<glutin::surface::WindowSurface>,
gl_context: glutin::context::PossiblyCurrentContext,
window: winit::window::Window,
}

impl App {
Expand Down
6 changes: 3 additions & 3 deletions glyph-brush/examples/draw_cache_guts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ impl winit::application::ApplicationHandler for WinitApp {
}

struct App {
window: Window,
gl_surface: Surface<WindowSurface>,
gl_ctx: PossiblyCurrentContext,
glyph_brush: GlyphBrush<Vertex, Extra, FontRef<'static>>,
texture: GlGlyphTexture,
text_pipe: GlTextPipe,
Expand All @@ -90,6 +87,9 @@ struct App {
dimensions: PhysicalSize<u32>,
fps: f64,
title: String,
gl_surface: Surface<WindowSurface>,
gl_ctx: PossiblyCurrentContext,
window: Window,
}

impl App {
Expand Down
6 changes: 3 additions & 3 deletions glyph-brush/examples/opengl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ impl winit::application::ApplicationHandler for WinitApp {
}

struct App {
window: Window,
gl_surface: Surface<WindowSurface>,
gl_ctx: PossiblyCurrentContext,
glyph_brush: GlyphBrush<Vertex, Extra, FontRef<'static>>,
texture: GlGlyphTexture,
text_pipe: GlTextPipe,
Expand All @@ -109,6 +106,9 @@ struct App {
reporter: spin_sleep_util::RateReporter,
max_image_dimension: u32,
dimensions: PhysicalSize<u32>,
gl_surface: Surface<WindowSurface>,
gl_ctx: PossiblyCurrentContext,
window: Window,
}

impl App {
Expand Down

0 comments on commit 2927d71

Please sign in to comment.