glm/glm/glm.hpp

118 lines
4.4 KiB
C++
Raw Normal View History

2011-05-16 17:44:16 +00:00
///////////////////////////////////////////////////////////////////////////////////
/// OpenGL Mathematics (glm.g-truc.net)
///
2014-12-19 22:54:25 +00:00
/// Copyright (c) 2005 - 2015 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.
///
2014-11-25 23:27:12 +00:00
/// Restrictions:
/// By making use of the Software for military purposes, you choose to make
/// a Bunny unhappy.
///
2011-05-16 17:44:16 +00:00
/// 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
///
2014-11-24 23:56:37 +00:00
/// @defgroup core GLM Core
///
/// @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-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
#include "detail/_fixes.hpp"
2011-02-21 15:23:10 +00:00
2014-07-13 23:48:27 +00:00
#pragma once
2010-04-29 10:54:07 +00:00
#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>
#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
2014-01-04 13:57:59 +00:00
#include "vec2.hpp"
#include "vec3.hpp"
#include "vec4.hpp"
#include "mat2x2.hpp"
#include "mat2x3.hpp"
#include "mat2x4.hpp"
#include "mat3x2.hpp"
#include "mat3x3.hpp"
#include "mat3x4.hpp"
#include "mat4x2.hpp"
#include "mat4x3.hpp"
#include "mat4x4.hpp"
#include "trigonometric.hpp"
#include "exponential.hpp"
#include "common.hpp"
#include "packing.hpp"
#include "geometric.hpp"
#include "matrix.hpp"
#include "vector_relational.hpp"
#include "integer.hpp"