开发者

How to change line thickness for OpenGL shapes?

开发者 https://www.devze.com 2023-02-17 00:10 出处:网络
Using OpenGL and C++, I can draw a shape but I want to make the l开发者_JAVA技巧ine of the shape thicker. How to do this?Have a look at glLineWidth(..)

Using OpenGL and C++, I can draw a shape but I want to make the l开发者_JAVA技巧ine of the shape thicker. How to do this?


Have a look at glLineWidth(..)

http://www.opengl.org/sdk/docs/man/xhtml/glLineWidth.xml


glLineWidth(n);

where n is the width of the line in pixels.


glLineWidth(n);

is the function but sometimes it will have no effect because of the hardware acceleration. Use software rendering first.

0

精彩评论

暂无评论...
验证码 换一张
取 消