OpenGL函数思考-glHint
转载自:http://blog.csdn.net/shuaihj/article/details/7230867
应用:glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); 如果OpenGL不能有效的支持透视修正参数差值,那么GL_DONT_CARE 和 GL_FASTEST可以执行颜色、纹理坐标的简单线性差值计算。
函数原型:
voidglHint(GLenum target,GLenum mod)
函数说明:
该函数控制OpenGL在某一方面有解释的余地时,所采取的操作行为。
参数说明:
target:指定所控制行为的符号常量,可以是以下值
mod:指定所采取行为的符号常量,可以是以下值
https://www.opengl.org/sdk/docs/man2/xhtml/glHint.xml:
glHint — specify implementation-specific hintsC Specificationvoid glHint(GLenum target, GLenum mode); Parameterstarget
Specifies a symbolic constant indicating the behavior to be controlled.
GL_FOG_HINT,
GL_GENERATE_MIPMAP_HINT,
GL_LINE_SMOOTH_HINT,
GL_PERSPECTIVE_CORRECTION_HINT,
GL_POINT_SMOOTH_HINT,
GL_POLYGON_SMOOTH_HINT,
GL_TEXTURE_COMPRESSION_HINT, and
GL_FRAGMENT_SHADER_DERIVATIVE_HINT
are accepted.
mode
Specifies a symbolic constant indicating the desired behavior.
GL_FASTEST,
GL_NICEST, and
GL_DONT_CARE are accepted.