home *** CD-ROM | disk | FTP | other *** search
/ The AGA Experience 2 / agavol2.iso / software / utilities / programmers / misc / graphics / c / sas / graphics.h < prev    next >
C/C++ Source or Header  |  1996-02-01  |  3KB  |  143 lines

  1. /* C Include file for my graphics functions */
  2. /* @ Paul Callaghan 1995 */
  3. /* $VER: Misc_Include v1.002 (22 Oct 1995) */
  4.  
  5. #ifndef Misc
  6. #define Misc
  7.  
  8. /// "Initialisation Routines"
  9. VOID __asm Graphics_Init(VOID);
  10. VOID __asm Graphics_Close(VOID);
  11.  
  12. struct Screen_Store * __asm Open_Screen
  13. (
  14.     register __d0 LONG width,
  15.     register __d1 LONG height,
  16.     register __d2 LONG depth,
  17.     register __d3 LONG vmode,
  18.     register __a0 APTR cmap);
  19.  
  20. VOID __asm Close_Screen(register __a0 APTR screen);
  21.  
  22. struct MaskPlane * __asm Init_Mask
  23. (
  24.     register __d0 LONG x_min,
  25.     register __d1 LONG y_min,
  26.     register __d2 LONG x_max,
  27.     register __d3 LONG y_max,
  28.     register __d4 LONG screen_x,
  29.     register __d5 LONG screen_y);
  30.  
  31. VOID __asm Free_Mask (register __a0 APTR mask);
  32.  
  33. ///
  34.  
  35. /// "Drawing Routines"
  36. VOID __asm Fill_Polygon
  37. (
  38.     register __a0 APTR screen,
  39.     register __a1 APTR vertex,
  40.     register __d0 LONG npoints,
  41.     register __d1 LONG colour);
  42.  
  43. VOID __asm Draw_Polygon
  44. (
  45.     register __a0 APTR screen,
  46.     register __a1 APTR vertex,
  47.     register __d0 LONG npoints,
  48.     register __d1 LONG colour);
  49.  
  50. VOID __asm Draw_Line
  51. (
  52.     register __a0 APTR screen,
  53.     register __d0 LONG x1,
  54.     register __d1 LONG y1,
  55.     register __d2 LONG x2,
  56.     register __d3 LONG y2,
  57.     register __d4 BYTE colour);
  58.  
  59. VOID __asm Write_Pixel
  60. (
  61.     register __a0 APTR screen,
  62.     register __d0 LONG x,
  63.     register __d1 LONG y,
  64.     register __d2 BYTE colour);
  65.  
  66. VOID __asm Screen_Clear (register __a0 APTR screen);
  67.  
  68. VOID __asm Show (register __a0 APTR screen);
  69. ///
  70.  
  71. /// "Fade Routines"
  72. VOID __asm Fade_To_White
  73. (
  74.     register __a0 APTR screen,
  75.     register __a1 APTR cmap);
  76.  
  77. VOID __asm Fade_To_Black
  78. (
  79.     register __a0 APTR screen,
  80.     register __a1 APTR cmap);
  81.  
  82. VOID __asm Fade
  83. (
  84.     register __a0 APTR screen,
  85.     register __a1 APTR source_cmap,
  86.     register __a2 APTR dest_cmap);
  87. ///
  88.  
  89. /// "IFF Handling Routines"
  90. VOID __asm Load_IFF
  91. (
  92.     register __a1 APTR screen,
  93.     register __a0 STRPTR file);
  94.  
  95. VOID __asm Save_IFF
  96. (
  97.     register __a1 APTR screen,
  98.     register __a0 STRPTR file);
  99. ///
  100.  
  101. /// "File Handling Routines"
  102. VOID __asm Load_Data
  103. (
  104.     register __a0 STRPTR file,
  105.     register __d0 LONG length,
  106.     register __a1 APTR dest);
  107.  
  108. VOID __asm Save_Data
  109. (
  110.     register __a0 STRPTR file,
  111.     register __d0 LONG length,
  112.     register __a1 APTR source);
  113. ///
  114.  
  115. /// "Text Functions"
  116. VOID __asm Write_Text
  117. (
  118.     register __a0 APTR screen,
  119.     register __a1 STRPTR text,
  120.     register __d0 LONG x,
  121.     register __d1 LONG y,
  122.     register __d2 LONG colour,
  123.     register __d3 LONG length);
  124.  
  125. // May not work anymore !
  126. STRPTR __asm Num_To_String (register __d0 num);
  127. ///
  128.  
  129. /// "Copper Functions"
  130. VOID __asm Add_Copper
  131. (
  132.     register __a0 APTR screen,
  133.     register __a1 APTR copper_stream);
  134.  
  135. ///
  136.  
  137. /// "Input Procedures"
  138. BYTE __asm GetKey();
  139. ///
  140.  
  141. #endif
  142.  
  143.