quakeforge/tools/Forge/Headers/CameraView.h
Jeff Teunissen 25f8a50ef4 Okay, that was stupid. ProjectCenter isn't good enough yet, so I'm back to
writing makefiles by hand.

Add a makefile preamble to set up our flags.

Compartmentalize all the headers into a Headers/ dir.
2001-02-27 21:18:27 +00:00

64 lines
1.1 KiB
Objective-C

#import <AppKit/AppKit.h>
#import "mathlib.h"
#import "SetBrush.h"
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 angles[3];
NSRect bounds;
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
id mode_radio_i;
}
- setXYOrigin: (NSPoint) point;
- setZOrigin: (float) point;
- setOrigin: (vec3_t) org angle: (float) angle;
- getOrigin: (vec3_t) org;
- (float) yawAngle;
- matrixFromAngles;
- (void) _keyDown: (NSEvent *) theEvent;
- drawMode: (NSMatrix) sender;
- setDrawMode: (drawmode_t) mode;
- homeView: sender;
- XYDrawSelf; // for drawing viewpoint in XY view
- ZDrawSelf; // for drawing viewpoint in XY view
- (BOOL) XYmouseDown: (NSPoint) pt flags: (unsigned int) flags; // return YES if brush handled
- (BOOL) ZmouseDown: (NSPoint) pt flags: (unsigned int) flags; // return YES if brush handled
- upFloor: sender;
- downFloor: sender;
@end