mirror of
https://github.com/icaven/glm.git
synced 2025-12-07 09:16:49 +08:00
79 lines
3.4 KiB
C++
79 lines
3.4 KiB
C++
///////////////////////////////////////////////////////////////////////////////////
|
|
/// OpenGL Mathematics (glm.g-truc.net)
|
|
///
|
|
/// Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
|
|
/// 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.
|
|
///
|
|
/// @file glm/glm.hpp
|
|
/// @date 2005-01-14 / 2011-05-16
|
|
/// @author Christophe Riccio
|
|
///
|
|
/// @ref core
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#include "core/_fixes.hpp"
|
|
|
|
#ifndef glm_glm
|
|
#define glm_glm
|
|
|
|
#include <cmath>
|
|
#include <climits>
|
|
#include <cfloat>
|
|
#include <limits>
|
|
#include "core/setup.hpp"
|
|
|
|
#if(defined(GLM_MESSAGES) && !defined(GLM_MESSAGE_CORE_INCLUDED_DISPLAYED))
|
|
# define GLM_MESSAGE_CORE_INCLUDED_DISPLAYED
|
|
# pragma message("GLM: Core library included")
|
|
#endif//GLM_MESSAGE
|
|
|
|
#include "./core/_detail.hpp"
|
|
#include "./core/type.hpp"
|
|
|
|
#include "./core/func_trigonometric.hpp"
|
|
#include "./core/func_exponential.hpp"
|
|
#include "./core/func_common.hpp"
|
|
#include "./core/func_packing.hpp"
|
|
#include "./core/func_geometric.hpp"
|
|
#include "./core/func_matrix.hpp"
|
|
#include "./core/func_vector_relational.hpp"
|
|
#include "./core/func_integer.hpp"
|
|
#include "./core/func_noise.hpp"
|
|
#include "./core/_swizzle.hpp"
|
|
|
|
////////////////////
|
|
// check type sizes
|
|
#ifndef GLM_STATIC_ASSERT_NULL
|
|
GLM_STATIC_ASSERT(sizeof(glm::detail::int8) == 1, "int8 size isn't 1 byte on this platform");
|
|
GLM_STATIC_ASSERT(sizeof(glm::detail::int16) == 2, "int16 size isn't 2 bytes on this platform");
|
|
GLM_STATIC_ASSERT(sizeof(glm::detail::int32) == 4, "int32 size isn't 4 bytes on this platform");
|
|
GLM_STATIC_ASSERT(sizeof(glm::detail::int64) == 8, "int64 size isn't 8 bytes on this platform");
|
|
|
|
GLM_STATIC_ASSERT(sizeof(glm::detail::uint8) == 1, "uint8 size isn't 1 byte on this platform");
|
|
GLM_STATIC_ASSERT(sizeof(glm::detail::uint16) == 2, "uint16 size isn't 2 bytes on this platform");
|
|
GLM_STATIC_ASSERT(sizeof(glm::detail::uint32) == 4, "uint32 size isn't 4 bytes on this platform");
|
|
GLM_STATIC_ASSERT(sizeof(glm::detail::uint64) == 8, "uint64 size isn't 8 bytes on this platform");
|
|
|
|
GLM_STATIC_ASSERT(sizeof(glm::detail::float16) == 2, "float16 size isn't 2 bytes on this platform");
|
|
GLM_STATIC_ASSERT(sizeof(glm::detail::float32) == 4, "float32 size isn't 4 bytes on this platform");
|
|
GLM_STATIC_ASSERT(sizeof(glm::detail::float64) == 8, "float64 size isn't 8 bytes on this platform");
|
|
#endif//GLM_STATIC_ASSERT_NULL
|
|
|
|
#endif//glm_glm
|