Type Definition simple_game_engine::canvas::WindowCanvas[][src]

type WindowCanvas = Canvas<Window, WindowContext>;

A Canvas that renders to a Window on the screen.

Implementations

impl WindowCanvas[src]

pub fn new(inner: SdlCanvas<Window>) -> Self[src]

Create a new Canvas from the specified sdl2 WindowCanvas that draws to a window on the screen