quakeforge/ruamoko/gui/Point.r
Bill Currie cdc1f0c5e7 [libr] Treat ruamoko headers as system headers
Now that qfcc actually supports them properly.
2020-03-03 15:24:41 +09:00

19 lines
264 B
R

#include <gui/Point.h>
Point makePoint (int x, int y)
{
Point p = {x, y};
return p;
}
Point addPoint (Point a, Point b)
{
Point c = {a.x + b.x, a.y + b.y};
return c;
}
Point subtractPoint (Point a, Point b)
{
Point c = {a.x - b.x, a.y - b.y};
return c;
}