00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "def.h"
00011
00012
00013 int graphics = FALSE;
00014
00015
00016 void
00017 graphics_init()
00018 {
00019 printf("null graphics device is open\n");
00020 graphics = TRUE;
00021 }
00022
00023
00024
00025 #define INCHES 100
00026
00027
00028 void
00029 draw_line(x1,y1,x2,y2)
00030 double x1, y1, x2, y2;
00031 {
00032 if (!graphics) graphics_init();
00033 printf("draw line from (%g,%g) to (%g,%g)\n", x1, y1, x2, y2);
00034 }
00035
00036
00037 void
00038 draw_string(str,x,y)
00039 char *str;
00040 double x,y;
00041 {
00042 if (!graphics) graphics_init();
00043 printf("draw string \"%s\" at (%g,%g)\n", str, x, y);
00044 }
00045
00046
00047 void
00048 graphics_close()
00049 {
00050 printf("close graphics device\n");
00051 graphics = FALSE;
00052 }