Browse Source

Added CubeMapTexture::setSeamless().

vectorfields
Vladimír Vondruš 14 years ago
parent
commit
d69253757a
  1. 7
      src/CubeMapTexture.h

7
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)

Loading…
Cancel
Save