pub struct PlatformSync { /* private fields */ }Expand description
Platform Sync - sincronización de frame multiplataforma
Funciones:
xflush(): Forzar flush de comandos X11xsync(): Sincronizar con servidor X11gl_flush(): OpenGL buffer swap
Implementations§
Source§impl PlatformSync
impl PlatformSync
Sourcepub fn new() -> PlatformSync
pub fn new() -> PlatformSync
Crear Platform Sync (auto-detect)
Sourcepub fn set_mode(&mut self, mode: PlatformSyncMode)
pub fn set_mode(&mut self, mode: PlatformSyncMode)
Cambiar modo
Sourcepub fn mode(&self) -> PlatformSyncMode
pub fn mode(&self) -> PlatformSyncMode
Obtener modo actual
Sourcepub fn frame_count(&self) -> u64
pub fn frame_count(&self) -> u64
Frame count actual
Trait Implementations§
Source§impl Default for PlatformSync
impl Default for PlatformSync
Source§fn default() -> PlatformSync
fn default() -> PlatformSync
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PlatformSync
impl RefUnwindSafe for PlatformSync
impl Send for PlatformSync
impl Sync for PlatformSync
impl Unpin for PlatformSync
impl UnsafeUnpin for PlatformSync
impl UnwindSafe for PlatformSync
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
Mutably borrows from an owned value. Read more