How to draw vertices in a vertex buffer in another color
问题 I'm using Direct3D 9 to draw lines. The vertices I am using now have the format D3DFVF_XYZ|D3DFVF_DIFFUSE and are stored in a vertex buffer. They are drawn with DrawPrimitive as D3DPT_LINELIST . How do I change the drawn color of a the whole drawn vertex buffer or even a specific vertex without locking the vertex buffer to modify it's content? This has to be done every frame. Is this possible with a vertex buffer? I would prefer a solution without a custom shader (using the default direct3d 9