Debian Codegraph @

prboom2/src/dsda/render_stats.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 Render Stats
16 //
17
18 #ifndef __RENDER_STATS__
19 #define __RENDER_STATS__
20
21 typedef struct {
22 int visplanes;
23 int drawsegs;
24 int vissprites;
25 } dsda_render_stats_t;
26
27 void dsda_BeginRenderStats(void);
28 void dsda_RecordVisSprite(void);
29 void dsda_RecordVisSprites(int n);
30 void dsda_RecordVisPlane(void);
31 void dsda_RecordVisPlanes(int n);
32 void dsda_RecordDrawSeg(void);
33 void dsda_RecordDrawSegs(int n);
34 void dsda_UpdateRenderStats(void);
35
36 #endif