summaryrefslogtreecommitdiff
path: root/src/glm/gtx/int_10_10_10_2.inl
diff options
context:
space:
mode:
Diffstat (limited to 'src/glm/gtx/int_10_10_10_2.inl')
-rw-r--r--src/glm/gtx/int_10_10_10_2.inl21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/glm/gtx/int_10_10_10_2.inl b/src/glm/gtx/int_10_10_10_2.inl
new file mode 100644
index 0000000..68efc55
--- /dev/null
+++ b/src/glm/gtx/int_10_10_10_2.inl
@@ -0,0 +1,21 @@
+///////////////////////////////////////////////////////////////////////////////////////////////////
+// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
+///////////////////////////////////////////////////////////////////////////////////////////////////
+// Created : 2010-07-07
+// Updated : 2010-07-07
+// Licence : This source is under MIT License
+// File : glm/gtx/int_10_10_10_2.inl
+///////////////////////////////////////////////////////////////////////////////////////////////////
+
+namespace glm{
+namespace gtx{
+namespace int_10_10_10_2
+{
+ GLM_FUNC_QUALIFIER dword uint10_10_10_2_cast(glm::vec4 const & v)
+ {
+ return dword(uint(v.x * 2047.f) << 0 | uint(v.y * 2047.f) << 10 | uint(v.z * 2047.f) << 20 | uint(v.w * 3.f) << 30);
+ }
+
+}//namespace int_10_10_10_2
+}//namespace gtx
+}//namespace glm