summaryrefslogtreecommitdiff
path: root/src/glm/gtx/wrap.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glm/gtx/wrap.hpp')
-rw-r--r--src/glm/gtx/wrap.hpp54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/glm/gtx/wrap.hpp b/src/glm/gtx/wrap.hpp
new file mode 100644
index 0000000..1ca3a0a
--- /dev/null
+++ b/src/glm/gtx/wrap.hpp
@@ -0,0 +1,54 @@
+///////////////////////////////////////////////////////////////////////////////////////////////////
+// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
+///////////////////////////////////////////////////////////////////////////////////////////////////
+// Created : 2009-11-25
+// Updated : 2009-11-25
+// Licence : This source is under MIT License
+// File : glm/gtx/wrap.hpp
+///////////////////////////////////////////////////////////////////////////////////////////////////
+// Dependency:
+// - GLM core
+///////////////////////////////////////////////////////////////////////////////////////////////////
+
+#ifndef glm_gtx_wrap
+#define glm_gtx_wrap
+
+// Dependency:
+#include "../glm.hpp"
+
+#if(defined(GLM_MESSAGES) && !defined(glm_ext))
+# pragma message("GLM: GLM_GTX_wrap extension included")
+#endif
+
+namespace glm{
+namespace gtx{
+namespace wrap ///< GLM_GTX_wrap: Wrapping mode using my texture samping.
+{
+ /// \addtogroup gtx_wrap
+ /// @{
+
+ //! Simulate GL_CLAMP OpenGL wrap mode
+ //! From GLM_GTX_wrap extension.
+ template <typename genType>
+ genType clamp(genType const & Texcoord);
+
+ //! Simulate GL_REPEAT OpenGL wrap mode
+ //! From GLM_GTX_wrap extension.
+ template <typename genType>
+ genType repeat(genType const & Texcoord);
+
+ //! Simulate GL_MIRROR_REPEAT OpenGL wrap mode
+ //! From GLM_GTX_wrap extension.
+ template <typename genType>
+ genType mirrorRepeat(genType const & Texcoord);
+
+ /// @}
+}// namespace wrap
+}// namespace gtx
+}// namespace glm
+
+#include "wrap.inl"
+
+namespace glm{using namespace gtx::wrap;}
+
+#endif//glm_img_wrap