mirror of
https://github.com/thes3m/XNI
synced 2024-12-26 13:26:06 +01:00
22 lines
495 B
C
22 lines
495 B
C
typedef struct {
|
|
int x;
|
|
int y;
|
|
int width;
|
|
int height;
|
|
} RectangleStruct;
|
|
|
|
static inline RectangleStruct RectangleMake(int x, int y, int width, int height) {
|
|
RectangleStruct rectangle;
|
|
rectangle.x = x;
|
|
rectangle.y = y;
|
|
rectangle.width = width;
|
|
rectangle.height = height;
|
|
return rectangle;
|
|
}
|
|
|
|
static inline void RectangleSet(RectangleStruct *rectangle, int x, int y, int width, int height) {
|
|
rectangle->x = x;
|
|
rectangle->y = y;
|
|
rectangle->width = width;
|
|
rectangle->height = height;
|
|
} |