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)