new ui stuff

This commit is contained in:
2026-02-08 00:19:25 +01:00
parent e71ba138c0
commit fceac125c5
16 changed files with 687 additions and 503 deletions

28
src/debug.c Normal file
View File

@@ -0,0 +1,28 @@
#include "lib/raymath.h"
#include "lib/djstdlib/core.h"
#include "debug.h"
void printRLVec3(RLVector3* vector) {
RLVector3 vec = *vector;
print(
"┌ ┐\n"
"│%7.2f%, %7.2f, %7.2f │\n"
"└ ┘\n",
vec.x, vec.y, vec.z);
}
void printMatrix(Matrix* matrix) {
Matrix mat = *matrix;
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);
}