Window with textured polygon

This commit is contained in:
Keavon Chambers
2020-04-26 00:28:13 -07:00
commit b30ee294a6
17 changed files with 2804 additions and 0 deletions
+30
View File
@@ -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);
}