X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg%2Fvg_platform.h;h=b1986b96d088e26732166a5020c6d6c2602e9d60;hb=5cd0365349b88c7774e0e18c0cad591156512c1f;hp=da9a6adf3def39d5519c202a2f21733f5c752c86;hpb=488d97095bdb3678c0d1c1e844373f47e6903c94;p=fishladder.git diff --git a/vg/vg_platform.h b/vg/vg_platform.h index da9a6ad..b1986b9 100644 --- a/vg/vg_platform.h +++ b/vg/vg_platform.h @@ -11,8 +11,28 @@ typedef int64_t i64; typedef unsigned int uint; -#define vg_min( A, B ) ((A)<(B)?(A):(B)) -#define vg_max( A, B ) ((A)>(B)?(A):(B)) +typedef int v2i[2]; +typedef int v3i[3]; +typedef int v4i[4]; +typedef float v2f[2]; +typedef float v3f[3]; +typedef float v4f[4]; +typedef v2f m2x2f[2]; +typedef v3f m3x3f[3]; +typedef v3f m4x3f[4]; +typedef v3f boxf[2]; + +// Resource types +typedef struct vg_tex2d vg_tex2d; + +struct vg_achievement +{ + int is_set; + const char *name; +}; + +#define vg_static_assert _Static_assert + #define vg_list_size( A ) (sizeof(A)/sizeof(A[0])) // THREADING