X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_log.h;h=04390697f06be444833a5574651c43ef41674ab1;hb=5324992ccec2857770963843fcdb6e44ce2c1a37;hp=9f3ae9e0976c0a4bb62bba7dcb9affe2cefc159a;hpb=a7938c00a8c486ad0e2a765c3092017487ba761e;p=vg.git diff --git a/vg_log.h b/vg_log.h index 9f3ae9e..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 @@ -34,10 +38,8 @@ void _vg_console_append_to_log( const char *str ) char *dest = vg_log.buffer[ vg_log.buffer_line_current ++ ]; - for( int i=0; i