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 >
Wrap
C/C++ Source or Header
|
1988-11-22
|
751b
|
53 lines
#include "bezpt.h"
#include "control.h"
#include "scrnio.h"
#include "mytypes.h"
CURMODE CurMode = DRAWPOLY;
void SetFitBez()
{
if( GetNumSegs() < 1 ) {
return;
}
ClrWindow(true);
CurMode = FITBEZIER;
XdrawAllBezSegs();
}
void SetPolyDraw()
{
ClrWindow(true);
CurMode = DRAWPOLY;
ClearSegments();
}
void EditControl0(x,y)
int x, y;
{
DrawControl0();
XdrawBezSeg();
Cntrl1X(GetCurSeg()) = x;
Cntrl1Y(GetCurSeg()) = y;
XdrawBezSeg();
DrawControl0();
}
void EditControl1(x,y)
int x, y;
{
DrawControl1();
XdrawBezSeg();
Cntrl2X(GetCurSeg()) = x;
Cntrl2Y(GetCurSeg()) = y;
XdrawBezSeg();
DrawControl1();
}