Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool MenuShow = True;
- void CircleFilled(int x, int y, int r, int s, DWORD color,LPDIRECT3DDEVICE9 pDevice)
- {
- float Step = 3.14159265*2.0/s; // Add this back in for Sides.
- for (float a=0; a < 3.14159265*2.0; a += Step)
- {
- float x1 = r * cos(a) + x;
- float y1 = r * sin(a) + y;
- float x2 = r * cos(a+Step) + x;
- float y2 = r * sin(a+Step) + y;
- FillRGB(x1,y1,x2,y2,color,pDevice);
- }
- }
- if(MenuShow)
- CircleFilled(0,0,20,9500000000, Green, pDevice);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement