4a95407d0e
- cpp/functions/gfx/gl_loader.{h,cpp,md}: mini loader para OpenGL 2.0+
(Linux no-op via GL_GLEXT_PROTOTYPES, Windows wglGetProcAddress)
- Portar gl_shader/gl_framebuffer/fullscreen_quad/shader_canvas al loader
- CMakeLists: WIN32_EXECUTABLE para lanzar sin consola en Windows
- apps/shaders_lab/shaders_lab.exe: binario PE32+ precompilado
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
18 lines
612 B
CMake
18 lines
612 B
CMake
add_imgui_app(shaders_lab
|
|
main.cpp
|
|
${CMAKE_SOURCE_DIR}/functions/gfx/gl_loader.cpp
|
|
${CMAKE_SOURCE_DIR}/functions/gfx/gl_shader.cpp
|
|
${CMAKE_SOURCE_DIR}/functions/gfx/gl_framebuffer.cpp
|
|
${CMAKE_SOURCE_DIR}/functions/gfx/fullscreen_quad.cpp
|
|
${CMAKE_SOURCE_DIR}/functions/gfx/shader_canvas.cpp
|
|
${CMAKE_SOURCE_DIR}/functions/core/fps_overlay.cpp
|
|
)
|
|
target_include_directories(shaders_lab PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
if(WIN32)
|
|
# GUI app: sin consola al lanzar (subsystem:windows / -mwindows)
|
|
set_target_properties(shaders_lab PROPERTIES WIN32_EXECUTABLE TRUE)
|
|
endif()
|