Struct pix_engine::core::engine::PixEngineBuilder[][src]

pub struct PixEngineBuilder { /* fields omitted */ }
Expand description

Builds a PixEngine instance by providing several configration functions.

Implementations

Constructs a PixEngineBuilder.

Set a window title.

Set a True-Type Font for text rendering.

Set a window icon.

Set the temporary directory for extraction of static library assets.

Position the window at the given (x, y) coordinates of the display.

Position the window in the center of the display.

Set window dimensions.

Scales the window.

Set audio sample rate.

Start window in fullscreen mode.

Enable VSync.

Allow window resizing.

Removes the window decoration.

Enables high-DPI on displays that support it.

Starts engine with window hidden.

Enable average frame rate (FPS) in title.

Set a target frame rate to render at, controls how often on_update is called.

Convert PixEngineBuilder to a PixEngine instance.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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

Performs the conversion.

Performs the conversion.

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.