ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/view.h
Revision: 1.2
Committed: Sun Oct 3 22:46:03 2004 UTC (19 years, 8 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.1: +12 -10 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 #ifndef VIEW_H
2     #define VIEW_H
3    
4     #include <set>
5    
6     using namespace std;
7    
8     #include "util.h"
9    
10 root 1.2 struct view {
11     sector orig;
12     point p;
13     vec3 d, u;
14     float fov;
15     int w, h;
16    
17     void draw (draw_context &ctx);
18     };
19    
20 root 1.1 struct draw_context {
21 root 1.2 view &v;
22 root 1.1 enum { DEPTH, LIGHTED } mode;
23     light *l;
24     set<entity_base *> drawn;
25    
26     bool may_draw (entity_base *e);
27    
28 root 1.2 draw_context (view &v);
29 root 1.1 ~draw_context ();
30     };
31    
32     #endif
33