[][src]Struct basalt::Options

pub struct Options { /* fields omitted */ }

Options for Basalt's creation and operation.

Implementations

impl Options[src]

pub fn app_loop(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(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(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(self, to: bool) -> Self[src]

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

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

Set the inner size of the window to be created

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

Set the title of the window to be created

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

Set the initial scale of the UI

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

Prefer integrated graphics if they are available

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

Add additional instance extensions

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

Add additional device extensions

pub fn composite_alpha(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

impl RefUnwindSafe for Options

impl Send for Options

impl Sync for Options

impl Unpin for Options

impl UnwindSafe for Options

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> SetParameter for T

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.