home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d170 / surf.lha / Surf / src / control.c < prev    next >
C/C++ Source or Header  |  1988-11-22  |  751b  |  53 lines

  1. #include "bezpt.h"
  2. #include "control.h"
  3. #include "scrnio.h"
  4. #include "mytypes.h"
  5.  
  6. CURMODE CurMode  = DRAWPOLY;
  7.  
  8.  
  9. void SetFitBez()
  10. {
  11.     if( GetNumSegs() < 1 )  {
  12.         return;
  13.     }
  14.     ClrWindow(true);
  15.     CurMode = FITBEZIER;
  16.     XdrawAllBezSegs();
  17. }
  18.  
  19.  
  20.  
  21.  
  22. void SetPolyDraw()
  23. {
  24.     ClrWindow(true);
  25.     CurMode = DRAWPOLY;
  26.     ClearSegments();
  27. }
  28.  
  29.  
  30.  
  31.  
  32. void EditControl0(x,y)
  33. int x, y;
  34. {
  35.         DrawControl0();
  36.         XdrawBezSeg();
  37.         Cntrl1X(GetCurSeg()) = x;
  38.         Cntrl1Y(GetCurSeg()) = y;
  39.         XdrawBezSeg();
  40.         DrawControl0();
  41. }
  42.  
  43. void EditControl1(x,y)
  44. int x, y;
  45. {
  46.         DrawControl1();
  47.         XdrawBezSeg();
  48.         Cntrl2X(GetCurSeg()) = x;
  49.         Cntrl2Y(GetCurSeg()) = y;
  50.         XdrawBezSeg();
  51.         DrawControl1();
  52. }
  53.