home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
back2roots/padua
/
padua.7z
/
padua
/
gfx
/
dkb212sr.lzh
/
mac.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-04-30
|
505b
|
30 lines
#include "frame.h"
#include "dkbproto.h"
#include <WindowMgr.h>
WindowPtr pwin;
display_finished() {}
display_close() {
DisposeWindow(pwin);
}
display_init() {
Rect brect;
SetRect(&brect, 10, 500, 522, 800);
pwin = NewWindow(0, &brect, "\pPlot", TRUE, noGrowDocProc, -1, FALSE, 0);
SetPort(pwin);
}
void display_plot (x, y, Red, Green, Blue) /* plot a single RGB pixel */
int x, y;
char Red, Green, Blue;
{
if (Red || Green || Blue) {
MoveTo(x,y);
LineTo(x,y);
}
}