Jump to content
  • Advertisement
Sign in to follow this  
RegularKid

glLineWidth simulation...

This topic is 3627 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm working on a system where glLineWidth() doesn't quite work the way it does on Windows. I can't specify anything over 1.0 ( it just clamps it to 1 ). So I'm unable to render thick lines. Anyone know of a good way I can "fake" this using triangles? Ideally I'd like to write a function like this: DrawLineWidth( float x, float y ); That would magically do what glLineWidth() would do for me normally :) Anyone have any ideas on the best approach for this? Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Draw a quad?

This may help with finding the corner points: http://www.gamedev.net/community/forums/topic.asp?topic_id=367293

Edit: Obviously this might not be what you want (or it would be rather more complicated) if you're using stippling, unless you combine it with a shader or something.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!