[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: [PATCH 1/3] d3dx9/line: Implemented ID3DXLine's Draw method.
From:       Matteo Bruni <matteo.mystral () gmail ! com>
Date:       2011-06-30 12:36:33
Message-ID: BANLkTi=vUitgbG2XLjPiYNvhm-SdtRL_2g () mail ! gmail ! com
[Download RAW message or body]

2011/6/30 Charles Welton <charleswfb@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...


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic