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

79 lines
1.2 KiB
C
Raw Normal View History

#ifndef CameraView_h
#define CameraView_h
#include <AppKit/AppKit.h>
#include "QF/mathlib.h"
#include "SetBrush.h"
#include "render.h"
2010-09-11 10:06:04 +00:00
extern id cameraview_i;
extern byte renderlist[1024 * 1024 * 4];
void CameraMoveto (vec3_t p);
void CameraLineto (vec3_t p);
extern BOOL timedrawing;
@interface CameraView:NSView {
float xa, ya, za;
float move;
float *zbuffer;
unsigned *imagebuffer;
BOOL angleChange; // JR 6.8.95
vec3_t origin;
vec3_t matrix[3];
NSPoint dragspot;
drawmode_t drawmode;
// UI links
2010-09-11 10:06:04 +00:00
id mode_radio_i;
}
2010-09-11 10:06:04 +00:00
-setXYOrigin:(NSPoint *) pt;
-setZOrigin:(float) pt;
2010-09-11 10:06:04 +00:00
-setOrigin:(vec3_t)
org
angle:(float)
angle;
2010-09-11 10:06:04 +00:00
-getOrigin:(vec3_t) org;
2010-09-11 10:06:04 +00:00
-(float) yawAngle;
2010-09-11 10:06:04 +00:00
-matrixFromAngles;
-_keyDown:(NSEvent *) theEvent;
2010-09-11 10:06:04 +00:00
-drawMode:sender;
-setDrawMode:(drawmode_t) mode;
2010-09-11 10:06:04 +00:00
-homeView:sender;
2010-09-11 10:06:04 +00:00
-XYDrawSelf; // for drawing viewpoint in XY view
-ZDrawSelf; // for drawing viewpoint in XY view
-(BOOL) XYmouseDown:(NSPoint *)
pt
flags:(int)
flags; // return YES if brush handled
2010-09-11 10:06:04 +00:00
-(BOOL) ZmouseDown:(NSPoint *)
pt
flags:(int)
flags; // return YES if brush handled
-upFloor:sender;
-downFloor:sender;
2010-09-11 10:06:04 +00:00
@end
#endif // CameraView_h