pub struct ThreadSafeGlfw { /* private fields */ }Expand description
A struct that represents a thread safe handle to a Glfw
Implementations§
Source§impl ThreadSafeGlfw
impl ThreadSafeGlfw
Sourcepub fn from(glfw: &mut Glfw) -> Self
pub fn from(glfw: &mut Glfw) -> Self
Creates a new Glfw wrapper that can be shared between threads
Sourcepub fn set_swap_interval(&mut self, interval: SwapInterval)
pub fn set_swap_interval(&mut self, interval: SwapInterval)
Wrapper function, please refer to Glfw::set_swap_interval
Sourcepub fn extension_supported(&self, extension: &str) -> bool
pub fn extension_supported(&self, extension: &str) -> bool
Wrapper function, please refer to Glfw::extension_supported
Sourcepub fn get_time(&self) -> f64
pub fn get_time(&self) -> f64
Wrapper function, please refer to Glfw::get_time
Sourcepub fn set_time(&mut self, time: f64)
pub fn set_time(&mut self, time: f64)
Wrapper function, please refer to Glfw::set_time
Sourcepub fn vulkan_supported(&self) -> bool
pub fn vulkan_supported(&self) -> bool
Wrapper function, please refer to Glfw::vulkan_supported
Sourcepub fn get_required_instance_extensions(&self) -> Option<Vec<String>>
pub fn get_required_instance_extensions(&self) -> Option<Vec<String>>
Wrapper function, please refer to Glfw::get_required_instance_extensions
Sourcepub fn get_instance_proc_address_raw(
&self,
instance: VkInstance,
procname: &str,
) -> VkProc
pub fn get_instance_proc_address_raw( &self, instance: VkInstance, procname: &str, ) -> VkProc
Wrapper function, please refer to Glfw::get_instance_proc_address_raw
Sourcepub fn get_physical_device_presentation_support_raw(
&self,
instance: VkInstance,
device: VkPhysicalDevice,
queue_family: u32,
) -> bool
pub fn get_physical_device_presentation_support_raw( &self, instance: VkInstance, device: VkPhysicalDevice, queue_family: u32, ) -> bool
Wrapper function, please refer to Glfw::get_physical_device_presentation_support_raw
Sourcepub fn get_timer_value(&self) -> u64
pub fn get_timer_value(&self) -> u64
Wrapper function, please refer to Glfw::get_timer_value
Sourcepub fn get_timer_frequency(&self) -> u64
pub fn get_timer_frequency(&self) -> u64
Wrapper function, please refer to Glfw::get_timer_frequency
Sourcepub fn post_empty_event(&self)
pub fn post_empty_event(&self)
Wrapper function, please refer to Glfw::post_empty_event
Trait Implementations§
Source§impl Debug for ThreadSafeGlfw
impl Debug for ThreadSafeGlfw
impl Send for ThreadSafeGlfw
Auto Trait Implementations§
impl Freeze for ThreadSafeGlfw
impl RefUnwindSafe for ThreadSafeGlfw
impl !Sync for ThreadSafeGlfw
impl Unpin for ThreadSafeGlfw
impl UnwindSafe for ThreadSafeGlfw
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more