### Install Oculante on NetBSD Source: https://github.com/woelper/oculante/blob/master/README.md Install Oculante using pkgin on NetBSD. ```sh pkgin install oculante ``` -------------------------------- ### Install Oculante on openSUSE Source: https://github.com/woelper/oculante/blob/master/README.md Install Oculante using zypper on openSUSE. ```sh zypper install oculante ``` -------------------------------- ### Install Oculante on FreeBSD Source: https://github.com/woelper/oculante/blob/master/README.md Install Oculante using pkg on FreeBSD. ```sh pkg install oculante ``` -------------------------------- ### Install Oculante via Flatpak Source: https://github.com/woelper/oculante/blob/master/README.md Install Oculante using Flatpak. ```sh flatpak install flathub io.github.woelper.Oculante ``` -------------------------------- ### Install Oculante via Cargo Source: https://github.com/woelper/oculante/blob/master/README.md Use this command to install Oculante if you have Cargo installed. ```sh cargo install oculante ``` -------------------------------- ### Install Oculante on Windows via Scoop Source: https://github.com/woelper/oculante/blob/master/README.md Install Oculante using Scoop on Windows. ```sh scoop install extras/oculante ``` -------------------------------- ### Install Oculante on Arch Linux Source: https://github.com/woelper/oculante/blob/master/README.md Install Oculante using pacman on Arch Linux. ```sh pacman -S oculante ``` -------------------------------- ### Install Build Dependencies on Linux (Debian) Source: https://github.com/woelper/oculante/blob/master/README.md Install necessary development libraries for building Oculante on Debian-based Linux systems. ```sh sudo apt-get install libxcb-shape0-dev libxcb-xfixes0-dev libgtk-3-dev libasound2-dev nasm cmake ``` -------------------------------- ### Install Oculante-git on Arch Linux Source: https://github.com/woelper/oculante/blob/master/README.md Install the git version of Oculante using paru on Arch Linux. ```sh paru -S oculante-git ``` -------------------------------- ### Install Oculante on NixOS Source: https://github.com/woelper/oculante/blob/master/README.md Add Oculante to your system packages in NixOS configuration. ```nix environment.systemPackages = [ pkgs.oculante ]; ``` -------------------------------- ### Normal Modal Usage in egui Source: https://github.com/woelper/oculante/blob/master/egui-modal-diag/README.md Demonstrates how to create and display a standard modal window. Call `Modal::new` every frame and use `modal.open()` to show it. The content is defined within the `modal.show()` closure. ```rust /* calling every frame */ let modal = Modal::new(ctx, "my_modal"); // What goes inside the modal modal.show(|ui| { // these helper functions help set the ui based on the modal's // set style, but they are not required and you can put whatever // ui you want inside [`.show()`] modal.title(ui, "Hello world!"); modal.frame(ui, |ui| { modal.body(ui, "This is a modal."); }); modal.buttons(ui, |ui| { // After clicking, the modal is automatically closed if modal.button(ui, "close").clicked() { println!("Hello world!") }; }); }); if ui.button("Open the modal").clicked() { // Show the modal modal.open(); } ``` -------------------------------- ### Dialog Modal Usage in egui Source: https://github.com/woelper/oculante/blob/master/egui-modal-diag/README.md Illustrates how to use modals as dialogs, which can be styled and opened as a one-time action. This is useful for displaying results or confirmations. ```rust /* calling every frame */ let modal = Modal::new(ctx, "my_dialog"); ... ... ... // Show the dialog modal.show_dialog(); ``` ```rust /* happens once */ if let Ok(data) = my_function() { modal.dialog() .with_title("my_function's result is...") .with_body("my_function was successful!") .with_icon(Icon::Success) .open() } ``` -------------------------------- ### Set SHADERC_LIB_DIR on macOS Source: https://github.com/woelper/oculante/blob/master/README.md Set this environment variable when building Oculante on macOS if needed. ```sh export SHADERC_LIB_DIR=/opt/homebrew/lib ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.