From b84642374b34cf634c60d410d8df39549252638e Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 21 Sep 2020 19:23:22 +0200 Subject: [PATCH] [docs] improve README.md section about writing your own backends --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 417311b9..2821320c 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ The same code can be compiled to a native app or a web app. ### Writing your own Egui backend -You need to collect `egui::RawInput`, paint `egui::PaintJobs` and handle `egui::Output`. The basic structure is this: +You need to collect [`egui::RawInput`](https://docs.rs/egui/latest/egui/struct.RawInput.html), paint [`egui::PaintJobs`](https://docs.rs/egui/latest/egui/paint/tessellator/type.PaintJobs.html) and handle [`egui::Output`](https://docs.rs/egui/latest/egui/struct.Output.html). The basic structure is this: ``` rust let mut egui_ctx = egui::Context::new(); @@ -142,6 +142,8 @@ loop { } ``` +For a reference OpenGL backend, [see the `egui_glium` painter](https://github.com/emilk/egui/blob/master/egui_glium/src/painter.rs). + #### Debugging your backend #### My text is blurry