home *** CD-ROM | disk | FTP | other *** search
- /* @(#)bsp_object.h 1.1 92/05/28 SMI */
- /* from bsp_object.h 1.2 90/05/02 SMI */
-
- /*
- * Copyright (c) 1986 by Sun Microsystems, Inc.
- */
-
- /*
- * this file is type definitions for object bsp tree descriptions.
- *
- */
-
- #ifndef BSP_OBJECT
- #define BSP_OBJECT
-
-
- #define BSP_TYPE 7 /* type field in flags */
- #define BSP_LINE 0 /* line segment */
- #define BSP_POLY 1 /* flat polygon */
- #define BSP_BACK_VIEW 8 /* back-culling disable */
-
-
- #define BSP_MAX_LOOP 3
-
-
- /* the dev_gp1 package creates polygons like this:
-
- Dev_gp1_polygon_3df(gp1, n_bounds, bounds, pts, shade)
-
- so the bsp-node structure is designed with this in mind */
-
-
-
-
- typedef struct bsp_node {
- unsigned short flags ; /* control flags */
- Pt3d normal ; /* normal vector */
- short color ; /* color index */
- short trimcolor ; /* trim color index */
- int work ; /* workarea */
- int nloop ; /* # loops */
- int loops[BSP_MAX_LOOP] ;
- Pt3d *vertices ;
- struct bsp_node *front_child, *back_child ;
- } Bsp_Node ;
-
-
- #endif BSP_OBJECT
-