2011-05-16 17:44:16 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
/// OpenGL Mathematics (glm.g-truc.net)
|
|
|
|
///
|
2013-02-20 15:21:56 +00:00
|
|
|
/// Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
2011-05-16 17:44:16 +00:00
|
|
|
/// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
/// of this software and associated documentation files (the "Software"), to deal
|
|
|
|
/// in the Software without restriction, including without limitation the rights
|
|
|
|
/// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
/// copies of the Software, and to permit persons to whom the Software is
|
|
|
|
/// furnished to do so, subject to the following conditions:
|
|
|
|
///
|
|
|
|
/// The above copyright notice and this permission notice shall be included in
|
|
|
|
/// all copies or substantial portions of the Software.
|
|
|
|
///
|
|
|
|
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
/// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
/// THE SOFTWARE.
|
|
|
|
///
|
2011-06-15 20:35:27 +00:00
|
|
|
/// @ref core
|
2011-05-16 17:44:16 +00:00
|
|
|
/// @file glm/glm.hpp
|
2011-10-24 14:47:31 +00:00
|
|
|
/// @date 2005-01-14 / 2011-10-24
|
2011-05-16 17:44:16 +00:00
|
|
|
/// @author Christophe Riccio
|
2011-06-16 00:34:07 +00:00
|
|
|
///
|
2011-06-16 09:02:12 +00:00
|
|
|
/// @defgroup core GLM Core
|
2011-06-16 00:34:07 +00:00
|
|
|
///
|
2011-06-16 09:02:12 +00:00
|
|
|
/// @brief The core of GLM, which implements exactly and only the GLSL specification to the degree possible.
|
2011-06-16 00:34:07 +00:00
|
|
|
///
|
2011-10-24 14:47:31 +00:00
|
|
|
/// The GLM core consists of @ref core_types "C++ types that mirror GLSL types" and
|
|
|
|
/// C++ functions that mirror the GLSL functions. It also includes
|
2011-06-16 09:02:12 +00:00
|
|
|
/// @ref core_precision "a set of precision-based types" that can be used in the appropriate
|
|
|
|
/// functions. The C++ types are all based on a basic set of @ref core_template "template types".
|
2011-06-16 00:34:07 +00:00
|
|
|
///
|
|
|
|
/// The best documentation for GLM Core is the current GLSL specification,
|
2011-10-24 14:47:31 +00:00
|
|
|
/// <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.clean.pdf">version 4.2
|
2011-06-16 00:34:07 +00:00
|
|
|
/// (pdf file)</a>.
|
2011-06-16 09:02:12 +00:00
|
|
|
/// There are a few @ref pg_differences "differences" between GLM core and GLSL.
|
2011-06-16 00:34:07 +00:00
|
|
|
///
|
2011-10-24 14:47:31 +00:00
|
|
|
/// GLM core functionnalities require <glm/glm.hpp> to be included to be used.
|
2011-06-16 00:34:07 +00:00
|
|
|
///
|
2011-06-16 09:02:12 +00:00
|
|
|
/// @defgroup core_types Types
|
2011-06-16 00:34:07 +00:00
|
|
|
///
|
2011-06-16 09:02:12 +00:00
|
|
|
/// @brief The standard types defined by the specification.
|
2011-06-16 00:34:07 +00:00
|
|
|
///
|
|
|
|
/// These types are all typedefs of more generalized, template types. To see the definiton
|
2011-06-16 09:02:12 +00:00
|
|
|
/// of these template types, go to @ref core_template.
|
2011-06-16 00:34:07 +00:00
|
|
|
///
|
2011-06-16 09:02:12 +00:00
|
|
|
/// @ingroup core
|
2011-06-16 00:34:07 +00:00
|
|
|
///
|
2011-06-16 09:02:12 +00:00
|
|
|
/// @defgroup core_precision Precision types
|
2011-06-16 00:34:07 +00:00
|
|
|
///
|
2011-06-16 09:02:12 +00:00
|
|
|
/// @brief Non-GLSL types that are used to define precision-based types.
|
2011-06-16 00:34:07 +00:00
|
|
|
///
|
|
|
|
/// The GLSL language allows the user to define the precision of a particular variable.
|
|
|
|
/// In OpenGL's GLSL, these precision qualifiers have no effect; they are there for compatibility
|
2011-06-16 09:02:12 +00:00
|
|
|
/// with OpenGL ES's precision qualifiers, where they @em do have an effect.
|
2011-06-16 00:34:07 +00:00
|
|
|
///
|
|
|
|
/// C++ has no language equivalent to precision qualifiers. So GLM provides the next-best thing:
|
2011-06-16 09:02:12 +00:00
|
|
|
/// a number of typedefs of the @ref core_template that use a particular precision.
|
2011-06-16 00:34:07 +00:00
|
|
|
///
|
|
|
|
/// None of these types make any guarantees about the actual precision used.
|
|
|
|
///
|
2011-06-16 09:02:12 +00:00
|
|
|
/// @ingroup core
|
2011-06-16 00:34:07 +00:00
|
|
|
///
|
2011-06-16 09:02:12 +00:00
|
|
|
/// @defgroup core_template Template types
|
2011-06-16 00:34:07 +00:00
|
|
|
///
|
2011-06-16 09:02:12 +00:00
|
|
|
/// @brief The generic template types used as the basis for the core types.
|
2011-06-16 00:34:07 +00:00
|
|
|
///
|
2011-06-16 09:02:12 +00:00
|
|
|
/// These types are all templates used to define the actual @ref core_types.
|
2011-06-16 00:34:07 +00:00
|
|
|
/// These templetes are implementation details of GLM types and should not be used explicitly.
|
|
|
|
///
|
2011-06-16 09:02:12 +00:00
|
|
|
/// @ingroup core
|
2011-05-16 17:44:16 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
2010-04-29 10:54:07 +00:00
|
|
|
|
2011-02-21 15:23:10 +00:00
|
|
|
#include "core/_fixes.hpp"
|
|
|
|
|
2010-04-29 10:54:07 +00:00
|
|
|
#ifndef glm_glm
|
|
|
|
#define glm_glm
|
|
|
|
|
|
|
|
#include <cmath>
|
|
|
|
#include <climits>
|
2010-04-29 10:56:52 +00:00
|
|
|
#include <cfloat>
|
2010-04-29 10:54:07 +00:00
|
|
|
#include <limits>
|
2013-04-10 11:46:27 +00:00
|
|
|
#include <cassert>
|
2013-03-31 00:16:13 +00:00
|
|
|
#include "fwd.hpp"
|
2010-04-29 10:54:07 +00:00
|
|
|
|
2011-01-19 15:01:17 +00:00
|
|
|
#if(defined(GLM_MESSAGES) && !defined(GLM_MESSAGE_CORE_INCLUDED_DISPLAYED))
|
|
|
|
# define GLM_MESSAGE_CORE_INCLUDED_DISPLAYED
|
|
|
|
# pragma message("GLM: Core library included")
|
2011-01-19 12:27:30 +00:00
|
|
|
#endif//GLM_MESSAGE
|
2013-03-31 00:16:13 +00:00
|
|
|
|
2010-04-29 10:56:52 +00:00
|
|
|
#include "./core/func_trigonometric.hpp"
|
2010-04-29 10:54:07 +00:00
|
|
|
#include "./core/func_exponential.hpp"
|
2010-04-29 10:56:52 +00:00
|
|
|
#include "./core/func_common.hpp"
|
|
|
|
#include "./core/func_packing.hpp"
|
2010-04-29 10:54:07 +00:00
|
|
|
#include "./core/func_geometric.hpp"
|
|
|
|
#include "./core/func_matrix.hpp"
|
|
|
|
#include "./core/func_vector_relational.hpp"
|
2010-04-29 10:56:52 +00:00
|
|
|
#include "./core/func_integer.hpp"
|
2010-04-29 10:54:07 +00:00
|
|
|
#include "./core/func_noise.hpp"
|
2013-03-31 00:16:13 +00:00
|
|
|
|
2011-06-02 12:22:50 +00:00
|
|
|
#endif//glm_glm
|