Initial commit of Ps1Engine project with basic renderer and OBJ/MTL loading functionality. Added CMake configuration, GLFW integration, and basic cube rendering with textures. Included necessary header files and implemented core rendering logic.

This commit is contained in:
ExilProductions
2025-04-23 15:25:04 +02:00
parent 348e03dd39
commit 5ccf861eaa
13 changed files with 929 additions and 7227 deletions

9
Ps1Engine/loader/mesh.h Normal file
View File

@@ -0,0 +1,9 @@
#pragma once
#include <string>
#include <vector>
#include <map>
#include "renderer.h" // includes Vec3, Vec2, Triangle, Color
std::vector<Triangle> load_obj(const std::string& obj_path);
std::map<std::string, Color> load_mtl_colors(const std::string& mtl_path);