home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / misc / gms_dev.lha / GMS / Includes / games / tasks.i < prev    next >
Encoding:
Text File  |  1997-02-16  |  2.5 KB  |  72 lines

  1.     IFND GMS_TASKS_I
  2. GMS_TASKS_I  SET  1
  3.  
  4. **
  5. **    $VER: tasks.i 0.5 (15.02.97)
  6. **
  7. **      (C) Copyright 1996-1997 DreamWorld Productions.
  8. **          All Rights Reserved
  9. **
  10.  
  11.     IFND    EXEC_TYPES_I
  12.     include 'exec/types.i'
  13.     ENDC
  14.  
  15. *****************************************************************************
  16. * This task structure is lodged into tc_UserData (see exec/tasks.i), so
  17. * you may not change that field when using GMS.  A UserData field exists
  18. * here so that you may use it if necessary.  Use FindGMSTask() and not
  19. * FindTask(), for full compatibility, thanks.
  20.  
  21.     STRUCTURE    GMSTask,0
  22.     APTR    gt_UserData      ;Pointer to user data, no restrictions.
  23.     APTR    gt_TaskName      ;Name of the task, if specified.
  24.     APTR    gt_MasterPrefs   ;Library preferences.
  25.     APTR    gt_ScreenPrefs   ;Screen preferences.
  26.     APTR    gt_SoundPrefs    ;Sound preferences.
  27.     APTR    gt_BlitterPrefs  ;Blitter preferences.
  28.     APTR    gt_ResourceChain ;The resource chain, private.
  29.     ULONG    gt_LastError     ;Last error code, used by only a few functions.
  30.     LABEL    GT_SIZEOF
  31.  
  32.     ;You should not read or write to these fields except for debugging
  33.     ;purposes.
  34.  
  35.     STRUCTURE    ScreenPrefs,0
  36.     ULONG    SPF_VERSION          ;"SCR1"
  37.     UWORD    SPF_ChipSet          ;OCS/ECS/AGA
  38.     UWORD    SPF_ModePromote      ;None/NTSC/PAL/DBLNTSC/DBLPAL/VGA
  39.     UWORD    SPF_GfxBoard         ;Gfx board setting.
  40.     UWORD    SPF_TopOfScrX        ;Top corner of screen, X.
  41.     UWORD    SPF_TopOfScrY        ;Top corner of screen, Y.
  42.     UWORD    SPF_ScrSwitch        ;Screen Switch to window or screen.
  43.     UWORD    SPF_ScrWidth         ;The width of the visible screen.
  44.     UWORD    SPF_ScrHeight        ;The height of the visible screen.
  45.     UWORD    SPF_Empty1
  46.     UWORD    SPF_Empty2
  47.     UWORD    SPF_Planes           ;The amount of planes in the screen.
  48.     ULONG    SPF_Attrib           ;Special Attributes...
  49.     UWORD    SPF_ScrMode          ;Screen mode...
  50.     UWORD    SPF_ScrType          ;Interleaved/Planar/Chunky?
  51.     LABEL    SPF_SIZEOF
  52.  
  53.  
  54.    STRUCTURE    MasterPrefs,0
  55.     APTR    MPF_JoyEmuKeys       ;Pointer to emulation keys.
  56.     APTR    MPF_CallingList      ;Pointer to calling list.
  57.     UWORD    MPF_JoyType1         ;Type of Joystick in port 1.
  58.     UWORD    MPF_JoyType2         ;Type of Joystick in port 2.
  59.     UWORD    MPF_JoyType3         ;Type of Joystick in port 3.
  60.     UWORD    MPF_JoyType4         ;Type of Joystick in port 4.
  61.     UWORD    MPF_JoyEmulation     ;Joystick emulation on/off.
  62.     UWORD    MPF_Language         ;Language
  63.     UWORD    MPF_UserPri          ;User priority
  64.     UWORD    MPF_ResourceTracking ;Resource tracking on/off.
  65.     LABEL    MPF_SIZEOF
  66.  
  67. CS_OCS =    0
  68. CS_ECS =    1
  69. CS_AGA =    2
  70.  
  71.   ENDC    ;GMS_TASKS_I
  72.