logo
pub struct Screen<Ctx> where
    Ctx: Default
{ pub ctx: Ctx, /* private fields */ }
Expand description

A Window to the Screen.

Fields

ctx: Ctx

Implementations

Start the program.

Stop the program.

Switch the run function

Update the clear color of the Window.

Upload a model to the GPU.

Upload a texture to the GPU.

Create gradient object.

Create texture coordinate object.

Set the pixels of a texture to something other than the original.

Make a shape with solid color.

Make a shape with gradient

Make a shape will solid texture.

Make a shape will texture and transparency

Make a shape with texture, and tint (color)

Make a shape with texture, and gradent

Stop drawing a shape.

Apply a matrix transform to a shape.

Call this function when you get a resize event.

Get the width and height of the window.

Update 2D overlay with writer function.

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.