mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 15:51:36 +00:00
767d871fb8
It won't work yet as there's no gorm file and there's code that has been commented out, but it finally compiles.
48 lines
754 B
Objective-C
48 lines
754 B
Objective-C
#ifndef ZView_h
|
|
#define ZView_h
|
|
|
|
#include <AppKit/AppKit.h>
|
|
|
|
#include "QF/mathlib.h"
|
|
|
|
#include "render.h"
|
|
|
|
extern id zview_i;
|
|
|
|
// zplane controls the objects displayed in the xyview
|
|
extern float zplane;
|
|
extern float zplanedir;
|
|
|
|
@interface ZView : NSView
|
|
{
|
|
float minheight, maxheight;
|
|
float oldminheight, oldmaxheight;
|
|
float topbound, bottombound; // for floor clipping
|
|
|
|
float scale;
|
|
|
|
vec3_t origin;
|
|
}
|
|
|
|
- clearBounds;
|
|
- getBounds: (float *)top :(float *)bottom;
|
|
|
|
- getPoint: (NSPoint *)pt;
|
|
- setPoint: (NSPoint *)pt;
|
|
|
|
- addToHeightRange: (float)height;
|
|
|
|
- newRealBounds;
|
|
- newSuperBounds;
|
|
|
|
- XYDrawSelf;
|
|
|
|
- (BOOL)XYmouseDown: (NSPoint *)pt;
|
|
|
|
- setXYOrigin: (NSPoint *)pt;
|
|
|
|
- setOrigin: (NSPoint *)pt scale: (float)sc;
|
|
|
|
@end
|
|
|
|
#endif//ZView_h
|