Struct basalt::Options [−][src]
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
Auto Trait Implementations
impl RefUnwindSafe for Options
[src]
impl Send for Options
[src]
impl Sync for Options
[src]
impl Unpin for Options
[src]
impl UnwindSafe for Options
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T
[src]
pub fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
pub fn is_size_suitable(size: usize) -> bool
[src]
pub 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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,