Skip to content

Commit

Permalink
Adding OpenGL rendering pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
belcour committed Feb 19, 2016
1 parent 675dccc commit f3e91a2
Show file tree
Hide file tree
Showing 5 changed files with 637 additions and 16 deletions.
12 changes: 11 additions & 1 deletion CMakeLists.txt
Expand Up @@ -7,12 +7,14 @@ set(CMAKE_BUILD_TYPE DEBUG)
if ( CMAKE_COMPILER_IS_GNUCC )
add_definitions ("-Wall -pedantic -fopenmp")
endif ( CMAKE_COMPILER_IS_GNUCC )
add_definitions ("-O3 -ffast-math")
add_definitions ("-Og -ffast-math -Wno-deprecated -Wno-deprecated-declarations")

include_directories ("include" "modules" ".")

# Add dependencies
find_package(Threads REQUIRED)
find_package(OpenGL)
find_package(GLUT)

# Add main test suite
add_executable (TestCovariance4D tests/Covariance4D.cpp)
Expand All @@ -25,3 +27,11 @@ add_executable (SmallCov tutorials/tutorial1.cpp)
target_compile_features(SmallCov PRIVATE cxx_range_for)
add_executable (CovFiltering tutorials/tutorial2.cpp)
target_compile_features(CovFiltering PRIVATE cxx_range_for)

if(OPENGL_FOUND AND GLUT_FOUND)
message("${OPENGL_INCLUDE_DIR}/Headers")
include_directories("${OPENGL_INCLUDE_DIR}/Headers" ${GLUT_INCLUDE_DIR})
add_executable(CovFilteringGL tutorials/tutorial2gl.cpp)
target_compile_features(CovFilteringGL PRIVATE cxx_range_for)
target_link_libraries(CovFilteringGL ${OPENGL_gl_LIBRARY} ${GLUT_glut_LIBRARY})
endif(OPENGL_FOUND AND GLUT_FOUND)
2 changes: 1 addition & 1 deletion modules/tinyexr
Submodule tinyexr updated 1 files
+1 −1 tinyexr.h

0 comments on commit f3e91a2

Please sign in to comment.