adding gfx and ui stuff
This commit is contained in:
24
gfx/debug.c
Normal file
24
gfx/debug.c
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "debug.h"
|
||||
|
||||
void printVec3(Vec3 vec) {
|
||||
print(
|
||||
"┌ ┐\n"
|
||||
"│%7.2f%, %7.2f, %7.2f │\n"
|
||||
"└ ┘\n",
|
||||
vec.x, vec.y, vec.z);
|
||||
}
|
||||
|
||||
void printMatrix(Matrix mat) {
|
||||
print(
|
||||
"┌ ┐\n"
|
||||
"│%7.2f%, %7.2f, %7.2f, %7.2f │\n"
|
||||
"│%7.2f%, %7.2f, %7.2f, %7.2f │\n"
|
||||
"│%7.2f%, %7.2f, %7.2f, %7.2f │\n"
|
||||
"│%7.2f%, %7.2f, %7.2f, %7.2f │\n"
|
||||
"└ ┘\n",
|
||||
mat.m0, mat.m1, mat.m2, mat.m3,
|
||||
mat.m4, mat.m5, mat.m6, mat.m7,
|
||||
mat.m8, mat.m9, mat.m10, mat.m11,
|
||||
mat.m12, mat.m13, mat.m14, mat.m15);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user