|
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
|
UI rendering module for the application. More...
Go to the source code of this file.
Data Structures | |
| struct | KeyboardLayoutConfig |
| struct | AppUIOverlay |
Enumerations | |
| enum | { HISTO_BUCKETS = 256 } |
| enum | HelpMode { HELP_MODE_OFF = 0 , HELP_MODE_KEYBOARD , HELP_MODE_GAMEPAD , HELP_MODE_COUNT } |
| States for the F2 help overlay cycling. More... | |
Functions | |
| void | app_draw_help_overlay (const App *app) |
| Draws the help overlay with keyboard shortcuts. | |
| void | app_draw_gamepad_help_overlay (const App *app) |
| Draws the gamepad help overlay with controller bindings. | |
| void | app_draw_debug_overlay (const App *app) |
| Draws the debug overlay with performance metrics and settings. | |
| void | app_render_ui (const App *app) |
| Main UI rendering entry point. | |
| int | compute_luminance_histogram (const App *app, int *buckets, int size, float *min_lum, float *max_lum) |
| Computes the luminance histogram from current frame data. | |
| void | app_ui_init (AppUIOverlay *overlay) |
| void | app_ui_cleanup (AppUIOverlay *overlay) |
| void | app_ui_update (AppUIOverlay *overlay, double delta_time) |
| void | app_ui_handle_mouse (AppUIOverlay *overlay, double xpos, double ypos, int width, int height) |
Variables | |
| static const float | HELP_PRESS_DURATION = 2.0F |
UI rendering module for the application.
This module handles all UI-related drawing operations, including help overlays, debug information, and luminance statistics.
| enum HelpMode |
| void app_draw_debug_overlay | ( | const App * | app | ) |
Draws the debug overlay with performance metrics and settings.
| app | Pointer to the application state. |
| void app_draw_gamepad_help_overlay | ( | const App * | app | ) |
Draws the gamepad help overlay with controller bindings.
| app | Pointer to the application state. |
| void app_draw_help_overlay | ( | const App * | app | ) |
Draws the help overlay with keyboard shortcuts.
| app | Pointer to the application state. |
| void app_render_ui | ( | const App * | app | ) |
Main UI rendering entry point.
Orchestrates all UI elements (overlays, histograms, loading spinners).
| app | Pointer to the application state. |
| void app_ui_cleanup | ( | AppUIOverlay * | overlay | ) |
| void app_ui_handle_mouse | ( | AppUIOverlay * | overlay, |
| double | xpos, | ||
| double | ypos, | ||
| int | width, | ||
| int | height | ||
| ) |
| void app_ui_init | ( | AppUIOverlay * | overlay | ) |
| void app_ui_update | ( | AppUIOverlay * | overlay, |
| double | delta_time | ||
| ) |
| int compute_luminance_histogram | ( | const App * | app, |
| int * | buckets, | ||
| int | size, | ||
| float * | min_lum, | ||
| float * | max_lum | ||
| ) |
Computes the luminance histogram from current frame data.
Scans the luminance buffer to populate buckets for visualization.
| app | Pointer to the application state. | |
| buckets | Array to fill with histogram data. | |
| size | Number of buckets in the array. | |
| [out] | min_lum | Minimum luminance found in the data. |
| [out] | max_lum | Maximum luminance found in the data. |
|
static |