yaml-cpp submodule

This commit is contained in:
2020-04-21 14:09:51 -04:00
parent 38eb7fb47a
commit 870f27d836
5 changed files with 12 additions and 2 deletions

3
.gitmodules vendored
View File

@@ -7,3 +7,6 @@
[submodule "vendor/toddcox"]
path = vendor/toddcox
url = https://github.com/JCRaymond/toddcox-faster.git
[submodule "vendor/yaml-cpp"]
path = vendor/yaml-cpp
url = git://github.com/jbeder/yaml-cpp.git

View File

@@ -4,6 +4,8 @@ project(toddcox-faster)
set(CMAKE_CXX_STANDARD 17)
add_subdirectory(vendor/toddcox)
add_subdirectory(vendor/yaml-cpp)
add_subdirectory(vendor/glad)
add_subdirectory(vendor/glfw)
add_subdirectory(vendor/glm)

1
vendor/yaml-cpp vendored Submodule

Submodule vendor/yaml-cpp added at 4edff1fa5d

View File

@@ -12,8 +12,6 @@ add_custom_command(
COMMENT "copied preses"
)
find_package(yaml-cpp REQUIRED)
add_library(vis-util INTERFACE)
target_include_directories(vis-util INTERFACE include)

View File

@@ -343,6 +343,10 @@ int main(int argc, char *argv[]) {
return EXIT_FAILURE;
}
glfwWindowHint(GLFW_VERSION_MAJOR, 4);
glfwWindowHint(GLFW_VERSION_MAJOR, 5);
// glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
auto window = glfwCreateWindow(
1920, 1080,
"Coset Visualization",
@@ -360,6 +364,8 @@ int main(int argc, char *argv[]) {
glClear(GL_COLOR_BUFFER_BIT);
glfwSwapBuffers(window);
std::cout << utilInfo();
std::string config_file = "presets/default.yaml";
if (argc > 1) config_file = std::string(argv[1]);