2) chatgpt
#include <cmath>
void DrawCircle(LPDIRECT3DDEVICE9 m_pDevice, int X, int Y, int radius, D3DCOLOR color)
{
const int numSegments = 32; // You can adjust this for smoother or more segmented circles
const float angleIncrement = 2.0f * D3DX_PI / numSegments...