Skip to content

Commit

Permalink
Add FBO build option
Browse files Browse the repository at this point in the history
  • Loading branch information
drfiemost authored and thrimbor committed Nov 7, 2020
1 parent cfbbf57 commit 3808399
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Hurrican/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ set(HURRICAN_SOURCES
src/bosses/Boss_Ufo.hpp
src/bosses/Boss_WuxeSpinnen.cpp
src/bosses/Boss_WuxeSpinnen.hpp
src/SDLPort/cfbo.cpp
src/SDLPort/cfbo.hpp
src/SDLPort/cshader.cpp
src/SDLPort/cshader.hpp
src/SDLPort/keymap.hpp
Expand Down Expand Up @@ -408,6 +406,14 @@ elseif(RENDERER STREQUAL "GL2")
add_definitions(-DUSE_GL2)
endif()

OPTION(FBO "FBO support (allow screen to be scaled to arbitrary dimensions)" OFF)
IF(FBO)
ADD_DEFINITIONS(-DUSE_FBO)
list(APPEND HURRICAN_SOURCES
src/SDLPort/cfbo.cpp
src/SDLPort/cfbo.hpp
)
ENDIF(FBO)

add_definitions(-DLINUX)
add_definitions(-DUSE_HOME_DIR)
Expand Down

0 comments on commit 3808399

Please sign in to comment.