home *** CD-ROM | disk | FTP | other *** search
- #define AED_XMAX 768
- #define AED_YMAX 575
-
- #define AED_XLAST (AED_XMAX - 1)
- #define AED_YLAST (AED_YMAX - 1)
-
- #define AED_VCHAR 13
- #define AED_HCHAR 8
- #define AED_VTIC 8
- #define AED_HTIC 7
-
- /* slightly different for AED 512 */
- #define AED5_XMAX 512
- #define AED5_XLAST (AED5_XMAX - 1)
-
- AED_init()
- {
- fprintf(outfile,
- "\033SEN3DDDN.SEC.7.SCT.0.1.80.80.90.SBC.0.AAV2.MOV.0.9.CHR.0.FFD");
- /* 2 3 4 5 7 6 1
- 1. Clear Screen
- 2. Set Encoding
- 3. Set Default Color
- 4. Set Backround Color Table Entry
- 5. Set Backround Color
- 6. Move to Bottom Lefthand Corner
- 7. Anti-Alias Vectors
- */
- }
-
-
- AED_graphics()
- {
- fprintf(outfile,"\033FFD\033");
- }
-
-
- AED_text()
- {
- fprintf(outfile,"\033MOV.0.9.SEC.7.XXX");
- }
-
-
-
- AED_linetype(linetype)
- int linetype;
- {
- static int color[2+9] = { 7, 1, 6, 2, 3, 5, 1, 6, 2, 3, 5 };
- static int type[2+9] = { 85, 85, 255, 255, 255, 255, 255, 85, 85, 85, 85 };
-
- if (linetype >= 10)
- linetype %= 10;
- fprintf(outfile,"\033SLS%d.255.",type[linetype+2]);
- fprintf(outfile,"\033SEC%d.",color[linetype+2]);
- }
-
-
-
- AED_move(x,y)
- int x,y;
- {
- fprintf(outfile,"\033MOV%d.%d.",x,y);
- }
-
-
- AED_vector(x,y)
- int x,y;
- {
- fprintf(outfile,"\033DVA%d.%d.",x,y);
- }
-
-
- AED_lrput_text(row,str) /* write text to screen while still in graphics mode */
- int row;
- char str[];
- {
- AED_move(AED_XMAX-((strlen(str)+2)*AED_HCHAR),AED_VTIC+AED_VCHAR*(row+1));
- fprintf(outfile,"\033XXX%s\033",str);
- }
-
-
- AED5_lrput_text(row,str) /* same, but for AED 512 */
- int row;
- char str[];
- {
- AED_move(AED5_XMAX-((strlen(str)+2)*AED_HCHAR),AED_VTIC+AED_VCHAR*(row+1));
- fprintf(outfile,"\033XXX%s\033",str);
- }
-
-
- AED_ulput_text(row,str) /* write text to screen while still in graphics mode */
- int row;
- char str[];
- {
- AED_move(AED_HTIC*2,AED_YMAX-AED_VTIC-AED_VCHAR*(row+1));
- fprintf(outfile,"\033XXX%s\033",str);
- }
-
-
- #define hxt (AED_HTIC/2)
- #define hyt (AED_VTIC/2)
-
- AED_reset()
- {
- fprintf(outfile,"\033SCT0.1.0.0.0.SBC.0.FFD");
- }
-
-
-