forked from jaildesigner-jailgames/jaildoctors_dilemma
treballant en postfx
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user