• Advertisement
Sign in to follow this  

Drawing Lines

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