X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=sidebyside;f=vg_log.h;h=7c6ea43c79dd47f6b60a7494eed00aaaaa66db39;hb=40382fa2a3d250ef1e0f1716f3608d0d60e0e655;hp=9f3ae9e0976c0a4bb62bba7dcb9affe2cefc159a;hpb=a7938c00a8c486ad0e2a765c3092017487ba761e;p=vg.git diff --git a/vg_log.h b/vg_log.h index 9f3ae9e..7c6ea43 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