#ifndef	VIS_H
#define	VIS_H

/*
 * ============================================================================
 * structures
 * ============================================================================
 */

typedef struct pstack_s {
  struct pstack_s *next;
  struct visleaf *leaf;
  struct visportal *portal;					/* portal exiting */

  struct winding *source, *pass;
  struct plane portalplane;
  unsigned char *mightsee;					/* bit string */
} __packed pstack_t;

typedef struct {
  unsigned char *leafvis;					/* bit string */

  struct visportal *base;
  pstack_t pstack_head;
} __packed threaddata_t;

/*
 * ============================================================================
 * globals
 * ============================================================================
 */

/*
 * ============================================================================
 * prototypes
 * ============================================================================
 */

#endif
