fixed rectangles layout
This commit is contained in:
parent
47070363ff
commit
ba4a36ffe5
3 changed files with 4 additions and 46 deletions
|
|
@ -1,23 +0,0 @@
|
|||
#ifndef ARC_GRAPHICS_RECT_H_
|
||||
#define ARC_GRAPHICS_RECT_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "arc/graphics/color.h"
|
||||
#include "arc/graphics/renderer.h"
|
||||
#include "arc/math/rectangle.h"
|
||||
#include <stdint.h>
|
||||
|
||||
void ARC_Rect_Render(ARC_Rect *rect, ARC_Renderer *renderer, ARC_Color *color);
|
||||
|
||||
int32_t ARC_Rect_Intersects(ARC_Rect *rect1, ARC_Rect *rect2);
|
||||
|
||||
int32_t ARC_Rect_LineIntersects(ARC_Rect *rect, int32_t *x1, int32_t *y1, int32_t *x2, int32_t *y2);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // !ARC_GRAPHICS_RECT_H_
|
||||
|
|
@ -17,4 +17,8 @@ typedef struct ARC_URect {
|
|||
uint32_t h;
|
||||
} ARC_URect;
|
||||
|
||||
int32_t ARC_Rect_Intersects(ARC_Rect *rect1, ARC_Rect *rect2);
|
||||
|
||||
int32_t ARC_Rect_LineIntersects(ARC_Rect *rect, int32_t *x1, int32_t *y1, int32_t *x2, int32_t *y2);
|
||||
|
||||
#endif // ARC_MATH_POINT_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue