1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -04:00

Register callbacks with Context::on_begin_frame and on_end_frame. (#3886)

This can be useful for creating simple plugins for egui.

The state can be stored in the egui data store, or by the user.

An example plugin for painting debug text on screen is provided.
This commit is contained in:
Emil Ernerfeldt
2024-01-25 12:33:42 +01:00
committed by GitHub
parent e3cfcf7d2e
commit d190df7d25
6 changed files with 236 additions and 85 deletions

View File

@@ -68,7 +68,7 @@ need_stdout = true
[keybindings]
i = "job:initial"
c = "job:cranky"
w = "job:wasm"
a = "job:wasm"
d = "job:doc-open"
t = "job:test"
r = "job:run"