home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / mbug / mbug120.arc / PASCAL.LBR / TURBOPCG.DOC < prev    next >
Text File  |  1979-12-31  |  4KB  |  100 lines

  1.                 MicroBeσ Turb∩ Pasca∞ Pcτ Handler
  2.                 =================================
  3.  
  4.                                      Phi∞ Parton¼ Octobe≥ 1985.
  5.  
  6. Description
  7. -----------
  8.      TURBOPCG.PA╙á contain≤á ßá se⌠á oµá pasca∞á routine≤á t∩á bσ ì
  9. INCLUDEΣá iεá thσ user'≤ program«á Thesσ routine≤ initializσá thσ ì
  10. screeεá fo≥ graphics¼á se⌠ selecteΣ pixel≤ anΣ maintaiεá thσá Pcτ ì
  11. ram¼á hencσ givinτ graphic≤ capabilitie≤ t∩ Microbeσ Turb∩ Pasca∞ ì
  12. users.
  13.  
  14. OverView
  15. --------
  16.      Thσ routine≤ worδ oε thσ 80x2┤ screeε forma⌠ givinτ ß screeε ì
  17. resolutioεá oµ 640x26┤ pixels¼á witΦ ß Pcτ characte≥ sizσ oµ 8x1▒ ì
  18. pixel≤á a≤á thσ las⌠ ╡ byte≤ oµ ß pcτ arσ no⌠ displayeΣá oεá thi≤ ì
  19. format«á Bu⌠á the∙á arσá useΣá b∙á thσá routine≤á t∩á storσá somσ ì
  20. internal information.
  21.  
  22.      Thσ handle≥ WIL╠ NO╘ overwritσ tex⌠ oε thσ screen¼ n∩ error≤ ì
  23. wil∞ occur¼á thσ pixe∞ jus⌠ won'⌠ bσ set«á ╔ chosσ t∩ d∩ thi≤á t∩ ì
  24. minimise Pcg usage, allowing more graphics on the screen.
  25.  
  26.      TURBOPC╟ contain≤ onl∙ thσ rudiment≤ oµ ß pcτ handler¼ iσ n∩ ì
  27. equivalent≤á t∩á MicroworlΣ basic'≤ Rese⌠ o≥ Invert«á ╔á hopσá t∩ ì
  28. extenΣá i⌠ sometimσ iε thσ futurσ anΣ woulΣ welcomσ yo⌡ comments¼ ì
  29. criticisms anΣ ROUTINES!
  30.  
  31.      Thσá codσá i≤á fa≥á froφá perfect¼á confusinτá anΣá sparsel∙ ì
  32. documented¼á ╔ aφ hopinτ fo≥ somσ inpu⌠ beforσ ╔ d∩ an∙ more«á Iµ ì
  33. you want more information just ask.
  34.  
  35. TURGRAF
  36. -------
  37.      ╔ als∩ supplieΣ ß simplσ graphic≤ package¼á TURGRAF.PA╙á anΣ ì
  38. TURGRAF.DOC«á Thi≤á contain≤á ß linσ generatinτ routinσá anΣá thσ ì
  39. rudiments of a graphics system.
  40.          OPENGRAF
  41.          SETWINDOW
  42.          SETVIEWPORT
  43.          MOVETO
  44.          DRAWTO
  45. See TURGRAF.DOC for more info.
  46.  
  47. USING TURBOPCG
  48. --------------
  49.      Thσá sourcσá codσ contain≤ somσ declaratioε statement≤á tha⌠ ì
  50. shoulΣ bσ globa∞ t∩ thσ program«á Thereforσ i⌠ shoulΣ bσ includeΣ ì
  51. between your declartion statements and program or procedures.
  52.  
  53. The sequence of calls to use the handler should be...
  54.  
  55. 1) InitBee; {No Parameters}
  56.      Thi≤á fill≤á thσá screeεá witΦá 'softºá blanks¼áá iσá ßá pcτ ì
  57. character set as a blank. It also initializes some variables.è
  58. 2) User calls to SetPixel.
  59.      SetPixel(x,y);    {Paramters are integers passed by value }
  60.   or SetPixel(10,12);  {hence constants are allowed.}
  61.  
  62.      Note║ Thσ pixel≤ arσ numbe≥ 0..63╣ anΣ 0..26│ witΦ origiε a⌠  ì
  63. lowe≥ lef⌠ hanΣ corne≥ AN─ tha⌠ thσ routine≤ don'⌠ checδ tha⌠ thσ ì
  64. parameter≤ arσ lega∞ values« I⌠ woulΣ bσ ver∙ eas∙ t∩ inser⌠ sucΦ ì
  65. ß checδ though«á ╔ didn'⌠ becausσ ╔ wrotσ thi≤ t∩ g∩ witΦ TURGRA╞ ì
  66. which does all such checking.
  67.  
  68. 3) At the end of graphics make a call to...
  69.      DisplayWorkCell; {No parameters}
  70.    Thσá reasoεá fo≥á thi≤ i≤ ß bi⌠ comple° anΣ arise≤á ou⌠á oµá ε ì
  71. effor⌠ oµ minσ t∩ speeΣ u≡ thσ plotting«á Iµ yo⌡ don'⌠ cal∞á thi≤ ì
  72. procedurσá i⌠á i≤ possiblσ somσ pixel≤ yo⌡ selecteΣ won'⌠ bσá se⌠ ì
  73. after your plotting has finished. 
  74.  
  75.      Thσ Booleaε variablσ GrafOδ i≤ useΣ t∩ indicatσ iµ therσ arσ ì
  76. an∙ morσ freσ PCGs¼á TRU┼ iµ so« Iµ GrafOδ ╜ FALS┼ anΣ yo⌡ makσ ß ì
  77. cal∞ t∩ SetPixe∞ n∩ actioε t∩ se⌠ thσ pixe∞ wil∞ bσ taken¼ iσ thσ ì
  78. routines will ignore any subsequent calls to SetPixel.
  79.  
  80. BUGS
  81. ----
  82.      Iµ yo⌡ finΣ an∙ pleasσ tel∞ me!!
  83.      ╔á wrotσá thi≤ abou⌠ ╢ month≤ ag∩ useΣ i⌠ ß couplσ oµá time≤ ì
  84. anΣ forgo⌠ abou⌠ it¼ s∩ i⌠ ha≤ no⌠ beeε wel∞ tested.
  85.  
  86.      Thσ Pcτ routine≤ havσ n∩ wa∙ oµ knowinτ wherσ yo⌡ placσ tex⌠ ì
  87. oεá thσ screen«á Iµ yo⌡ overwritσ an∙ graphic≤ thσá routine≤á arσ ì
  88. likel∙ t∩ thinδ tha⌠ pcτ cha≥ yo⌡ eraseΣ i≤ stil∞ requireΣ anΣ i⌠ ì
  89. won'⌠ bσ recovered¼á hencσ yo⌡ loosσ somσ pcτ memory« Therσ arσ ß ì
  90. couplσá oµá way≤á arounΣá thi≤á bu⌠á unfortunatel∙á the∙á involvσ ì
  91. routine≤ ╔ haven'⌠ writteε yet.
  92.  
  93. GOOD LUCK!
  94. ----------
  95.  
  96.      Pleasσá don'⌠á hestitatσ t∩ contac⌠ mσ viß thσ BBS≤á iµá yo⌡ ì
  97. have any queries, complaints or abuse.
  98.  
  99.                               Phil Parton.
  100.