home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / Misc / GraphicsCode / docs / Assembler_Functions < prev    next >
Encoding:
Text File  |  1996-02-04  |  1.8 KB  |  47 lines

  1. -------- Initialisation routines ------------------------------------------
  2.  
  3.    Graphics_Init()
  4.    Graphics_Close()
  5. d0=Open_Screen(d0,d1,d2,d3,a0)      width, height, depth, viewmodes, cmap
  6.    Close_Screen(a0)                 screen
  7. d0=Init_Mask(d0,d1,d2,d3,d4,d5)     x_min,y_min,x_max,y_max,sreen x,screen y
  8.    Free_Mask(a0)                    maskplane struct
  9.  
  10. -------- Drawing routines -------------------------------------------------
  11.  
  12.    Fill_Polygon(a0,a1,d0,d1)        screen, vertex list, npoints, colour
  13.    Draw_Polygon(a0,a1,d0,d1)        screen, vertex list, npoints, colour
  14.    Draw_Line(a0,d0,d1,d2,d3,d4)     screen, x1, y1, x2, y2, colour
  15.    Write_Pixel(a0,d0,d1,d2)         screen, x1, x2, colour
  16.    Screen_Clear(a0)                 screen
  17.  
  18. -------- Fade Routines------------------------------------------------
  19.  
  20.    Fade_To_White(a0,a1)         source screen,source colourmap
  21.    Fade_To_Black(a0,a1)         source screen,source colourmap
  22.    Fade(a0,a1,a2)               screen,source,destination
  23.  
  24. -------- IFF Handling routines reading and writing of bitmaps -------------
  25.  
  26.    Save_IFF(a0,a1)                  filename, screen
  27.    Load_IFF(a0,a1)                  filename, screen
  28.  
  29. -------- File handling Routines -------------------------------------------
  30.  
  31.    Load_Data(a0,d0,a1)              filename, buffer length, destination
  32.    Save_Data(a0,d0,a1)              filename, buffer length, source
  33.  
  34. -------- Text handling routines -------------------------------------------
  35.  
  36.    Write_Text(a0,a1,d0,d1,d2,d3)    screen, text, x, y, colour, length
  37. a1=Num_To_String(d0)                word value
  38.  
  39. -------- Copper  handling routines -------------------------------------
  40.  
  41.    Add_Copper(a0,a1)                screen,copper list
  42.  
  43. -------- Input Handling Routines ------------------------------------------
  44.  
  45. d0=GetKey()
  46.  
  47.