From d69253757a4b12da3b14a09c6e0b25babd645e79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 6 May 2012 13:43:19 +0200 Subject: [PATCH] Added CubeMapTexture::setSeamless(). --- src/CubeMapTexture.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/CubeMapTexture.h b/src/CubeMapTexture.h index 817c514f0..12edaa6d9 100644 --- a/src/CubeMapTexture.h +++ b/src/CubeMapTexture.h @@ -57,6 +57,13 @@ class CubeMapTexture: public Texture2D { NegativeZ = GL_TEXTURE_CUBE_MAP_NEGATIVE_Z }; + /** + * @brief Enable/disable seamless cube map textures + */ + inline static void setSeamless(bool enabled) { + enabled ? glEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS) : glDisable(GL_TEXTURE_CUBE_MAP_SEAMLESS); + } + /** * @brief Constructor * @param layer Texture layer (number between 0 and 31)