home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
gondwana.ecr.mu.oz.au/pub/
/
Graphics.tar
/
Graphics
/
fermiVogle.tar.Z
/
fermiVogle.tar
/
devel
/
drivers
/
ibmpc
/
vega_tex.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-02-07
|
1KB
|
61 lines
#include "vogle.h"
#define SMALL_CHARS 0
#define LARGE_CHARS 1
static int vega_size = LARGE_CHARS;
extern unsigned _cur_color;
void
vega_string(str)
char *str;
{
char *p;
register int x, y, w;
x = vdevice.cpVx;
y = vdevice.sizeSy - vdevice.cpVy - (int) vdevice.hheight;
w = (int)vdevice.hwidth;
for (p = str; *p; p++) {
vegachar(x, y, *p, _cur_color, vega_size);
x += w;
}
vdevice.cpVx = x;
}
void
vega_char(c)
char c;
{
vegachar(vdevice.cpVx, vdevice.sizeSy - vdevice.cpVy - (int)vdevice.hheight, c, _cur_color, vega_size);
/*vdevice.cpVx += (int)vdevice.hwidth;*/
}
vegachar(x, y, c, n, size)
int x, y, c, n, size;
{
if (size == LARGE_CHARS) egalchar(x, y, c, n);
else egaschar(x, y, c, n);
}
vega_font(name)
char *name;
{
if (strcmp(name, "small") == 0) {
vega_size = SMALL_CHARS;
vdevice.hwidth = 8.0;
vdevice.hheight = 8.0;
} else if (strcmp(name, "large") == 0) {
vega_size = LARGE_CHARS;
vdevice.hwidth = 8.0;
vdevice.hheight = 14.0;
} else {
vega_size = LARGE_CHARS;
vdevice.hwidth = 8.0;
vdevice.hheight = 14.0;
return (0);
}
return (1);
}