Files
game-engine/src/engine/rectangle.h
2024-04-11 01:05:03 -04:00

12 lines
288 B
C

#pragma once
#include <SDL2/SDL.h>
#include "../COMMON.h"
typedef SDL_FRect Rectangle;
bool rectangle_collide(Rectangle* a, Rectangle* b);
bool rectangle_collide_intersection(Rectangle* a, Rectangle* b, Rectangle* intersection);
bool rectangle_has_point(Rectangle* self, vec2 point);