Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static constexpr default_font_size = 48;
- struct s_ui_options
- {
- int font_id = MY_FONT_0;
- int font_size = default_font_size;
- s_vec4 color;
- };
- static bool ui_button(s_v2 pos, s_ui_options options = {})
- {
- int font_size;
- if(options.font_size != default_font_size)
- {
- font_size = options.font_size;
- }
- else
- {
- font_size = // get last pushed font size
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement