Jump to content
  • Advertisement
Sign in to follow this  
nixon

PrimitiveType.LineList

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

Hello, Im using the Microsoft SDK SampleFramework. Whenever I draw lines, they appear black (code that is colored in another project). Does anybody have a clue why? I've also not been able to change the size of the line. I know how to do it with points: device.RenderState.PointSize = 3.0f; Please Help.

Share this post


Link to post
Share on other sites
Advertisement
Have you got a material set? The default material is all black.

And you can't change the width of the line primitive. You'll have to move to a stretched quad if you want to control line thickness.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!