home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ukma!darwin.sura.net!sgiblab!bridge2!news.claremont.edu!ucivax!gateway
- From: craigm@chateau-rouge.ICS.UCI.EDU (Craig MacFarlane)
- Newsgroups: comp.windows.x
- Subject: PHIGS color question.
- Message-ID: <9211120946.aa14324@Paris.ics.uci.edu>
- Date: 12 Nov 92 17:47:39 GMT
- Lines: 35
-
- I'm using SunPHIGS 2.0 with X11R5.
-
- I am using the fill area set primitive to draw a number of closed
- polygons. Each set of polygons gets a different fill color, but
- when PHIGS draws the filled polygons, it uses a funny looking hatch
- pattern in the colors. Rather, the polygon is not solid blue, it's
- blue with a pattern running through it. Has anybody else experienced
- this? Is there some way of telling PHIGS I want a *solid* color?
-
- Here is code for those who are interested.
-
- Thanks much,
- Craig
-
- --------------------------------------------------------------------
-
- pset_face_disting_mode(PDIST_NO);
-
- pset_int_shad_meth(PSD_NONE);
- pset_back_int_shad_meth(PSD_NONE);
-
- pset_int_style(PSTYLE_SOLID);
- pset_int_colr(&fore_color);
-
- pset_back_int_style(PSTYLE_SOLID);
- pset_back_int_colr(&back_color);
-
- facet_data = new Pfacet_data3;
- f_flag = PFACET_COLOUR;
- facet_data->colr.direct.rgb.red = color->red;
- facet_data->colr.direct.rgb.green = color->green;
- facet_data->colr.direct.rgb.blue = color->blue;
-
- pfill_area_set3_data(f_flag, PEDGE_NONE, v_flag, PMODEL_RGB, facet_data,
- number_fill_areas, (Pedge_data_list *)NULL, v_data);
-