How to use VS2008 express and DirectX to draw a circle?

Just want to do some very simple graphics. Like a circle or a square. Any website teaches us how to do that? Thanks
Thanks Mythios!!

Anymore? Please post
Use trigonometric functions to draw the approximation of a circle ( you need to draw a regular polygon with many sides )
You'll never learn anything with websites, apart MSDN.
Why don't you see the dozens of MS samples from DirectX SDK ?!
Last edited on
closed account (z05DSL3A)
george135 wrote: You'll never learn anything with websites, apart MSDN.


..in that case, I will not have learnt that I will never learn anything with websites, so I can learn from websites and what I have learnt is that that is another crap comment brought to you by george135...

Seriously, george, why do you bother?
Why don't you see the dozens of MS samples from DirectX SDK ?!


I am new to visual C++; could you please post the link of MSDN DirectX examples? I googled those keywords, but have could not find. Thanks
Ignore george135, the only keys he has on his keyboard are letters 'M' 'S' 'D' 'N' and Windows logo

To draw a (filled) circle with triangles:
Start a triangle fan
put the central vertex
iterate angles
    draw the vertex at centralX+radius*cos(angle), centralY+radius*sin(angle)
The DirectX samples are provided as part of the DirectX SDK and can be found in the folder:
<InstallDir>\Microsoft DirectX SDK (<SDKdate>)\Samples

The provided SDK documentation can be found in:
<InstallDir>\Microsoft DirectX SDK (<SDKdate>)\Documentation

Tutorials can be found in the Documentation at:
DirectX Graphics -> Direct3D X -> Tutorials and Samples

The provided SDK samples and documentation are pretty good, but there's still plenty that can be learned online as well. Claiming otherwise is just assinine.
Topic archived. No new replies allowed.