mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 02:04:35 +00:00
Added GTX_texture
This commit is contained in:
parent
5c5cfa5b66
commit
5cf8765656
44
glm/gtx/texture.hpp
Normal file
44
glm/gtx/texture.hpp
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
/// @ref gtx_texture
|
||||||
|
/// @file glm/gtx/texture.hpp
|
||||||
|
///
|
||||||
|
/// @see core (dependence)
|
||||||
|
///
|
||||||
|
/// @defgroup gtx_texture GLM_GTX_texture
|
||||||
|
/// @ingroup gtx
|
||||||
|
///
|
||||||
|
/// Include <glm/gtx/texture.hpp> to use the features of this extension.
|
||||||
|
///
|
||||||
|
/// Wrapping mode of texture coordinates.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
// Dependency:
|
||||||
|
#include "../glm.hpp"
|
||||||
|
|
||||||
|
#ifndef GLM_ENABLE_EXPERIMENTAL
|
||||||
|
# error "GLM: GLM_GTX_texture is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
|
||||||
|
# pragma message("GLM: GLM_GTX_texture extension included")
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace glm
|
||||||
|
{
|
||||||
|
/// @addtogroup gtx_texture
|
||||||
|
/// @{
|
||||||
|
|
||||||
|
|
||||||
|
/// @}
|
||||||
|
}// namespace glm
|
||||||
|
|
||||||
|
#include "texture.inl"
|
||||||
|
|
||||||
|
/// @ref gtx_texture
|
||||||
|
/// @file glm/gtx/texture.inl
|
||||||
|
|
||||||
|
namespace glm
|
||||||
|
{
|
||||||
|
|
||||||
|
}//namespace glm
|
||||||
|
|
8
glm/gtx/texture.inl
Normal file
8
glm/gtx/texture.inl
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
/// @ref gtx_texture
|
||||||
|
/// @file glm/gtx/texture.inl
|
||||||
|
|
||||||
|
namespace glm
|
||||||
|
{
|
||||||
|
|
||||||
|
}//namespace glm
|
||||||
|
|
@ -47,6 +47,7 @@ glmCreateTestGTC(gtx_scalar_multiplication)
|
|||||||
glmCreateTestGTC(gtx_scalar_relational)
|
glmCreateTestGTC(gtx_scalar_relational)
|
||||||
glmCreateTestGTC(gtx_spline)
|
glmCreateTestGTC(gtx_spline)
|
||||||
glmCreateTestGTC(gtx_string_cast)
|
glmCreateTestGTC(gtx_string_cast)
|
||||||
|
glmCreateTestGTC(gtx_texture)
|
||||||
glmCreateTestGTC(gtx_type_aligned)
|
glmCreateTestGTC(gtx_type_aligned)
|
||||||
glmCreateTestGTC(gtx_type_trait)
|
glmCreateTestGTC(gtx_type_trait)
|
||||||
glmCreateTestGTC(gtx_vec_swizzle)
|
glmCreateTestGTC(gtx_vec_swizzle)
|
||||||
|
11
test/gtx/gtx_texture.cpp
Normal file
11
test/gtx/gtx_texture.cpp
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#define GLM_ENABLE_EXPERIMENTAL
|
||||||
|
#include <glm/gtx/texture.hpp>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int Error = 0;
|
||||||
|
|
||||||
|
Error += clamp::test();
|
||||||
|
|
||||||
|
return Error;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user