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.
精彩评论