예제 #1
0
파일: plsub.c 프로젝트: EQ4/SPTK
int circle(double x, double y, double rs, double re, double ths, double the)
{
   int r1, r2;

   r1 = _plnorm(rs);
   r2 = _plnorm(re);
   if (r1 == 0 && r2 == 0)
      return (1);
   _circle(_cordx(x), _cordy(y), r1, r2, _plnorm(ths), _plnorm(the));
   return (0);
}
예제 #2
0
파일: display.hpp 프로젝트: sferes2/fastsim
 void _circle(SDL_Surface* surf,
              int x_center, int y_center, int radius,
              Uint8 r, Uint8 g, Uint8 b) {
   _circle(surf, x_center, y_center, radius, SDL_MapRGB(surf->format, r, g, b));
 }