mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-07 13:41:32 +00:00
cdc79ae6f8
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.
32 lines
472 B
Objective-C
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
|