In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how UGL draws polygons. Xiaobian thinks it is quite practical, so share it with you for reference. I hope you can gain something after reading this article.
Drawing Polygon in WindML
The main function is uglPolygon(). The parameter pData is used to indicate the coordinates of each vertex. The first and last two points need to be consistent, so the number of numPoints is one more than the actual number of vertices of the polygon. In addition, you need to indicate the foreground color (border) and background color (fill).
and self-intersecting graphs.
What about borderless graphics? Two options: transparent foreground, or 0 line width
If the beginning and end are inconsistent, it indicates a non-closed figure, i.e. a broken line.
Different raster effects, uglRasterModeSet(), can refer to the line drawing operation
If the polygon you want to draw is a rectangle and one of its edges is horizontal, you can use uglRectangle() directly. Not only the parameters are simple, but more importantly: the underlying driver can be implemented with horizontal lines or area fills, coupled with the hardware acceleration function of the graphics card, the rendering speed can be improved hundreds of times.
About "UGL how to draw polygons" this article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.