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:
9
Ps1Engine/loader/mesh.h
Normal file
9
Ps1Engine/loader/mesh.h
Normal 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);
|
||||
Reference in New Issue
Block a user