#include "raylib.h" #include "raymath.h" // Required for: Vector3, Quaternion and Matrix functionality #include "utils.h" // Required for: TRACELOG(), LoadFileData(), LoadFileText(), SaveFileText() #include #include #include #include "../libvitaboy/libvitaboy.hpp" #define SCREEN_WIDTH (1920) #define SCREEN_HEIGHT (1080) #define WINDOW_TITLE "libvitaboy - Renderer - Ray" //we dont look in this mess for now #pragma region TSO //util static bool Read(const char* Filename, uint8_t** InData) { *InData = File::ReadFile(Filename); if (*InData != NULL) { VBFile.set(*InData, File::FileSize); return true; } return false; } //globals //skeleton static Skeleton_t Skeleton; static void DrawBonesSkeleton(Bone_t& Bone) { const float size = 0.1f; const Vector3 position{Bone.Translation.x, Bone.Translation.y, Bone.Translation.z}; Color color; if(!strcmp(Bone.Name, "ROOT")) { color = RED; } else if(!strcmp(Bone.Name, "HEAD")) { color = YELLOW; } else { color = GREEN; } DrawCube(position, size, size, size, color); if(Bone.ChildrenCount == 1) { DrawBonesSkeleton(*Bone.Children[0]); } else if(Bone.ChildrenCount > 1) { for(unsigned i=0; i