Implement a simple loading animation.

Loading currently doesn't happen, because loading tries to do some GL
actions which cannot happen in a background thread (in GLUT anyway).

TODO: move all GL options to the main thread, and leave the rest of the
loading to the background.
This commit is contained in:
2018-04-12 14:25:01 +02:00
parent 2bd84abe94
commit 30aa25a09e
3 changed files with 92 additions and 26 deletions

View File

@@ -24,6 +24,7 @@ find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
find_package(Boost REQUIRED COMPONENTS filesystem program_options)
find_package(OpenCV 3 REQUIRED COMPONENTS core imgproc imgcodecs)
find_package(Threads REQUIRED)
target_link_libraries(fmri PUBLIC
Caffe::Caffe
@@ -33,6 +34,7 @@ target_link_libraries(fmri PUBLIC
opencv_core
opencv_imgproc
opencv_imgcodecs
Threads::Threads
)
target_include_directories(fmri PUBLIC