[−][src]Struct sdl2_timing::Sdl2Timing
Methods
impl<'a> Sdl2Timing<'a>
[src]
pub fn new_for(
vs: &'a VideoSubsystem,
win: &Window
) -> Result<Sdl2Timing<'a>, String>
[src]
vs: &'a VideoSubsystem,
win: &Window
) -> Result<Sdl2Timing<'a>, String>
pub fn get_us_per_frame(&self) -> u32
[src]
pub fn canvas_present_then_clear(
&mut self,
canvas: &mut Canvas<Window>,
color: Color
)
[src]
&mut self,
canvas: &mut Canvas<Window>,
color: Color
)
It should be called at beginning of the main loop with the display canvas as argument and the color, which should be used to clear the canvas.
pub fn sample(&mut self, name: &'a str) -> (u32, u32)
[src]
pub fn clear(&mut self)
[src]
pub fn us_till_next_frame(&mut self) -> u32
[src]
pub fn output(&self)
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Sdl2Timing<'a>
impl<'a> Send for Sdl2Timing<'a>
impl<'a> Sync for Sdl2Timing<'a>
impl<'a> Unpin for Sdl2Timing<'a>
impl<'a> UnwindSafe for Sdl2Timing<'a>
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,