experiments
This commit is contained in:
@@ -19,8 +19,8 @@ bool isIntersecting(SDL_Rect a) {
|
||||
for (int i = 0; i < allocatedRectCount; i++) {
|
||||
SDL_Rect b = allocatedRects[i];
|
||||
if (SDL_HasIntersection(&a, &b)) {
|
||||
printf("Rect intersection %d - X:%d, Y: %d, W: %d, H: %d with X:%d, Y: %d, W: %d, H: %d\n",
|
||||
allocatedRectCount, a.x, a.y, a.w, a.h, b.x, b.y, b.w, b.h);
|
||||
// printf("Rect intersection %d - X:%d, Y: %d, W: %d, H: %d with X:%d, Y: %d, W: %d, H: %d\n",
|
||||
// allocatedRectCount, a.x, a.y, a.w, a.h, b.x, b.y, b.w, b.h);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -88,7 +88,7 @@ SDL_Rect allocate_16x16(SDL_Texture *srcTexture, SDL_Renderer *renderer) {
|
||||
|
||||
SDL_SetRenderTarget(renderer, oldTarget);
|
||||
storeRect(destRect);
|
||||
printf("Rect X:%d, Y: %d, W: %d, H: %d\n", destRect.x, destRect.y, destRect.w, destRect.h);
|
||||
// printf("Rect X:%d, Y: %d, W: %d, H: %d\n", destRect.x, destRect.y, destRect.w, destRect.h);
|
||||
return destRect;
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ SDL_Rect allocate_32x32(SDL_Texture *srcTexture, SDL_Renderer *renderer) {
|
||||
|
||||
SDL_SetRenderTarget(renderer, oldTarget);
|
||||
storeRect(destRect);
|
||||
printf("Rect X:%d, Y: %d, W: %d, H: %d\n", destRect.x, destRect.y, destRect.w, destRect.h);
|
||||
// printf("Rect X:%d, Y: %d, W: %d, H: %d\n", destRect.x, destRect.y, destRect.w, destRect.h);
|
||||
return destRect;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user