projects
/
fishladder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some maps, update QOI, fix bug/UB with too many fishes
[fishladder.git]
/
vg
/
vg_platform.h
diff --git
a/vg/vg_platform.h
b/vg/vg_platform.h
index da9a6adf3def39d5519c202a2f21733f5c752c86..24882841f007746d2d1642538fa904936f6bbda8 100644
(file)
--- a/
vg/vg_platform.h
+++ b/
vg/vg_platform.h
@@
-11,8
+11,22
@@
typedef int64_t i64;
typedef unsigned int uint;
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;
+
+#define vg_static_assert _Static_assert
+
#define vg_list_size( A ) (sizeof(A)/sizeof(A[0]))
// THREADING
#define vg_list_size( A ) (sizeof(A)/sizeof(A[0]))
// THREADING