Files
somaesque-native/src/debug.c
2026-02-08 23:00:31 +01:00

27 lines
794 B
C

#include "lib/raymath.h"
#include "lib/djstdlib/core.h"
#include "debug.h"
void printRLVec3(RLVector3 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);
}