home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
comm
/
ykh121.zip
/
YKHSRC.ZIP
/
GRAPH.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-18
|
2KB
|
57 lines
#include "gfxlib.h"
#include "txtlib.h"
#include "graph.h"
#include "font.h"
int far (*graph_init )(unsigned,char,char,char far* );
int far (*graph_deinit )(void );
void far (*graph_put )(unsigned,unsigned,unsigned );
void far (*graph_ascii_put)(unsigned,unsigned,unsigned );
void far (*graph_clear )(unsigned,unsigned,unsigned,unsigned);
void far (*graph_set )(unsigned,unsigned,unsigned,unsigned);
void far (*graph_xor )(unsigned,unsigned,unsigned,unsigned);
void far (*graph_bold8 )(unsigned,unsigned,unsigned,unsigned);
void far (*graph_underline)(unsigned,unsigned,unsigned,unsigned);
void far (*graph_gray )(unsigned,unsigned,unsigned,unsigned);
void far (*graph_fcopy )(unsigned,unsigned,unsigned,unsigned,unsigned,unsigned);
void far (*graph_bcopy )(unsigned,unsigned,unsigned,unsigned,unsigned,unsigned);
void graphics_init(int mode)
{
switch(mode)
{
case GRAPH_TEXT:
graph_init =txt_init;
graph_deinit =txt_deinit;
graph_put =txt_put;
graph_ascii_put=txt_ascii_put;
graph_clear =txt_clear;
graph_set =txt_set;
graph_xor =txt_xor;
graph_bold8 =txt_bold8;
graph_underline=txt_underline;
graph_gray =txt_gray;
graph_fcopy =txt_fcopy;
graph_bcopy =txt_bcopy;
break;
case GRAPH_GRAPHICS:
graph_init =gfx_init;
graph_deinit =gfx_deinit;
graph_put =font_put;
graph_ascii_put=gfx_ascii_put;
graph_clear =gfx_clear;
graph_set =gfx_set;
graph_xor =gfx_xor;
graph_bold8 =gfx_bold8;
graph_underline=gfx_underline;
graph_gray =gfx_gray;
graph_fcopy =gfx_fcopy;
graph_bcopy =gfx_bcopy;
break;
}
}
void graphics_deinit()
{
}