Sign in to follow this  
Grantyt3

Drawing Lines

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this