Struct shadiertoy::Window[][src]

pub struct Window { /* fields omitted */ }

A window that you can draw on.

Methods

impl Window
[src]

Make a new window that runs on the given event loop.

Compile a shader.

Pass the given data to the shader and draw!

Finish the frame.

Handle a resize event, resizing the buffers appropriately.

Load a texture, which can then be passed to the shader.

The corresponding link type is TextureSampler.

Get the size of this window, in pixels.

This is the resolution you should pass to your shaders. The function returns None if the window has already been closed.

Get the raw window handle for this window.

This might be useful for locking the mouse or resizing the window.

Get the encoder for this window.

You probably don't need this.

Get the factory for this window.

You probably don't need this.

Auto Trait Implementations

impl !Send for Window

impl !Sync for Window