home *** CD-ROM | disk | FTP | other *** search
/ gondwana.ecr.mu.oz.au/pub/ / Graphics.tar / Graphics / VOGLE.ZIP / VOGLE / SRC / MSFORT / FDRIVERS.FOR < prev    next >
Encoding:
Text File  |  2000-02-11  |  3.4 KB  |  170 lines

  1.       interface to subroutine C_voutput[c](s[reference])
  2.       character *(*) s
  3.       end
  4.  
  5.       interface to subroutine C_vinit[c](s[reference])
  6.       character *(*) s
  7.       end
  8.  
  9.       interface to subroutine C_vnewdev[c](s[reference])
  10.       character *(*) s
  11.       end
  12.  
  13.       interface to subroutine C_vgetdev[c](s[reference])
  14.       character *(*) s
  15.       end
  16.  
  17.       interface to subroutine C_pushdev[c](s[reference])
  18.       character *(*) s
  19.       end
  20.  
  21.       interface to subroutine C_popdev[c]()
  22.       end
  23.  
  24.       interface to subroutine C_vexit[c]()
  25.       end
  26.  
  27.       interface to subroutine C_clear[c]()
  28.       end
  29.  
  30.  
  31.       interface to subroutine C_color[c](i)
  32.       integer *2 i
  33.       end
  34.  
  35.       interface to subroutine C_mapcolor[c](i, r, g, b)
  36.       integer *2 i, r, g, b
  37.       end
  38.  
  39.       interface to function C_getdepth[c]()
  40.       integer *2 C_getdepth
  41.       end
  42.  
  43.       interface to function C_getkey[c]()
  44.       integer *2 C_getkey
  45.       end
  46.  
  47.       interface to function C_checkkey[c]()
  48.       integer *2 C_checkkey
  49.       end
  50.  
  51.       interface to function C_locator[c](x[reference],
  52.      +                                   y[reference])
  53.       integer *2 C_locator
  54.       end
  55.  
  56.       interface to function C_slocator[c](x[reference],
  57.      +                                   y[reference])
  58.       integer *2 C_slocator
  59.       end
  60.  
  61.  
  62.       interface to subroutine C_vsetflush[c](i)
  63.       integer *2 i
  64.       end
  65.  
  66.       interface to subroutine C_vflush[c]()
  67.       end
  68.  
  69.       subroutine voutput(s)
  70.       character *(*) s
  71.       character *128 t_string
  72.  
  73.       call C_voutput(t_string(s))
  74.       end
  75.  
  76.       subroutine vinit(s)
  77.       character *(*) s
  78.       character *128 t_string
  79.  
  80.       call C_vinit(t_string(s))
  81.       end
  82.  
  83.       subroutine vnewdev(s)
  84.       character *(*) s
  85.       character *128 t_string
  86.  
  87.       call C_vnewdev(t_string(s))
  88.       end
  89.  
  90.       subroutine pushdev(s)
  91.       character *(*) s
  92.       character *128 t_string
  93.  
  94.       call C_pushdev(t_string(s))
  95.       end
  96.  
  97.       subroutine popdev
  98.       call C_popdev
  99.       end
  100.  
  101.       subroutine vgetdev(s)
  102.       character *(*) s
  103.       call C_vgetdev(s)
  104. c
  105. c    find terminating null and space fill it all
  106. c
  107.       l = len(s)
  108.       do 10 i = 1, l
  109.           if (ichar(s(i : i)) .eq. 0) then
  110.               do 5, j = i, l
  111.                   s(j : j) = ' '
  112. 5             continue
  113.           end if
  114. 10    continue
  115.       end
  116.  
  117.       subroutine vexit
  118.       call C_vexit
  119.       end
  120.  
  121.       subroutine clear
  122.       call C_clear
  123.       end
  124.  
  125.       subroutine color(i)
  126.       call C_color(i)
  127.       end
  128.   
  129.       subroutine mapcolor(i, r, g, b)
  130.       integer i, r, g, b
  131.       call C_mapcolor(i, r, g, b)
  132.       end
  133.  
  134.       integer function getdepth()
  135.       integer *2 C_getdepth
  136.       getdepth = C_getdepth()
  137.       end
  138.   
  139.       integer function getkey()
  140.       integer *2 C_getkey
  141.       getkey = C_getkey()
  142.       end
  143.   
  144.       integer function checkkey()
  145.       integer *2 C_checkkey
  146.       checkkey = C_checkkey()
  147.       end
  148.  
  149.       integer function locator(x, y)
  150.       integer *2 C_locator
  151.       locator = C_locator(x, y)
  152.       end
  153.  
  154.       integer function slocator(x, y)
  155.       integer *2 C_slocator
  156.       slocator = C_slocator(x, y)
  157.       end
  158.  
  159.       subroutine vsetflush(i)
  160.       call C_vsetflush(i)
  161.       end
  162.       
  163.       subroutine vsetfl(i)
  164.       call C_vsetflush(i)
  165.       end
  166.       
  167.       subroutine vflush
  168.       call C_vflush
  169.       end
  170.