ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/view.h
Revision: 1.1
Committed: Sun Oct 3 05:10:46 2004 UTC (19 years, 8 months ago) by root
Content type: text/plain
Branch: MAIN
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     struct draw_context {
11     enum { DEPTH, LIGHTED } mode;
12     light *l;
13     set<entity_base *> drawn;
14    
15     bool may_draw (entity_base *e);
16    
17     draw_context ();
18     ~draw_context ();
19     };
20    
21     struct view {
22     point p;
23     vec3 d, u;
24     float fov;
25     int w, h;
26    
27     void draw (draw_context &ctx);
28     };
29    
30     #endif
31