quakeforge/ruamoko/qwaq/qwaq-rect.h
Bill Currie 6e74f2a03f [qwaq] remove @ from externs
I had forgotten that extern worked and that @extern was for headers that
might be compiled in traditional or extended modes.
2020-03-26 13:30:33 +09:00

28 lines
616 B
C

#ifndef __qwaq_rect_h
#define __qwaq_rect_h
typedef struct Point_s {
int x;
int y;
} Point;
typedef struct Extent_s {
int width;
int height;
} Extent;
typedef struct Rect_s {
Point offset;
Extent extent;
} Rect;
#ifdef __QFCC__
extern Rect makeRect (int xpos, int ypos, int xlen, int ylen);
extern Point makePoint (int x, int y);
extern Extent makeExtent (int width, int height);
extern Extent mergeExtents (Extent a, Extent b);
extern int rectContainsPoint (Rect rect, Point point);
extern Rect clipRect (Rect clipRect, Rect rect);
#endif
#endif//__qwaq_rect_h