mirror of
https://github.com/GayPizzaSpecifications/padlab.git
synced 2025-08-05 14:11:33 +00:00
Implement functional OpenGL 3.3 renderer
w/ crude batching
This commit is contained in:
@ -12,9 +12,14 @@ set(SOURCES
|
||||
if (USE_OPENGL)
|
||||
include(GL3WHelper)
|
||||
add_gl3w(gl3w)
|
||||
include(BinHelper)
|
||||
bin2h_compile(OUTPUT glslShaders.h TXT vert.glsl frag.glsl)
|
||||
list(APPEND SOURCES ${CMAKE_CURRENT_BINARY_DIR}/glslShaders.h)
|
||||
endif()
|
||||
|
||||
add_executable(${TARGET} ${SOURCES})
|
||||
target_include_directories(${TARGET} PRIVATE
|
||||
$<$<BOOL:${USE_OPENGL}>:${CMAKE_CURRENT_BINARY_DIR}>)
|
||||
target_link_libraries(${TARGET}
|
||||
$<$<PLATFORM_ID:Windows>:SDL2::SDL2main>
|
||||
SDL2::SDL2
|
||||
|
Reference in New Issue
Block a user