Drawing Lines

Started by
2 comments, last by jollyjeffers 18 years ago
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?
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
What about drawing pixels?
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

<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ | MVP Profile | Developer Journal ]</small>

This topic is closed to new replies.

Advertisement