mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-23 19:38:27 +00:00
Rename time/frame_count
This commit is contained in:
parent
1851dee040
commit
774e336f9c
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user