| 1 |
/* |
| 2 |
|
| 3 |
kali.h by Ed Chi, summer 1994 |
| 4 |
|
| 5 |
$Id: kali.h,v 1.3 1996/06/11 05:36:08 slevy Exp $ |
| 6 |
$Log: kali.h,v $ |
| 7 |
Revision 1.3 1996/06/11 05:36:08 slevy |
| 8 |
Rationalize ChangeScale(), etc. routines. |
| 9 |
Pass DRAWER object to DrawCurrent(). |
| 10 |
Represent colors as int's, not GL-specific Colorindex's. |
| 11 |
|
| 12 |
* Revision 1.2 1994/12/15 05:19:53 munzner |
| 13 |
* add options to load file, specify window placement on command line. |
| 14 |
* |
| 15 |
* Revision 1.1 1994/08/26 16:29:02 chi |
| 16 |
* Initial revision |
| 17 |
* |
| 18 |
* Revision 1.1 1994/08/15 20:05:38 chi |
| 19 |
* Initial revision |
| 20 |
* |
| 21 |
|
| 22 |
*/ |
| 23 |
|
| 24 |
#ifndef KALI_H |
| 25 |
#define KALI_H |
| 26 |
|
| 27 |
#include "main.h" |
| 28 |
|
| 29 |
/*--------------------------------------- in kali.c */ |
| 30 |
|
| 31 |
extern void ChangeScale(double amount, SYMMETRY *sym); |
| 32 |
extern void ChangeRotation(double amount, SYMMETRY *sym); |
| 33 |
extern void ChangeRatio(double amount, SYMMETRY* sym); |
| 34 |
extern void ChangeAngle(double amount, SYMMETRY *sym); |
| 35 |
extern LINE *GrabLine(short i, LINE* first); |
| 36 |
extern LINE *DropLine(LINE *L); |
| 37 |
extern void SetUpOperatorInterface(); |
| 38 |
extern void GetCursor(POINT *p, RECTANGLE *r, float zoom); |
| 39 |
extern void DrawCurrent(RECTANGLE *rect, LINE *Lines, SYMMETRY *sym, |
| 40 |
POINT *pts, MATRIX *xforms, int count, |
| 41 |
DRAWER *drawer, int GridDisplay); |
| 42 |
extern void HighLiteLine(RECTANGLE *rect, LINE *cur, SYMMETRY *sym, |
| 43 |
POINT *pts, MATRIX *xforms, int count, |
| 44 |
int colour); |
| 45 |
extern void UseRightCopy(LINE *cur, SYMMETRY *sym, MATRIX *xforms, short |
| 46 |
pos); |
| 47 |
extern WINDOW MakeWindow(RECTANGLE *r, RECTANGLE *kwin); |
| 48 |
extern void AdjustWindowRectangle(RECTANGLE *r); |
| 49 |
extern int closest(POINT *new_pt, POINT *pts, int maxpts); |
| 50 |
extern void PrintLine(LINE* l); |
| 51 |
extern void DumpLines(LINE* Lines); |
| 52 |
extern void complain(RECTANGLE *win_rect, float zoom); |
| 53 |
extern LINE* ThrowAwayLines(LINE *Lines); |
| 54 |
extern void SaveProc(FILE *pat); |
| 55 |
extern void LoadProc(FILE *pat); |
| 56 |
|
| 57 |
|
| 58 |
/*----------------------------------------- variable decl in kali.c */ |
| 59 |
|
| 60 |
extern int frieze; |
| 61 |
extern int moron; |
| 62 |
extern int GridDisplay; |
| 63 |
|
| 64 |
|
| 65 |
extern float zoom; |
| 66 |
extern RECTANGLE win_rect,sym_rect; |
| 67 |
extern int mode; |
| 68 |
extern POINT *sym_pts; |
| 69 |
extern int count; |
| 70 |
extern MATRIX xforms[5]; |
| 71 |
extern SYMMETRY *sym; |
| 72 |
extern SYMMETRY sym_storage; |
| 73 |
extern int sym_index; |
| 74 |
extern LINE *Lines; |
| 75 |
extern int pick_for; |
| 76 |
extern void (*xformfnc) (); |
| 77 |
extern int lit; |
| 78 |
extern WINDOW win; |
| 79 |
|
| 80 |
|
| 81 |
#endif |
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|