diff options
author | Simon Howard | 2007-06-04 18:32:50 +0000 |
---|---|---|
committer | Simon Howard | 2007-06-04 18:32:50 +0000 |
commit | 9d7126c11b5f1577b00987b8d5f0f7f761b012d7 (patch) | |
tree | b832c6f922879be3668d7f6720c3887ac4409f99 /textscreen/txt_main.h | |
parent | 2c4e3a7dbf89608355d1ce49c221d41b3e2fa7a8 (diff) | |
download | chocolate-doom-9d7126c11b5f1577b00987b8d5f0f7f761b012d7.tar.gz chocolate-doom-9d7126c11b5f1577b00987b8d5f0f7f761b012d7.tar.bz2 chocolate-doom-9d7126c11b5f1577b00987b8d5f0f7f761b012d7.zip |
Rename txt_main.c to txt_sdl.c; add txt_sdl.h for SDL-specific API
functions, while keeping txt_main.h for the common API. Add
TXT_SDL_SetEventCallback to allow programs to intercept SDL events in
the textscreen main loop.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 892
Diffstat (limited to 'textscreen/txt_main.h')
-rw-r--r-- | textscreen/txt_main.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/textscreen/txt_main.h b/textscreen/txt_main.h index 13c38537..7978c8b7 100644 --- a/textscreen/txt_main.h +++ b/textscreen/txt_main.h @@ -20,17 +20,17 @@ // //----------------------------------------------------------------------------- // -// Text mode emulation in SDL +// Base interface that abstracts the text mode screen. // //----------------------------------------------------------------------------- #ifndef TXT_MAIN_H #define TXT_MAIN_H -// The textscreen API itself doesn't need SDL; however, SDL needs its -// headers included where main() is defined. +// For the moment, txt_sdl.c is the only implementation of the base +// text mode screen API: -#include "SDL.h" +#include "txt_sdl.h" // Special keypress values that correspond to mouse button clicks // |