Small fixes to ps2 maze

This commit is contained in:
Carlos Sanchez 2024-09-07 12:03:13 -04:00
parent cd74a29aba
commit 9aa3aefc53

View File

@ -3,7 +3,6 @@
// #define H3DEBUG_NOCLIPPING // #define H3DEBUG_NOCLIPPING
// #define H3DEBUG_SKIPTRIPIX // #define H3DEBUG_SKIPTRIPIX
#define H3D_VOLATILE_FLOATS #define H3D_VOLATILE_FLOATS
// #include <SDL2/SDL_video.h>
#define MATHC_USE_UNIONS #define MATHC_USE_UNIONS
#define MATHC_NO_STRUCT_FUNCTIONS #define MATHC_NO_STRUCT_FUNCTIONS
#include "../haloo3d/lib/mathc.c" #include "../haloo3d/lib/mathc.c"
@ -12,7 +11,6 @@
#include "../haloo3d/haloo3d.c" #include "../haloo3d/haloo3d.c"
#include "../haloo3d/haloo3dex_easy.c" #include "../haloo3d/haloo3dex_easy.c"
#include "../haloo3d/haloo3dex_gen.c" #include "../haloo3d/haloo3dex_gen.c"
//#include "../haloo3d/haloo3dex_img.c"
#include "../haloo3d/haloo3dex_obj.c" #include "../haloo3d/haloo3dex_obj.c"
#include "../haloo3d/haloo3dex_print.c" #include "../haloo3d/haloo3dex_print.c"
// clang-format on // clang-format on
@ -25,7 +23,6 @@
#include "SDL2/SDL.h" #include "SDL2/SDL.h"
#include "../ecs2.h" #include "../ecs2.h"
// #include "keys.h"
#include "../maze_ecstypes.h" #include "../maze_ecstypes.h"
#include <stdlib.h> #include <stdlib.h>
@ -1094,6 +1091,7 @@ int main() { // int argc, char **argv) {
haloo3d_easyrender_init(&render, WIDTH, HEIGHT); haloo3d_easyrender_init(&render, WIDTH, HEIGHT);
render.camera.pos.y = 0.5; render.camera.pos.y = 0.5;
render.tprint.fb = &screen; render.tprint.fb = &screen;
render.tprint.bcolor = 0x8000; // Because ps2 is A1B5G5R5
render.autolightfix = 1; render.autolightfix = 1;
render.rendersettings.ditherclose = DITHERSTART; render.rendersettings.ditherclose = DITHERSTART;
render.rendersettings.ditherfar = DITHEREND; render.rendersettings.ditherfar = DITHEREND;
@ -1340,7 +1338,7 @@ int main() { // int argc, char **argv) {
haloo3d_print( haloo3d_print(
&render.tprint, &render.tprint,
"\n\n Pframe: %05.2f (%05.2f)\n MinMax: %05.2f / %05.2f\n PSDLFl: " "\n Pframe: %05.2f (%05.2f)\n MinMax: %05.2f / %05.2f\n PSDLFl: "
"%05.2f (%05.2f)\n Fill: %05.2f " "%05.2f (%05.2f)\n Fill: %05.2f "
"(%05.2f)\n Logic: %05.2f (%05.2f)\n Tris: %d / %d\n Verts: " "(%05.2f)\n Logic: %05.2f (%05.2f)\n Tris: %d / %d\n Verts: "
"%d\n WState: %d", "%d\n WState: %d",