[−][src]Struct basalt::Options
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T
[src]
fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
fn is_size_suitable(size: usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,