X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_log.h;h=04390697f06be444833a5574651c43ef41674ab1;hb=5324992ccec2857770963843fcdb6e44ce2c1a37;hp=dfb4fc91f8d4851be6fc34ca06dd4da5e4057144;hpb=4c48fe01a5d1983be89b7dce6f08e6b708cfbb05;p=vg.git diff --git a/vg_log.h b/vg_log.h index dfb4fc9..0439069 100644 --- a/vg_log.h +++ b/vg_log.h @@ -16,6 +16,10 @@ #define KCYN "\x1B[36m" #define KWHT "\x1B[37m" +#define PRINTF_v2f( V2 ) "%.4f %.4f\n", V2[0], V2[1] +#define PRINTF_v3f( V3 ) "%.4f %.4f %.4f\n", V3[0], V3[1], V3[2] +#define PRINTF_v4f( V4 ) "%.4f %.4f %.4f %.4f\n", V4[0], V4[1], V4[2], V4[3] + #ifdef VG_GAME static SDL_SpinLock log_print_sl; #endif @@ -27,17 +31,15 @@ struct vg_log } static vg_log; -void vg_console_append_to_log( const char *str ) +void _vg_console_append_to_log( const char *str ) { if( vg_log.buffer_line_count < vg_list_size( vg_log.buffer ) ) vg_log.buffer_line_count ++; char *dest = vg_log.buffer[ vg_log.buffer_line_current ++ ]; - for( int i=0; i