pub type WindowCanvas = Canvas<Window, WindowContext>;
A Canvas that renders to a Window on the screen.
Canvas
Window
pub struct WindowCanvas { /* private fields */ }
Create a new Canvas from the specified sdl2 WindowCanvas that draws to a window on the screen
WindowCanvas