mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -04:00
Replace TODO: with TODO(emilk): and update code guidelines
This commit is contained in:
@@ -83,7 +83,7 @@ fn main() {
|
||||
|
||||
egui_glium.on_event(&event);
|
||||
|
||||
display.gl_window().window().request_redraw(); // TODO: ask egui if the events warrants a repaint instead
|
||||
display.gl_window().window().request_redraw(); // TODO(emilk): ask egui if the events warrants a repaint instead
|
||||
}
|
||||
|
||||
_ => (),
|
||||
|
||||
@@ -64,7 +64,7 @@ fn main() {
|
||||
|
||||
egui_glium.on_event(&event);
|
||||
|
||||
display.gl_window().window().request_redraw(); // TODO: ask egui if the events warrants a repaint instead
|
||||
display.gl_window().window().request_redraw(); // TODO(emilk): ask egui if the events warrants a repaint instead
|
||||
}
|
||||
|
||||
_ => (),
|
||||
|
||||
@@ -133,11 +133,11 @@ impl Painter {
|
||||
|
||||
let vertices: &[Vertex] = bytemuck::cast_slice(&mesh.vertices);
|
||||
|
||||
// TODO: we should probably reuse the [`VertexBuffer`] instead of allocating a new one each frame.
|
||||
// TODO(emilk): we should probably reuse the [`VertexBuffer`] instead of allocating a new one each frame.
|
||||
glium::VertexBuffer::new(display, vertices).unwrap()
|
||||
};
|
||||
|
||||
// TODO: we should probably reuse the [`IndexBuffer`] instead of allocating a new one each frame.
|
||||
// TODO(emilk): we should probably reuse the [`IndexBuffer`] instead of allocating a new one each frame.
|
||||
let index_buffer =
|
||||
glium::IndexBuffer::new(display, PrimitiveType::TrianglesList, &mesh.indices).unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user