treballant en postfx

This commit is contained in:
2026-03-21 13:31:42 +01:00
parent 8aad52f33f
commit 2b2eb31c67
11 changed files with 613 additions and 25 deletions

View File

@@ -111,9 +111,17 @@ set(APP_SOURCES
)
# Fuentes del sistema de renderizado
set(RENDERING_SOURCES
source/core/rendering/opengl/opengl_shader.cpp
)
# En macOS usamos SDL3 GPU (Metal), no OpenGL
if(APPLE)
set(RENDERING_SOURCES
source/core/rendering/sdl3gpu/sdl3gpu_shader.cpp
)
else()
set(RENDERING_SOURCES
source/core/rendering/opengl/opengl_shader.cpp
source/core/rendering/sdl3gpu/sdl3gpu_shader.cpp
)
endif()
# Fuentes de debug (solo en modo Debug)
set(DEBUG_SOURCES
@@ -161,8 +169,10 @@ elseif(UNIX AND NOT APPLE)
target_compile_definitions(${PROJECT_NAME} PRIVATE LINUX_BUILD)
endif()
# Configuración común para OpenGL
if(NOT WIN32)
# Configuración común para OpenGL (no requerido en macOS: usamos SDL3 GPU API / Metal)
if(WIN32)
target_link_libraries(${PROJECT_NAME} PRIVATE opengl32)
elseif(NOT APPLE)
find_package(OpenGL REQUIRED)
if(OPENGL_FOUND)
message(STATUS "OpenGL encontrado: ${OPENGL_LIBRARIES}")