1
0
mirror of https://github.com/thes3m/XNI synced 2024-12-26 13:26:06 +01:00
XNI/Classes/Retronator/Xni/Framework/RectangleStruct.h
Matej Jan 43c1f445db Added initial Rectangle implementation.
git-svn-id: http://xni.googlecode.com/svn/XNI@6 ac433895-eea3-a490-d80a-17149a75e588
2010-07-22 15:20:04 +00:00

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;
}