meta: add GLM as a submodule

This commit is contained in:
Lephe 2021-07-05 17:08:37 +02:00 committed by Lephenixnoir
parent 31da1c0998
commit 028d927b6d
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
5 changed files with 13 additions and 2 deletions

3
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule "imgui"]
path = imgui
url = https://github.com/ocornut/imgui
[submodule "glm"]
path = glm
url = https://github.com/g-truc/glm

View File

@ -65,9 +65,11 @@ endif()
#---
# This provides Dear ImGui but also GL3W as an OpenGL loader
if(NOT FACETS_PLATFORM STREQUAL gint)
# This provides Dear ImGui but also GL3W as an OpenGL loader
add_subdirectory(imgui-builds)
# This provide GLM
add_subdirectory(glm-builds)
endif()
add_subdirectory(azur)

View File

@ -6,7 +6,7 @@ layout(location=1) in vec2 a_texture_pos;
/* Location in image space */
out vec2 v_position;
uniform vec3 u_windowSize;
uniform vec2 u_windowSize;
void main() {
v_position = a_texture_pos;

1
glm Submodule

@ -0,0 +1 @@
Subproject commit 84f2045a79a4aa2454801a98e2de0401bd9c8aee

View File

@ -0,0 +1,5 @@
# Define the header-only library
add_library(glm INTERFACE)
# Set the include directory
target_include_directories(glm INTERFACE ../glm)