ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/view.h
Revision: 1.3
Committed: Mon Oct 4 02:06:57 2004 UTC (19 years, 8 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.2: +1 -0 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.3 gl_matrix projection;
22 root 1.2 view &v;
23 root 1.1 enum { DEPTH, LIGHTED } mode;
24     light *l;
25     set<entity_base *> drawn;
26    
27     bool may_draw (entity_base *e);
28    
29 root 1.2 draw_context (view &v);
30 root 1.1 ~draw_context ();
31     };
32    
33     #endif
34