Thoughts on OpenGL functions-Glhint
Function prototype:
Void
Glhint(Glenum target, glenum mod)
Parameter description:
Target: Specifies the symbolic constant of the Controlled behavior. It can be the following values:
- Gl_fog_hint: Specify the accuracy of atomization calculation. If OpenGL implementation does not effectively support the atomization calculation of each pixel, the calculation of each point in gl_dont_care and gl_fastest atomization effect is performed.
- Gl_line_smooth_hint: Specifies the sampling quality of the anti-sample line segment. If a large filter function is applied, gl_nicest can generate more pixel segments during raster.
- Gl_perspective_correction_hint: Specifies the difference quality between the color and texture coordinates. If OpenGL does not effectively support perspective correction parameter differences, gl_dont_care and gl_fastest can perform simple linear difference calculation of color and texture coordinates.
- Gl_point_smooth_hint: Specifies the sampling quality of the anti-sample point. If a large filter function is applied, gl_nicest can generate more pixel segments during raster.
- Gl_polygon_smooth_hint:Specify the sampling quality of the antisample polygon. If a large filter function is applied, gl_nicest can generate more pixel segments during raster.
MoD: Specifies the symbolic constant of the action, which can be the following values:
- Gl_fastest: select the fastest speed option.
- Gl_nicest: select the highest quality option.
- Gl_dont_care: do not consider the options.
Function Description:
This function controls the action taken by OpenGL when there is room for interpretation.