home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / GameSmith1-Hisoft-System.DMS / in.adf / GDS_System.lha / include / graphics / loadILBM.i < prev   
Encoding:
Text File  |  1994-01-07  |  2.2 KB  |  50 lines

  1. ;***************************************************************
  2. ; The loadILBM struct
  3. ;***************************************************************
  4.  
  5.     rsreset
  6. ILOAD_FILE     rs.l  1  ;ptr to null terminated string with file to load
  7. ILOAD_BITMAP1  rs.l  1  ;ptr to 1st bitmap
  8. ILOAD_BITMAP2  rs.l  1  ;ptr to 2nd bitmap (if any)
  9. ILOAD_CTBL     rs.l  1  ;ptr to color table to be filled
  10. ILOAD_COLORS   rs.l  1  ;number of entries in color table
  11. ILOAD_DHEIGHT  rs.l  1  ;display height (filled from file)
  12. ILOAD_DWIDTH   rs.l  1  ;display width (filled)
  13. ILOAD_XOFF     rs.l  1  ;X display offset (filled)
  14. ILOAD_YOFF     rs.l  1  ;Y display offset (filled)
  15. ILOAD_MODES    rs.l  1  ;display modes (filled)
  16. ILOAD_LOADX    rs.l  1  ;X load offset (from left) in bytes
  17. ILOAD_LOADY    rs.l  1  ;Y load offset (from top) in rows
  18. ILOAD_FLAGS    rs.l  1  ;load flags
  19. ILOAD_FILL     rs.l  1  ;mask of planes to fill in bitmap(s)
  20. ILOAD_SELECT   rs.l  1  ;mask of planes to use from file
  21. ILOAD_BMH      rs.l  1  ;ptr to BitMapHeader struct to fill or NULL
  22. ILOAD_SIZEOF   rs.b  0  ;size of loadILBM struct
  23.  
  24. ; The BitMapHeader struct as defined by Commodore
  25.  
  26.     rsreset
  27. BMH_W          rs.w  1  ;raster width in pixels
  28. BMH_H          rs.w  1  ;raster height in pixels
  29. BMH_X          rs.w  1  ;pixel X position (same as xoff)
  30. BMH_Y          rs.w  1  ;pixel Y position (same as yoff)
  31. BMH_PLANES     rs.b  1  ;number of bitplanes (without mask if any)
  32. BMH_MASKING    rs.b  1  ;mask value (see CBM docs on ILBMs)
  33. BMH_COMP       rs.b  1  ;compression algorithm used on image data
  34. BMH_RSRV       rs.b  1  ;reserved; ignore on read, write as 0
  35. BMH_TRANS      rs.w  1  ;transparent color number, usually 0 (background)
  36. BMH_XASP       rs.b  1  ;X pixel aspect (ratio of width to height)
  37. BMH_YASP       rs.b  1  ;Y pixel aspect
  38. BMH_PAGEW      rs.w  1  ;source page width in pixels (same as dwidth)
  39. BMH_PAGEH      rs.w  1  ;source page height in pixels (same as dheight)
  40. BMH_SIZEOF     rs.b  1  ;size of BitMapHeader struct
  41.  
  42. * ---------------------------------------------------------------------------
  43. *
  44. * The loadILBM flags:
  45. * ------------------
  46.  
  47. ILBM_COLOR    EQU    1    ;fill color map with colors from file
  48. ILBM_ALLOC    EQU    2    ;allocate one bitmap before loading
  49. ILBM_ALLOC2    EQU    4    ;allocate two bitmaps before loading
  50.