2010-09-01 10:37:10 +00:00
|
|
|
#ifndef Clipper_h
|
|
|
|
#define Clipper_h
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-09 11:46:38 +00:00
|
|
|
#include <AppKit/AppKit.h>
|
|
|
|
|
|
|
|
#include "QF/mathlib.h"
|
|
|
|
|
|
|
|
#include "SetBrush.h"
|
|
|
|
|
2010-09-11 10:06:04 +00:00
|
|
|
extern id clipper_i;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-11 23:14:08 +00:00
|
|
|
@interface Clipper:NSObject
|
|
|
|
{
|
2010-09-11 10:06:04 +00:00
|
|
|
int num;
|
|
|
|
vec3_t pos[3];
|
|
|
|
plane_t plane;
|
2003-03-18 19:48:24 +00:00
|
|
|
}
|
|
|
|
|
2010-09-11 10:06:04 +00:00
|
|
|
-(BOOL) hide;
|
|
|
|
-XYClick:(NSPoint) pt;
|
|
|
|
-(BOOL) XYDrag:(NSPoint *) pt;
|
|
|
|
-ZClick:(NSPoint) pt;
|
|
|
|
-carve;
|
2010-09-28 19:43:35 +00:00
|
|
|
- (void) flipNormal;
|
2010-09-11 10:06:04 +00:00
|
|
|
-(BOOL) getFace:(face_t *) pl;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-28 19:43:35 +00:00
|
|
|
- (void) cameraDrawSelf;
|
|
|
|
- (void) XYDrawSelf;
|
|
|
|
- (void) ZDrawSelf;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
|
|
|
@end
|
2010-09-11 10:06:04 +00:00
|
|
|
#endif // Clipper_h
|