glm.hpp

00001 
00002 // OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
00004 // Created : 2005-01-14
00005 // Updated : 2011-01-19
00006 // Licence : This source is under MIT License
00007 // File    : glm/glm.hpp
00009 
00010 #include "core/_fixes.hpp"
00011 
00012 #ifndef glm_glm
00013 #define glm_glm
00014 
00016 #define GLMvalType typename genType::value_type
00017 
00018 #include <cmath>
00019 #include <climits>
00020 #include <cfloat>
00021 #include <limits>
00022 #include "core/setup.hpp"
00023 
00024 #if(defined(GLM_MESSAGES) && !defined(GLM_MESSAGE_CORE_INCLUDED_DISPLAYED))
00025 #       define GLM_MESSAGE_CORE_INCLUDED_DISPLAYED
00026 #       pragma message("GLM: Core library included")
00027 #endif//GLM_MESSAGE
00028 
00030 namespace glm
00031 {
00032         namespace test
00033         {
00034                 bool main_bug();
00035                 bool main_core();
00036         }//namespace test
00037 
00039         namespace core
00040         {
00045                 namespace type{}
00046 
00049                 namespace function{}
00050         }
00051         //namespace core
00052 
00054         namespace gtc{}
00055 
00058         namespace gtx{}
00059 
00061         namespace img{}
00062 
00063 } //namespace glm
00064 
00065 #include "./core/_detail.hpp"
00066 #include "./core/type.hpp"
00067 
00068 #include "./core/func_trigonometric.hpp"
00069 #include "./core/func_exponential.hpp"
00070 #include "./core/func_common.hpp"
00071 #include "./core/func_packing.hpp"
00072 #include "./core/func_geometric.hpp"
00073 #include "./core/func_matrix.hpp"
00074 #include "./core/func_vector_relational.hpp"
00075 #include "./core/func_integer.hpp"
00076 #include "./core/func_noise.hpp"
00077 #include "./core/_swizzle.hpp"
00078 
00079 namespace glm
00080 {
00081         using namespace core::type;
00082         using namespace core::type::precision;
00083         using namespace core::function;
00084 } //namespace glm
00085 
00087 // check type sizes
00088 #ifndef GLM_STATIC_ASSERT_NULL
00089         GLM_STATIC_ASSERT(sizeof(glm::detail::int8) == 1, "int8 size isn't 1 byte on this platform");
00090         GLM_STATIC_ASSERT(sizeof(glm::detail::int16) == 2, "int16 size isn't 2 bytes on this platform");
00091         GLM_STATIC_ASSERT(sizeof(glm::detail::int32) == 4, "int32 size isn't 4 bytes on this platform");
00092         GLM_STATIC_ASSERT(sizeof(glm::detail::int64) == 8, "int64 size isn't 8 bytes on this platform");
00093 
00094         GLM_STATIC_ASSERT(sizeof(glm::detail::uint8) == 1, "uint8 size isn't 1 byte on this platform");
00095         GLM_STATIC_ASSERT(sizeof(glm::detail::uint16) == 2, "uint16 size isn't 2 bytes on this platform");
00096         GLM_STATIC_ASSERT(sizeof(glm::detail::uint32) == 4, "uint32 size isn't 4 bytes on this platform");
00097         GLM_STATIC_ASSERT(sizeof(glm::detail::uint64) == 8, "uint64 size isn't 8 bytes on this platform");
00098 
00099         GLM_STATIC_ASSERT(sizeof(glm::detail::float16) == 2, "float16 size isn't 2 bytes on this platform");
00100         GLM_STATIC_ASSERT(sizeof(glm::detail::float32) == 4, "float32 size isn't 4 bytes on this platform");
00101         GLM_STATIC_ASSERT(sizeof(glm::detail::float64) == 8, "float64 size isn't 8 bytes on this platform");
00102 #endif//GLM_STATIC_ASSERT_NULL
00103 
00104 #endif //glm_glm