Jump to content
  • Advertisement
Sign in to follow this  
spiffycrony

Dot line in directx8

This topic is 4079 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

I am trying to draw a dotted line using directx8. I tried to take a line break it into smaller lines(and spaces) and draw these lines using DrawPrimitive D3DPT_LINELIST. The rendering is not really consistent with zooming. When I zoom the line closer the line doesnt look like a dotted line anymore. Sometimes most of the lines are joined together or have too much of space between them. Is there any inbuilt function to draw a dotted line in directx8?

Share this post


Link to post
Share on other sites
Advertisement
Use ID3DXLine interface.
With it you can simple draw dash and/or dotted lines by setting pattern with ID3DXLine::SetPattern() function.

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!