Re: [PATCH 1/3] d3dx9/line: Implemented ID3DXLine's Draw method.
30 Jun
2011
30 Jun
'11
12:36 p.m.
2011/6/30 Charles Welton <charleswfb(a)gmail.com>:
---
+ memcpy(buffer_mem, vertices, size);
There is no need to allocate and write into your own buffer then copy the content, you can directly write into the vertex buffer. A more important issue: MSDN says "The ID3DXLine interface implements line drawing using textured triangles", which is probably true (as far as I know there is otherwise no support in D3D9 to antialiased/stippled/wide lines, which are instead supported by ID3DXLine). So, drawing with D3DPT_LINESTRIP primitives in general is probably not the right way...
5282
Age (days ago)
5282
Last active (days ago)
0 comments
1 participants
participants (1)
-
Matteo Bruni