开发者

How to change line thickness for OpenGL shapes?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜