home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
174.lha
/
BezSurf
/
control.c
< prev
next >
Wrap
C/C++ Source or Header
|
1988-04-28
|
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();
}