quakeforge/tools/Forge/Bundles/MapEdit/Clipper.h
Jeff Teunissen cdc79ae6f8 Add type information, don't return self most of the time
Start "modernizing" the code base; old code is based heavily in the
Smalltalk style, where everything that doesn't return a different object
returns self. This can be useful, but it isn't what is usually done these
days. Also, add type information (which didn't exist in "the old days" --
an object was an "id", not a "Foo *") to help with debugging.
2010-11-28 15:31:38 +09:00

32 lines
472 B
Objective-C

#ifndef Clipper_h
#define Clipper_h
#include <AppKit/AppKit.h>
#include "QF/mathlib.h"
#include "SetBrush.h"
extern id clipper_i;
@interface Clipper:NSObject
{
int num;
vec3_t pos[3];
plane_t plane;
}
-(BOOL) hide;
-XYClick:(NSPoint) pt;
-(BOOL) XYDrag:(NSPoint *) pt;
-ZClick:(NSPoint) pt;
-carve;
- (void) flipNormal;
-(BOOL) getFace:(face_t *) pl;
- (void) cameraDrawSelf;
- (void) XYDrawSelf;
- (void) ZDrawSelf;
@end
#endif // Clipper_h