1 // Emacs style mode select -*- C++ -*-
2 //-----------------------------------------------------------------------------
6 // Copyright (C) 1993-1996 by id Software, Inc.
8 // This source is available for distribution and/or modification
9 // only under the terms of the DOOM Source Code License as
10 // published by id Software. All rights reserved.
12 // The source is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
18 // System specific interface stuff.
20 //-----------------------------------------------------------------------------
34 // Called by DoomMain.
37 // Called by startup code
38 // to get the ammount of memory to malloc
39 // for the zone management.
40 byte* I_ZoneBase (int *size);
43 // Called by D_DoomLoop,
44 // returns current time in tics.
49 // Called by D_DoomLoop,
50 // called before processing any tics in a frame
51 // (just after displaying a frame).
52 // Time consuming syncronous operations
53 // are performed here (joystick reading).
54 // Can call D_PostEvent.
56 void I_StartFrame (void);
60 // Called by D_DoomLoop,
61 // called before processing each tic in a frame.
62 // Quick syncronous operations are performed here.
63 // Can call D_PostEvent.
64 void I_StartTic (void);
66 // Asynchronous interrupt functions should maintain private queues
67 // that are read by the synchronous functions
68 // to be converted into events.
70 // Either returns a null ticcmd,
71 // or calls a loadable driver to build it.
72 // This ticcmd will then be modified by the gameloop
74 ticcmd_t* I_BaseTiccmd (void);
77 // Called by M_Responder when quit is selected.
78 // Clean exit, displays sell blurb.
82 // Allocates from low memory under dos,
83 // just mallocs under unix
84 byte* I_AllocLow (int length);
86 void I_Tactile (int on, int off, int total);
89 void I_Error (char *error, ...);
91 int I_FileExists (char *filepath);
93 int I_Open (char *filepath);
94 void I_Close (int handle);
96 int I_Seek(int handle, int n);
97 int I_Read(int handle, void *buf, int n);
99 char* I_IdentifyWAD(char *wadname);
102 //-----------------------------------------------------------------------------
106 //-----------------------------------------------------------------------------