Math.hh 1.17 KB
Newer Older
Robert Menzel's avatar
Robert Menzel committed
1
2
3
4
5
6
7
8
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2011, Computer Graphics Group RWTH Aachen University         //
// All rights reserved.                                                       //
////////////////////////////////////////////////////////////////////////////////

#ifndef ACGL_MATH_HH
#define ACGL_MATH_HH

Robert Menzel's avatar
Robert Menzel committed
9
10
#include <ACGL/ACGL.hh>

Robert Menzel's avatar
Robert Menzel committed
11
12
13
14
15
/*
 * For our basic vector math we use the GLM library.
 * This library has the advantage that it was designed to mimic the
 * syntax of GLSL for datatypes (vectors, matrices etc.) as well as functions.
 * It also supports swizzling similar to GLSL.
16
17
18
 *
 * Swizzling has to be defined before the glm.hpp gets first included, no not forget
 * this, you should never include glm yourself, but include always our ACGL/Math.hh!
Robert Menzel's avatar
Robert Menzel committed
19
 */
20

Robert Menzel's avatar
Robert Menzel committed
21
22
23
24
25
26
27
28
#ifdef _MSC_VER
#pragma warning( push )
#pragma warning ( disable : 4201 )
#pragma warning ( disable : 4100 )
#pragma warning ( disable : 4996 )
#pragma warning ( disable : 4244 )
#endif

Robert Menzel's avatar
Robert Menzel committed
29
30
#include <glm/glm.hpp>
#include <glm/ext.hpp>
31

Robert Menzel's avatar
Robert Menzel committed
32
33
34
35
#ifdef _MSC_VER
#pragma warning( pop )
#endif

Robert Menzel's avatar
Robert Menzel committed
36
37
38
#include <ACGL/Math/Constants.hh>
#include <ACGL/Math/Functions.hh>

39
#endif // ACGL_MATH_HH