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

30
CMakeLists.txt Normal file
View File

@@ -0,0 +1,30 @@
cmake_minimum_required(VERSION 3.10)
# Project name
project(Ps1Engine)
# Set C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
# Include directories
include_directories(${CMAKE_SOURCE_DIR}/renderer)
include_directories(${CMAKE_SOURCE_DIR}/loader)
include_directories(${CMAKE_SOURCE_DIR}/external/stb)
# Source files
set(SOURCES
${CMAKE_SOURCE_DIR}/renderer/renderer.cpp
${CMAKE_SOURCE_DIR}/loader/mesh.cpp
${CMAKE_SOURCE_DIR}/../cube.cpp
)
# Executable
add_executable(Ps1Engine ${SOURCES})
# Link libraries
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
find_package(glfw3 REQUIRED)
target_link_libraries(Ps1Engine OpenGL::GL GLEW::GLEW glfw)