26 ImVec2 avail_size) -> ImVec2;
37 ImVec2 avail_size) -> ImVec2;
47 const settings::resolution_settings::resolution& res,
57 ->
const settings::resolution_settings::resolution*;
auto compute_viewport_size(const settings::resolution_settings::resolution &res, ImVec2 avail_size) -> ImVec2
Compute the camera viewport size to use for a resolution preset.
auto get_resolution(rtti::context &ctx, int index) -> const settings::resolution_settings::resolution *
Get the resolution preset at the given index (clamped against the configured presets)....
auto compute_fitted_size(const settings::resolution_settings::resolution &res, ImVec2 avail_size) -> ImVec2
Compute a viewport size that always fits within avail_size by aspect ratio (ignoring any fixed pixel ...
void apply_to_camera(camera_component &camera_comp, const settings::resolution_settings::resolution &res, ImVec2 avail_size)
Apply the resolution preset to the camera component using compute_viewport_size. Only viewport size i...
auto draw_menu(rtti::context &ctx, int ¤t_index) -> bool
Draw the resolution selection drop-down for the current menu bar. The selection is read and written t...