func_packing.hpp
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 #ifndef glm_core_func_packing
00030 #define glm_core_func_packing
00031 
00032 namespace glm
00033 {
00036 
00048         detail::uint32 packUnorm2x16(detail::tvec2<detail::float32> const & v);
00049         
00061         detail::uint32 packUnorm4x8(detail::tvec4<detail::float32> const & v);
00062         
00074         detail::uint32 packSnorm4x8(detail::tvec4<detail::float32> const & v);
00075 
00087         detail::tvec2<detail::float32> unpackUnorm2x16(detail::uint32 const & p);
00088 
00100     detail::tvec4<detail::float32> unpackUnorm4x8(detail::uint32 const & p);
00101         
00113         detail::tvec4<detail::float32> unpackSnorm4x8(detail::uint32 const & p);
00114 
00123         double packDouble2x32(detail::tvec2<detail::uint32> const & v);
00124         
00132         detail::tvec2<detail::uint32> unpackDouble2x32(double const & v);
00133 
00135 }//namespace glm
00136 
00137 #include "func_packing.inl"
00138 
00139 #endif//glm_core_func_packing
00140