home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / GFX / Misc / OTT-PHT3.DMS / in.adf / devdocs / gio / gio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-21  |  2.2 KB  |  79 lines

  1. /* gio.h devdocs v1.0 © Almathera 1994, All Rights Reserved */
  2.  
  3.  
  4. #ifndef GRAPHICS_GFXBASE_H
  5. #include <graphics/gfxbase.h>
  6. #endif
  7.  
  8. #ifndef INTUITION_INTUITIONBASE_H
  9. #include <intuition/intuitionbase.h>
  10. #endif
  11.  
  12. #define GIOF_LOADER8        1
  13. #define GIOF_LOADER24    2
  14. #define GIOF_SAVER8        4
  15. #define GIOF_SAVER24        8
  16. #define GIOF_LOADFILE    16
  17. #define GIOF_SAVEFILE    32
  18. #define GIOF_PLANAR        64                // data is loaded in planar format
  19. #define GIOF_NOID            128            // not able to identify file 
  20.                                                 // (skip in universial loader search)
  21. #define GIOF_NOFILEOPEN    256            // do file access internally
  22.                                                 // (giodata->Data and 
  23.                                                 // giodata->Filehandle are not set up)
  24.  
  25. IMPORTANT! Only fields marked as //* PUBLIC 
  26. should be accessed in the GIO structure..
  27.  
  28.  
  29. struct GIOData 
  30. {
  31.     struct    GIOData *Next;
  32.     struct    GIOData *Prev;
  33.     char        *Filename;                                //* PUBLIC
  34.     UBYTE        Data[64];                                //* PUBLIC
  35.     BPTR        Filehandle;                                //* PUBLIC
  36.     ULONG        Width;                                    //* PUBLIC
  37.     ULONG        Height;                                    //* PUBLIC
  38.     ULONG        Depth;                                    //* PUBLIC
  39.     ULONG        P_width;
  40.     ULONG        P_height;
  41.     ULONG        P_top;
  42.     ULONG        P_left;
  43.     ULONG        VP_mode;                                    //* PUBLIC
  44.     UWORD        Aspect_x;
  45.     UWORD        Aspect_y;
  46.     struct     BitMap *Bitmap;
  47.     APTR        *Linetable;
  48.     APTR        *Linetable2;
  49.     UBYTE        *Palette;                                //* PUBLIC
  50.     ULONG        Flags;                                    //* PUBLIC
  51.     ULONG        Headerlength;                            //* PUBLIC
  52.     ULONG        Error;                                    //* PUBLIC
  53.     ULONG        UserData;                                //* PUBLIC - for your own use
  54.     ULONG        UserData2;                                //* PUBLIC - for your own use
  55.     ULONG        UserData3;                                //* PUBLIC - for your own use
  56.     struct     Library *PgsBase;                        //* PUBLIC
  57.     ULONG        SkipBytes;                                //* PUBLIC
  58.     struct     Library *DOSBase;                        //* PUBLIC
  59.     struct    GfxBase *GfxBase;                        //* PUBLIC
  60.     struct    IntuitionBase *IntuitionBase;        //* PUBLIC
  61.     struct    Library *UtilityBase;                //* PUBLIC
  62.     struct    Library *GadtoolsBase;                //* PUBLIC
  63.     struct    Library *AslBase;                        //* PUBLIC
  64.     struct    Library *ColorwheelBase;            //* PUBLIC
  65.     ULONG     obsolete;                    
  66.     struct     Screen  *PgsScreen;                    //* PUBLIC
  67. };
  68.  
  69. #define LOAD_OK             0
  70. #define LOAD_RAMERR         1
  71. #define LOAD_FILEERR         2
  72. #define LOAD_WRONGTYPE     3
  73. #define LOAD_SYSERR         4
  74. #define LOAD_ABORTED         5
  75. #define LOAD_UNAVAILABLE 6
  76.  
  77. #define    PCLONG    ULONG
  78. #define    PCWORD    UWORD
  79.