Struct basalt::Options[][src]

pub struct Options { /* fields omitted */ }

Options for Basalt's creation and operation.

Implementations

impl Options[src]

pub fn app_loop(mut self: Self) -> Self[src]

Configure Basalt to run in app mode. The swapchain will be managed by Basalt and all renderering to the swapchain will be done by Basalt. Additional rendering to the swapchain will be unavailable. This is useful for applications that are UI only.

pub fn interface_limit_draw(mut self: Self, to: bool) -> Self[src]

Defaults to true. Limits interface redraws where possible. In the app loop the application will only render frames when there are updates. In an external loop when ItfRenderer is not rendering to the swapchain directly it will avoid redrawing to the interface image if there are no updates needed.

pub fn use_exclusive_fullscreen(mut self: Self, to: bool) -> Self[src]

Defaults to false. Enables the device extension required for exclusive fullscreen. Generally this extension is only present on Windows. Basalt will return an error upon creation if this feature isn't supported. With this option enabled BasaltWindow::enable_fullscreen() will use exclusive fullscreen; otherwise, borderless window will be used.

pub fn ignore_dpi(mut self: Self, to: bool) -> Self[src]

Defaults to false. Ignore dpi hints provided by the platform.

pub fn window_size(mut self: Self, width: u32, height: u32) -> Self[src]

Set the inner size of the window to be created

pub fn title<T: AsRef<str>>(mut self: Self, title: T) -> Self[src]

Set the title of the window to be created

pub fn scale(mut self: Self, to: f32) -> Self[src]

Set the initial scale of the UI

pub fn prefer_integrated_gpu(mut self: Self) -> Self[src]

Prefer integrated graphics if they are available

pub fn instance_ext_union(mut self: Self, ext: &InstanceExtensions) -> Self[src]

Add additional instance extensions

pub fn device_ext_union(mut self: Self, ext: &DeviceExtensions) -> Self[src]

Add additional device extensions

pub fn composite_alpha(mut self: Self, to: CompositeAlpha) -> Self[src]

Set the composite alpha mode used when creating the swapchain. Only effective when using app loop.

Trait Implementations

impl Clone for Options[src]

impl Debug for Options[src]

impl Default for Options[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.