summaryrefslogtreecommitdiff
path: root/test/testintersections.c
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2009-12-09 15:56:56 +0000
committerSam Lantinga <slouken@libsdl.org>2009-12-09 15:56:56 +0000
commit8ee97202978d16e72b95ec62d9aa214d5527276e (patch)
treeadf2d5cb7d2a954df59b5b0211e21241faba2c3d /test/testintersections.c
parent304a6bbb6c70a9506b08e803c176a3bf6253cf27 (diff)
Added interfaces for batch drawing of points, lines and rects:
SDL_DrawPoints() SDL_BlendPoints() SDL_BlendLines() SDL_DrawLines() SDL_FillRects() SDL_BlendRects() SDL_RenderPoints() SDL_RenderLines() SDL_RenderRects() Renamed SDL_RenderFill() to SDL_RenderRect() --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404279
Diffstat (limited to 'test/testintersections.c')
-rw-r--r--test/testintersections.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/testintersections.c b/test/testintersections.c
index b935788f..b308c1d6 100644
--- a/test/testintersections.c
+++ b/test/testintersections.c
@@ -150,7 +150,7 @@ DrawRects(SDL_WindowID window)
SDL_SetRenderDrawBlendMode(SDL_BLENDMODE_NONE);
for (i = 0; i < num_rects; ++i) {
SDL_SetRenderDrawColor(255, 127, 0, 255);
- SDL_RenderFill(&rects[i]);
+ SDL_RenderRect(&rects[i]);
}
SDL_SetRenderDrawBlendMode(SDL_BLENDMODE_NONE);
}
@@ -197,7 +197,7 @@ DrawRectRectIntersections(SDL_WindowID window)
SDL_Rect r;
if (SDL_IntersectRect(&rects[i], &rects[j], &r)) {
SDL_SetRenderDrawColor(255, 200, 0, 255);
- SDL_RenderFill(&r);
+ SDL_RenderRect(&r);
}
}
@@ -272,7 +272,7 @@ main(int argc, char *argv[])
for (i = 0; i < state->num_windows; ++i) {
SDL_SelectRenderer(state->windows[i]);
SDL_SetRenderDrawColor(0xA0, 0xA0, 0xA0, 0xFF);
- SDL_RenderFill(NULL);
+ SDL_RenderRect(NULL);
}
srand(time(NULL));
@@ -326,7 +326,7 @@ main(int argc, char *argv[])
case SDL_WINDOWEVENT_EXPOSED:
SDL_SelectRenderer(event.window.windowID);
SDL_SetRenderDrawColor(0xA0, 0xA0, 0xA0, 0xFF);
- SDL_RenderFill(NULL);
+ SDL_RenderRect(NULL);
break;
}
break;
@@ -337,7 +337,7 @@ main(int argc, char *argv[])
for (i = 0; i < state->num_windows; ++i) {
SDL_SelectRenderer(state->windows[i]);
SDL_SetRenderDrawColor(0xA0, 0xA0, 0xA0, 0xFF);
- SDL_RenderFill(NULL);
+ SDL_RenderRect(NULL);
DrawRects(state->windows[i]);
DrawPoints(state->windows[i]);