glm/glm/gtx/wrap.hpp

62 lines
1.6 KiB
C++
Raw Normal View History

2010-04-29 10:54:07 +00:00
///////////////////////////////////////////////////////////////////////////////////////////////////
2011-01-20 11:40:14 +00:00
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
2010-04-29 10:54:07 +00:00
///////////////////////////////////////////////////////////////////////////////////////////////////
// Created : 2009-11-25
// Updated : 2009-11-25
// Licence : This source is under MIT License
2011-01-19 16:02:13 +00:00
// File : glm/gtx/wrap.hpp
2010-04-29 10:54:07 +00:00
///////////////////////////////////////////////////////////////////////////////////////////////////
// Dependency:
// - GLM core
///////////////////////////////////////////////////////////////////////////////////////////////////
2011-01-19 16:02:13 +00:00
#ifndef glm_gtx_wrap
#define glm_gtx_wrap
2010-04-29 10:54:07 +00:00
// Dependency:
#include "../glm.hpp"
2011-01-19 17:10:55 +00:00
#if(defined(GLM_MESSAGES) && !defined(glm_ext))
# pragma message("GLM: GLM_GTX_wrap extension included")
#endif
2010-04-29 10:54:07 +00:00
namespace glm
{
namespace test{
2011-01-19 16:02:13 +00:00
bool main_gtx_wrap();
2010-04-29 10:54:07 +00:00
}//namespace test
2011-01-19 16:02:13 +00:00
namespace gtx{
//! GLM_GTX_wrap: Wrapping mode using my texture samping.
2010-04-29 10:56:52 +00:00
namespace wrap
2010-04-29 10:54:07 +00:00
{
/// \addtogroup gtx_wrap
///@{
2010-04-29 10:56:52 +00:00
//! Simulate GL_CLAMP OpenGL wrap mode
2011-01-19 16:02:13 +00:00
//! From GLM_GTX_wrap extension.
2010-04-29 10:56:52 +00:00
template <typename genType>
genType clamp(genType const & Texcoord);
//! Simulate GL_REPEAT OpenGL wrap mode
2011-01-19 16:02:13 +00:00
//! From GLM_GTX_wrap extension.
2010-04-29 10:56:52 +00:00
template <typename genType>
genType repeat(genType const & Texcoord);
//! Simulate GL_MIRROR_REPEAT OpenGL wrap mode
2011-01-19 16:02:13 +00:00
//! From GLM_GTX_wrap extension.
2010-04-29 10:56:52 +00:00
template <typename genType>
genType mirrorRepeat(genType const & Texcoord);
///@}
2010-04-29 10:56:52 +00:00
}//namespace wrap
2011-01-19 16:02:13 +00:00
}//namespace gtx
2010-04-29 10:54:07 +00:00
}//namespace glm
#include "wrap.inl"
2011-01-19 16:02:13 +00:00
namespace glm{using namespace gtx::wrap;}
2010-04-29 10:56:52 +00:00
2010-04-29 10:54:07 +00:00
#endif//glm_img_wrap