Jump to content
  • Advertisement
Sign in to follow this  
Grantyt3

Drawing Lines

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

How do you draw a line, or draw pixels in DirectX? I've read that you can't do that in DirectX, but you can with the Windows GDI... either way, does anyone know how?

Share this post


Link to post
Share on other sites
Advertisement
c#: Direct3D.Line
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_m_dec_2004/directx/ref/ns/microsoft.directx.direct3d/c/line/line.asp

Share this post


Link to post
Share on other sites
Quote:
Original post by Grantyt3
What about drawing pixels?
You can use "point list" rendering with D3DFVF_XYZRHW vertices to achieve this.

You can access texture and surface data directly via locking, but it's not particularly efficient and should be avoided unless you really need to.

hth
Jack

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!