quakeforge/tools/Forge/Bundles/MapEdit/ZView.h

51 lines
842 B
C
Raw Normal View History

#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;
2010-09-11 10:06:04 +00:00
@interface ZView: NSView
2010-09-11 16:41:18 +00:00
{
float minheight, maxheight;
float oldminheight, oldmaxheight;
float topbound, bottombound; // for floor clipping
2010-09-11 10:06:04 +00:00
float scale;
2010-09-11 10:06:04 +00:00
vec3_t origin;
2010-09-24 11:44:07 +00:00
NSBezierPath *checker;
}
- (id) clearBounds;
- (id) getBounds: (float *)top
: (float *)bottom;
- (id) getPoint: (NSPoint *)pt;
- (id) setPoint: (NSPoint *)pt;
- (id) addToHeightRange: (float)height;
- (id) newRealBounds;
- (id) newSuperBounds;
- (void) XYDrawSelf;
- (BOOL) XYmouseDown: (NSPoint *)pt;
- (id) setXYOrigin: (NSPoint *)pt;
- (id) setOrigin: (NSPoint)pt scale: (float)sc;
@end
2010-09-11 10:06:04 +00:00
#endif // ZView_h