Skip to content

Commit da3c6f6

Browse files
committed
Inclusión de la librería GLM
1 parent ce86a41 commit da3c6f6

File tree

255 files changed

+58219
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

255 files changed

+58219
-1
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake/Modules/" ${CMAKE_MODULE_PATH})
77
find_package(OpenGL REQUIRED)
88
find_package(GLFW3 REQUIRED)
99
find_package(GLEW REQUIRED)
10-
find_package(GLM REQUIRED)
1110

1211
include_directories(${GLFW3_INCLUDE_DIRS})
1312
include_directories(${GLEW_INCLUDE_DIRS})

Includes/glm/CMakeLists.txt

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
set(NAME glm_dummy)
2+
3+
file(GLOB ROOT_SOURCE *.cpp)
4+
file(GLOB ROOT_INLINE *.inl)
5+
file(GLOB ROOT_HEADER *.hpp)
6+
file(GLOB ROOT_TEXT ../*.txt)
7+
file(GLOB ROOT_MD ../*.md)
8+
file(GLOB ROOT_NAT ../util/glm.natvis)
9+
10+
file(GLOB_RECURSE CORE_SOURCE ./detail/*.cpp)
11+
file(GLOB_RECURSE CORE_INLINE ./detail/*.inl)
12+
file(GLOB_RECURSE CORE_HEADER ./detail/*.hpp)
13+
14+
file(GLOB_RECURSE GTC_SOURCE ./gtc/*.cpp)
15+
file(GLOB_RECURSE GTC_INLINE ./gtc/*.inl)
16+
file(GLOB_RECURSE GTC_HEADER ./gtc/*.hpp)
17+
18+
file(GLOB_RECURSE GTX_SOURCE ./gtx/*.cpp)
19+
file(GLOB_RECURSE GTX_INLINE ./gtx/*.inl)
20+
file(GLOB_RECURSE GTX_HEADER ./gtx/*.hpp)
21+
22+
source_group("Text Files" FILES ${ROOT_TEXT} ${ROOT_MD})
23+
source_group("Core Files" FILES ${CORE_SOURCE})
24+
source_group("Core Files" FILES ${CORE_INLINE})
25+
source_group("Core Files" FILES ${CORE_HEADER})
26+
source_group("GTC Files" FILES ${GTC_SOURCE})
27+
source_group("GTC Files" FILES ${GTC_INLINE})
28+
source_group("GTC Files" FILES ${GTC_HEADER})
29+
source_group("GTX Files" FILES ${GTX_SOURCE})
30+
source_group("GTX Files" FILES ${GTX_INLINE})
31+
source_group("GTX Files" FILES ${GTX_HEADER})
32+
33+
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
34+
35+
if(GLM_TEST_ENABLE)
36+
add_executable(${NAME} ${ROOT_TEXT} ${ROOT_MD} ${ROOT_NAT}
37+
${ROOT_SOURCE} ${ROOT_INLINE} ${ROOT_HEADER}
38+
${CORE_SOURCE} ${CORE_INLINE} ${CORE_HEADER}
39+
${GTC_SOURCE} ${GTC_INLINE} ${GTC_HEADER}
40+
${GTX_SOURCE} ${GTX_INLINE} ${GTX_HEADER})
41+
endif(GLM_TEST_ENABLE)
42+
43+
#add_library(glm STATIC glm.cpp)
44+
#add_library(glm_shared SHARED glm.cpp)

Includes/glm/common.hpp

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
///////////////////////////////////////////////////////////////////////////////////
2+
/// OpenGL Mathematics (glm.g-truc.net)
3+
///
4+
/// Copyright (c) 2005 - 2015 G-Truc Creation (www.g-truc.net)
5+
/// Permission is hereby granted, free of charge, to any person obtaining a copy
6+
/// of this software and associated documentation files (the "Software"), to deal
7+
/// in the Software without restriction, including without limitation the rights
8+
/// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
/// copies of the Software, and to permit persons to whom the Software is
10+
/// furnished to do so, subject to the following conditions:
11+
///
12+
/// The above copyright notice and this permission notice shall be included in
13+
/// all copies or substantial portions of the Software.
14+
///
15+
/// Restrictions:
16+
/// By making use of the Software for military purposes, you choose to make
17+
/// a Bunny unhappy.
18+
///
19+
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20+
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21+
/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22+
/// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23+
/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24+
/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25+
/// THE SOFTWARE.
26+
///
27+
/// @ref core
28+
/// @file glm/common.hpp
29+
/// @date 2013-12-24 / 2013-12-24
30+
/// @author Christophe Riccio
31+
///////////////////////////////////////////////////////////////////////////////////
32+
33+
#pragma once
34+
35+
#include "detail/func_common.hpp"

0 commit comments

Comments
 (0)