main :: () {
the_window = create_window(window_width, window_height, "Window Creation");
set_render_target(the_window);
quit := false;
while !quit {
update_window_events();
for events_this_frame {
if it.type == .QUIT then quit = true;
if it.type == .KEYBOARD {
if it.key_pressed == 0 continue;
if it.key_code == .ESCAPE {
quit = true;
}
}
}
}
}
#scope_file
#import "Window_Creation";
#import "Input";
the_window: Window_Type;
window_width := 1280;
window_height := 720;