OpenGl 纹理参数设置
void glTexParameterf(
GLenum target,
GLenum pname,
GLfloat param
);
想问下:
参数pname 有很多.但有2个我始终不明白什么意思.
一个是:GL_TEXTURE_MAG_FILTER
MSDN :
The texture magnification function is used when the pixel being textured maps to an area less than or equal to one texture element. It sets the texture magnification function to either GL_NEAREST or GL_LINEAR. (看的不是很懂,请高手翻译一下)
还有一个是:GL_TEXTURE_WRAP_T
MSDN:
Sets the wrap parameter for texture coordinate t to either GL_CLAMP or GL_REPEAT. See the discussion under GL_TEXTURE_WRAP_S. Initially, GL_TEXTURE_WRAP_T is set to GL_REPEAT.