Previous Next Up Title Contents Index Functions Index Top Library

1.3.9. ARCHITECTURE OF A MINIMUM PHIGS PROGRAM

The following is the skeleton of a minimum PHIGS program, displaying a structure with the identifier struct_id according to a 2D view index view_ind on a workstation with the identifier ws_id

popen_phigs (...);	/* open PHIGS */

popen_struct (struct_id);	/* build structure */
pset_view_ind (view_ind); 	/* view index */
...
pclose_struct ();

popen_ws (ws_id, ...);	/* open a workstation */

peval_view_ori_matrix (...);	/* parameters of one view */
peval_view_map_matrix (...);

pset_view_rep (ws_id, view_ind, ...);	/* defining the view */

ppost_struct (ws_id, struct_id, ...);	/* posting structures to be displayed */

predraw_all_structs (ws_id, ...);	/* displaying posted structures */

pclose_ws (ws_id);	/* close workstation and PHIGS */
pclose_phigs ();


Previous Next Up Title Contents Index Functions Index Top Library