void circle(int rx, int ry, int r)
{
int x,y;
double d;//detail
const double pi = 3.14159265; //more or less
for(d=0; d<=2*pi; d+=0.01) //you can play with the value to be added to d
{
x=rx+sin(d)*r;
y=ry+sin(d+(pi/2))*r;
putpixel(x,y);
}
}
void render(int xLoc, int yLoc, int rad){
//create pLine here, dont feel like looking up params list for D3DXCreateLine()
D3DXVECTOR2 vec[360];
for(int i = 0; i < 360; ++i){
vec[i].x=xLoc+(rad*cos((i)*(PI/180)));
vec[i].y=yLoc+(rad*sin((i)*(PI/180)));
}
pLine->Begin();
pLine->Draw(vec,360,D3DCOLOR_XRGB(10,200,10));
pLine->End();
}
