comparison src/video/SDL_video.c @ 3603:847549156244

Removed in the interest of actually finishing 1.3. :) They can be done later, either by me or by someone else.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 30 Dec 2009 19:10:41 +0000
parents 0f958e527e5e
children 8e961ef35d4b
comparison
equal deleted inserted replaced
3602:bfa8d34ce03a 3603:847549156244
2670 return renderer->RenderFillRects(renderer, &rect, 1); 2670 return renderer->RenderFillRects(renderer, &rect, 1);
2671 } 2671 }
2672 } 2672 }
2673 return renderer->RenderFillRects(renderer, rects, count); 2673 return renderer->RenderFillRects(renderer, rects, count);
2674 } 2674 }
2675
2676 #if 0
2677 int
2678 SDL_RenderDrawCircle(int x, int y, int radius)
2679 {
2680 return SDL_RenderDrawEllipse(x, y, 2*radius, 2*radius);
2681 }
2682
2683 int
2684 SDL_RenderFillCircle(int x, int y, int radius)
2685 {
2686 return SDL_RenderFillEllipse(x, y, 2*radius, 2*radius);
2687 }
2688
2689 int SDL_RenderDrawEllipse(int x, int y, int w, int h)
2690 {
2691 SDL_Renderer *renderer;
2692
2693 renderer = SDL_GetCurrentRenderer(SDL_TRUE);
2694 if (!renderer) {
2695 return -1;
2696 }
2697 if (!renderer->RenderDrawEllipse) {
2698 SDL_Unsupported();
2699 return -1;
2700 }
2701 return renderer->RenderDrawEllipse(renderer, x, y, w, h);
2702 }
2703
2704 int SDL_RenderFillEllipse(int x, int y, int w, int h)
2705 {
2706 SDL_Renderer *renderer;
2707
2708 renderer = SDL_GetCurrentRenderer(SDL_TRUE);
2709 if (!renderer) {
2710 return -1;
2711 }
2712 if (!renderer->RenderFillEllipse) {
2713 SDL_Unsupported();
2714 return -1;
2715 }
2716 return renderer->RenderFillEllipse(renderer, x, y, w, h);
2717 }
2718 #endif // 0
2719 2675
2720 int 2676 int
2721 SDL_RenderCopy(SDL_TextureID textureID, const SDL_Rect * srcrect, 2677 SDL_RenderCopy(SDL_TextureID textureID, const SDL_Rect * srcrect,
2722 const SDL_Rect * dstrect) 2678 const SDL_Rect * dstrect)
2723 { 2679 {