#ifndef VIEW_H #define VIEW_H #include using namespace std; #include "util.h" struct draw_context { enum { DEPTH, LIGHTED } mode; light *l; set drawn; bool may_draw (entity_base *e); draw_context (); ~draw_context (); }; struct view { point p; vec3 d, u; float fov; int w, h; void draw (draw_context &ctx); }; #endif