scg3  0.6
scg_glm.h
Go to the documentation of this file.
1 
9 /*
10  * Copyright 2014-2019 Volker Ahlers
11  *
12  * Licensed under the Apache License, Version 2.0 (the "License");
13  * you may not use this file except in compliance with the License.
14  * You may obtain a copy of the License at
15  *
16  * http://www.apache.org/licenses/LICENSE-2.0
17  *
18  * Unless required by applicable law or agreed to in writing, software
19  * distributed under the License is distributed on an "AS IS" BASIS,
20  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  * See the License for the specific language governing permissions and
22  * limitations under the License.
23  */
24 
25 #ifndef SCG_GLM_H_
26 #define SCG_GLM_H_
27 
28 
29 #if defined(__GNUC__)
30 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
31 #elif defined(_MSC_VER)
32 #pragma warning(disable: 4996)
33 #endif
34 
35 #ifdef GLM_MESSAGES
36 #undef GLM_MESSAGES
37 #endif
38 
39 #include "../extern/glm/glm/glm.hpp"
40 #include "../extern/glm/glm/gtc/matrix_transform.hpp"
41 #include "../extern/glm/glm/gtc/quaternion.hpp"
42 #include "../extern/glm/glm/gtc/type_ptr.hpp"
43 
44 // include glm::toString() functions for debugging purposes
45 #define GLM_ENABLE_EXPERIMENTAL
46 #include "../extern/glm/glm/gtx/string_cast.hpp"
47 #undef GLM_ENABLE_EXPERIMENTAL
48 
49 #if defined(__GNUC__)
50 #pragma GCC diagnostic warning "-Wstrict-aliasing"
51 #elif defined(_MSC_VER)
52 #pragma warning(default: 4996)
53 #endif
54 
55 
56 #endif /* SCG_GLM_H_ */