Shows what was drawn to window. Anything still batched is drawn first.
- vsync: waits for the display's next refresh before showing the frame. On by default.
#import "Window_Creation";
window := create_window(800, 600, "simp");
set_render_target(window);
clear_render_target(0, 0, 0, 1);
swap_buffers(window);This one is only checked to compile, not run.
swap_buffers :: (window: Window_Type, vsync := true)
Shows what was drawn to window. Anything still batched is drawn first.
Parameters
- window: Window_Type
- vsync := true
- waits for the display's next refresh before showing the frame. On by default.
#import "Window_Creation";
window := create_window(800, 600, "simp");
set_render_target(window);
clear_render_target(0, 0, 0, 1);
swap_buffers(window);This one is only checked to compile, not run.