From 8e08d723ff7a853f2b10dc0f1408911d5801cea8 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Wed, 11 Oct 2023 08:21:10 +1300 Subject: Rewrite phosphor This has been a long-awaited task, the code has been accumulating small changes for a while now. This commit consolidates all these changes in order to make the code more readable and maintainable for the future. Notable changes: - Remove the concept of a ProgramController - Remove all of the dead OpenGL stub code - Update winit to version 28.1, from 27.4 - Use softbuffer for writing pixels to the native display server --- src/program_controller.rs | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 src/program_controller.rs (limited to 'src/program_controller.rs') diff --git a/src/program_controller.rs b/src/program_controller.rs deleted file mode 100644 index 638e5ce..0000000 --- a/src/program_controller.rs +++ /dev/null @@ -1,13 +0,0 @@ -use crate::*; - -pub trait ProgramController { - fn initialise(&mut self) {} - fn on_render(&mut self) {} - fn on_mouse_moved(&mut self, _position: Point) {} - - fn on_process(&mut self, _create_window: &mut dyn FnMut(Box)) {} -} - -/// An empty program controller, for when a program has only one window. -pub struct DefaultProgramController {} -impl ProgramController for DefaultProgramController {} -- cgit v1.2.3-70-g09d2