ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/view.h
(Generate patch)

Comparing libgender/view.h (file contents):
Revision 1.5 by root, Mon Oct 4 10:18:13 2004 UTC vs.
Revision 1.6 by root, Tue Oct 5 02:17:57 2004 UTC

18 void draw (draw_context &ctx); 18 void draw (draw_context &ctx);
19}; 19};
20 20
21struct visibility_state { 21struct visibility_state {
22 unsigned int generation; 22 unsigned int generation;
23 enum { UNKNOWN, TESTING, PARTIAL, FULL } visibility; 23 enum { UNKNOWN, OCCLUDED, PARTIAL, FULL } visibility;
24 24
25 visibility_state () : generation(0), visibility(UNKNOWN) { }; 25 visibility_state () : generation(0), visibility(UNKNOWN) { };
26}; 26};
27 27
28struct draw_context { 28struct draw_context {
36 light *l; 36 light *l;
37 set<entity_base *> drawn; 37 set<entity_base *> drawn;
38 38
39 unsigned int generation; 39 unsigned int generation;
40 map<octant *, visibility_state> vismap; 40 map<octant *, visibility_state> vismap;
41 vector<octant *> vislist; 41 vector<octant *> vislist; // octants partially or fully visible
42 vector<octant *> checklist; // octants possibly visible
42 43
43 bool may_draw (entity_base *e); 44 bool may_draw (entity_base *e);
44 45
45 draw_context (view &v); 46 draw_context (view &v);
46 ~draw_context (); 47 ~draw_context ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines