pub struct Context { /* private fields */ }
Expand description

The application context.

Implementations

Returns the window.

Plans the main loop to close.

Calling this function dosn’t guarantee closing. It triggers the close_requested function in the Loop, which can handle the closing event.

Returns the canvas size.

Sets context’s Limits.

Sets context’s frame parameters via FrameParameters struct.

No effect if pixel_size in FrameParameters is 0.

Creates a new texture.

Updates the texture.

Deletes the texture.

Creates new instances.

Updates instances.

Deletes instances.

Creates a new mesh.

Updates the mesh.

Deletes the mesh.

Creates a new view.

Updates the view.

Deletes the view.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.