[PATCH 1/3] d3dx9/line: Implemented ID3DXLine's Draw method.
matteo.mystral at gmail.com
Thu Jun 30 07:36:33 CDT 2011
2011/6/30 Charles Welton <charleswfb at 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...
More information about the wine-devel