mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-24 13:48:12 +08:00
Window with textured polygon
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
mod application;
|
||||
mod gui_rect;
|
||||
mod pipeline;
|
||||
mod program_state;
|
||||
mod texture;
|
||||
mod color_palette;
|
||||
mod shader_cache;
|
||||
|
||||
use application::Application;
|
||||
use winit::event_loop::EventLoop;
|
||||
use winit::window::WindowBuilder;
|
||||
|
||||
fn main() {
|
||||
// Handles all window events, user input, and redraws
|
||||
let event_loop = EventLoop::new();
|
||||
|
||||
// Application window in the operating system
|
||||
let window = WindowBuilder::new().with_title("Graphite").build(&event_loop).unwrap();
|
||||
|
||||
// Initialize the render pipeline
|
||||
let mut app = Application::new(&window);
|
||||
app.example();
|
||||
|
||||
// State managers for render pipeline and program logic
|
||||
// let app_render_state = RenderState::new(&mut app);
|
||||
// let app_program_state = ProgramState::new(&mut app);
|
||||
|
||||
// Begin the application lifecycle
|
||||
app.begin_lifecycle(event_loop, window);
|
||||
}
|
||||
Reference in New Issue
Block a user