are there any good tutorials for manipulating triangles, I am trying get the colors to fade from one point to the next on a triangle
🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
directx9 triangle
http://www.nemaloknig.net/read-49452/?page=6
ignore the shader parts.
you can also ignore the vertex buffer parts, and use drawprimitiveup instead
DrawPrimitiveUP(D3DPT_TRIANGLELIST
make the array with xyz,1,rgba color with the help D3DCOLOR_ARGB, u, v for each edges
SetFVF(D3DFVF_XYZ|D3DFVF_DIFFUSE|D3DFVF_TEX1);
simply draw them with DrawPrimitiveUP(D3DPT_TRIANGLELIST
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement