first commit
This commit is contained in:
11
src/engine/rectangle.h
Normal file
11
src/engine/rectangle.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#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);
|
Reference in New Issue
Block a user