Debian Codegraph @

prboom2/src/dsda/signal_context.h

raw
1 //
2 // Copyright(C) 2022 by Ryan Krafnick
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // DESCRIPTION:
15 // DSDA Signal Context
16 //
17
18 typedef enum {
19 sf_display = 0x0001,
20 sf_player_view = 0x0002,
21 sf_setup_frame = 0x0004,
22 sf_clear = 0x0008,
23 sf_init_scene = 0x0010,
24 sf_gl_frustum = 0x0020,
25 sf_bsp_nodes = 0x0040,
26 sf_draw_planes = 0x0080,
27 sf_reset_column_buffer = 0x0100,
28 sf_draw_masked = 0x0200,
29 sf_draw_scene = 0x0400,
30 sf_status_bar = 0x0800,
31 sf_hud = 0x1000,
32 } signal_context_t;
33
34 extern int signal_context;
35
36 #define DSDA_ADD_CONTEXT(x) signal_context |= x
37 #define DSDA_REMOVE_CONTEXT(x) signal_context &= ~x;