From: hgn Date: Thu, 7 Sep 2023 20:23:23 +0000 (+0100) Subject: font source file X-Git-Url: https://harrygodden.com/git/?p=vg.git;a=commitdiff_plain;h=6fe81f4dfad8fc1a51d151989a534d54749c88e8 font source file --- diff --git a/src/fonts/vg_font_thin.xcf b/src/fonts/vg_font_thin.xcf new file mode 100644 index 0000000..a247fcf Binary files /dev/null and b/src/fonts/vg_font_thin.xcf differ diff --git a/vg_imgui.h b/vg_imgui.h index b624e7f..8938acb 100644 --- a/vg_imgui.h +++ b/vg_imgui.h @@ -408,6 +408,19 @@ VG_STATIC void _vg_ui_init(void) } data++; } + +#if 0 + for( u32 y=1; y<256; y++ ){ + for( u32 x=0; x<256; x++ ){ + u32 above = (y-1)*256 + x, + below = y*256+x; + + if( (image[ below ] == 0) && (image[ above ] == 255) ){ + image[ below ] = 128; + } + } + } +#endif glGenTextures( 1, &vg_ui.tex_glyphs ); glBindTexture( GL_TEXTURE_2D, vg_ui.tex_glyphs ); @@ -1198,6 +1211,13 @@ static void ui_standard_widget( ui_rect inout_panel, ui_rect out_rect ){ k_ui_padding, out_rect, inout_panel ); } +static void ui_panel( ui_rect in_rect, ui_rect out_panel ){ + ui_fill( in_rect, ui_colour( k_ui_bg+1 ) ); + ui_outline( in_rect, 1, ui_colour( k_ui_bg+7 ) ); + rect_copy( in_rect, out_panel ); + ui_rect_pad( out_panel, (ui_px[2]){ k_ui_padding, k_ui_padding } ); +} + /* * checkbox * -----------------------------------------------------------------------------