Drawing Lines
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?
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
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
Quote:Original post by Grantyt3You can use "point list" rendering with D3DFVF_XYZRHW vertices to achieve this.
What about drawing pixels?
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement