Thoughts on OpenGL functions-glhint

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.