Skip to content

Commit

Permalink
Surface Splatting: Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianlipponer committed Feb 18, 2015
1 parent 9bfeabc commit 7915fdf
Show file tree
Hide file tree
Showing 18 changed files with 3,802 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ set(LIBRARY_OUTPUT_PATH "${PROJECT_BINARY_DIR}/bin")

add_subdirectory(extern)
add_subdirectory(glviz)
add_subdirectory(surface_splatting)
674 changes: 674 additions & 0 deletions COPYING.GPL

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions surface_splatting/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Use static anttweakbar.
add_definitions(-DTW_NO_LIB_PRAGMA -DTW_STATIC)

# Use static GLEW.
add_definitions(-DGLEW_STATIC)

# Use static freeglut.
add_definitions(-DFREEGLUT_LIB_PRAGMAS=0 -DFREEGLUT_STATIC)

file(TO_NATIVE_PATH "${PROJECT_SOURCE_DIR}/resources/" GLVIZ_RESOURCES_DIR)
configure_file(config.hpp.in "${CMAKE_CURRENT_BINARY_DIR}/config.hpp")

file(GLOB OPENGL_SHADERS shader/*)
shader_wrap_cpp(SOURCES_OPENGL_SHADERS "${OPENGL_SHADERS}")

add_executable(surface_splatting
main.cpp
framebuffer.hpp
framebuffer.cpp
program_finalization.hpp
program_finalization.cpp
program_attribute.hpp
program_attribute.cpp
splat_renderer.cpp
splat_renderer.hpp
${OPENGL_SHADERS}
${SOURCES_OPENGL_SHADERS}
)

include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${glviz_INCLUDE_DIRS}
)

add_dependencies(surface_splatting
glviz
)

target_link_libraries(surface_splatting
${glviz_LIBRARIES}
)
1 change: 1 addition & 0 deletions surface_splatting/config.hpp.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const char* path_resources = R"(${GLVIZ_RESOURCES_DIR})";
Loading

0 comments on commit 7915fdf

Please sign in to comment.