number_precision.hpp

00001 
00002 // OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
00004 // Created : 2007-05-10
00005 // Updated : 2009-06-04
00006 // Licence : This source is under MIT License
00007 // File    : glm/gtx/number_precision.hpp
00009 // Dependency:
00010 // - GLM core
00011 // - GLM_GTC_type_precision
00012 // - GLM_GTC_quaternion
00014 
00015 #ifndef glm_gtx_number_precision
00016 #define glm_gtx_number_precision
00017 
00018 // Dependency:
00019 #include "../glm.hpp"
00020 #include "../gtc/type_precision.hpp"
00021 
00022 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
00023 #       pragma message("GLM: GLM_GTX_number_precision extension included")
00024 #endif
00025 
00026 namespace glm{
00027 namespace gtx{
00029 namespace number_precision
00030 {
00031         using namespace gtc::type_precision;
00032 
00034         // Unsigned int vector types 
00035 
00038 
00039         typedef u8                      u8vec1;         
00040         typedef u16                     u16vec1;    
00041         typedef u32                     u32vec1;    
00042         typedef u64                     u64vec1;    
00043 
00045         // Float vector types 
00046 
00047         typedef f16                     f16vec1;    
00048         typedef f32                     f32vec1;    
00049         typedef f64                     f64vec1;    
00050 
00052         // Float matrix types 
00053 
00054         typedef f16                     f16mat1;    
00055         typedef f16                     f16mat1x1;      
00056         typedef f32                     f32mat1;        
00057         typedef f32                     f32mat1x1;      
00058         typedef f64                     f64mat1;        
00059         typedef f64                     f64mat1x1;      
00060 
00062 }//namespace number_precision
00063 }//namespace gtx
00064 }//namespace glm
00065 
00066 #include "number_precision.inl"
00067 
00068 namespace glm{using namespace gtx::number_precision;}
00069 
00070 #endif//glm_gtx_number_precision