@ -43,30 +43,30 @@ template<size_t dimensions> class Texture {
/**
/**
* Nearest neighbor filtering
* Nearest neighbor filtering
*/
*/
NearestNeighbor = GL_NEAREST ,
NearestNeighborFilter = GL_NEAREST ,
/**
/**
* Linear filtering
* Linear filtering
*/
*/
Linear = GL_LINEAR
LinearFilter = GL_LINEAR
} ;
} ;
/** @brief Mip level selection */
/** @brief Mip level selection */
enum Mipmap {
enum Mipmap {
/**
/**
* Select base mipmap level .
* Select base mip level .
*/
*/
BaseLevel = 0 ,
BaseMip Level = GL_NEAREST & ~ GL_NEAREST ,
/**
/**
* Select nearest mip level .
* Select nearest mip level .
*/
*/
NearestLevel = 0x100 ,
NearestMip Level = GL_NEAREST_MIPMAP_NEAREST & ~ GL_NEAREST ,
/**
/**
* Linear interpolation of nearest mip levels .
* Linear interpolation of nearest mip levels .
*/
*/
LinearInterpolation = 0x102
LinearMip Interpolation = GL_NEAREST_MIPMAP_LINEAR & ~ GL_NEAREST
} ;
} ;
/** @brief Texture wrapping on the edge */
/** @brief Texture wrapping on the edge */
@ -161,7 +161,7 @@ template<size_t dimensions> class Texture {
* creating the texture , otherwise it will be unusable .
* creating the texture , otherwise it will be unusable .
* @ see generateMipmap ( )
* @ see generateMipmap ( )
*/
*/
inline void setMinificationFilter ( Filter filter , Mipmap mipmap = BaseLevel ) {
inline void setMinificationFilter ( Filter filter , Mipmap mipmap = BaseMip Level ) {
bind ( ) ;
bind ( ) ;
glTexParameteri ( target , GL_TEXTURE_MIN_FILTER , filter | mipmap ) ;
glTexParameteri ( target , GL_TEXTURE_MIN_FILTER , filter | mipmap ) ;
unbind ( ) ;
unbind ( ) ;