E_SC
E_SC

Reputation: 21

How to change line thickness for OpenGL shapes?

Using OpenGL and C++, I can draw a shape but I want to make the line of the shape thicker. How to do this?

Upvotes: 2

Views: 2882

Answers (3)

delete_this_account
delete_this_account

Reputation: 2446

glLineWidth(n);

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

Upvotes: 1

Ray
Ray

Reputation: 4671

glLineWidth(n);

where n is the width of the line in pixels.

Upvotes: 3

epatel
epatel

Reputation: 46051

Have a look at glLineWidth(..)

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

Upvotes: 4

Related Questions