Rename time/frame_count

This commit is contained in:
Joonas Javanainen 2019-07-02 00:09:33 +03:00
parent 1851dee040
commit 774e336f9c
No known key found for this signature in database
GPG Key ID: D39CCA5CB19B9179

View File

@ -94,10 +94,10 @@ fn test_version() {
} }
impl Context { impl Context {
pub fn get_time(&self) -> f64 { pub fn time(&self) -> f64 {
unsafe { sys::igGetTime() } unsafe { sys::igGetTime() }
} }
pub fn get_frame_count(&self) -> i32 { pub fn frame_count(&self) -> i32 {
unsafe { sys::igGetFrameCount() } unsafe { sys::igGetFrameCount() }
} }
} }
@ -132,10 +132,10 @@ impl<'ui> Ui<'ui> {
pub fn style_color(&self, style_color: StyleColor) -> [f32; 4] { pub fn style_color(&self, style_color: StyleColor) -> [f32; 4] {
self.ctx.style()[style_color] self.ctx.style()[style_color]
} }
pub fn get_time(&self) -> f64 { pub fn time(&self) -> f64 {
unsafe { sys::igGetTime() } unsafe { sys::igGetTime() }
} }
pub fn get_frame_count(&self) -> i32 { pub fn frame_count(&self) -> i32 {
unsafe { sys::igGetFrameCount() } unsafe { sys::igGetFrameCount() }
} }
pub fn render(self) -> &'ui DrawData { pub fn render(self) -> &'ui DrawData {