new ui stuff
This commit is contained in:
28
src/debug.c
Normal file
28
src/debug.c
Normal 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user