Added splashpack parser, made renderer a singleton

This commit is contained in:
2025-03-21 17:54:25 +01:00
parent 4b7389da8d
commit 0d46881d7f
8 changed files with 121 additions and 44 deletions

View File

@@ -1,6 +1,6 @@
#pragma once
#include "psyqo/trigonometry.hh"
#include "psyqo/matrix.hh"
#include "psyqo/vector.hh"
#include "mesh.hh"
@@ -9,9 +9,13 @@ namespace psxsplash {
class GameObject final {
public:
psyqo::Vec3 m_pos;
psyqo::Angle m_rot[3];
Mesh m_mesh;
bool m_is_static;
psyqo::Vec3 position;
psyqo::Matrix33 rotation;
psyqo::PrimPieces::TPageAttr texture;
uint16_t polyCount;
union {
Tri *polygons;
uint32_t polygonsOffset;
};
};
} // namespace psxsplash