Module egui::debug_text

source ยท
Expand description

This is an example of how to create a plugin for egui.

A plugin usually consist of a struct that holds some state, which is stored using Context::data_mut. The plugin registers itself onto a specific Context to get callbacks on certain events (Context::on_begin_frame, Context::on_end_frame).

Structsยง

  • Entry ๐Ÿ”’
  • State ๐Ÿ”’
    A plugin for easily showing debug-text on-screen.

Functionsยง

  • Print this text next to the cursor at the end of the frame.
  • register ๐Ÿ”’
    Register this plugin on the given egui context, so that it will be called every frame.