home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / windows / x / 19063 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.4 KB

  1. Path: sparky!uunet!ukma!darwin.sura.net!sgiblab!bridge2!news.claremont.edu!ucivax!gateway
  2. From: craigm@chateau-rouge.ICS.UCI.EDU (Craig MacFarlane)
  3. Newsgroups: comp.windows.x
  4. Subject: PHIGS color question.
  5. Message-ID: <9211120946.aa14324@Paris.ics.uci.edu>
  6. Date: 12 Nov 92 17:47:39 GMT
  7. Lines: 35
  8.  
  9. I'm using SunPHIGS 2.0 with X11R5.
  10.  
  11. I am using the fill area set primitive to draw a number of closed
  12. polygons.  Each set of polygons gets a different fill color, but
  13. when PHIGS draws the filled polygons, it uses a funny looking hatch
  14. pattern in the colors.  Rather, the polygon is not solid blue, it's
  15. blue with a pattern running through it.  Has anybody else experienced
  16. this?  Is there some way of telling PHIGS I want a *solid* color?
  17.  
  18. Here is code for those who are interested.
  19.  
  20. Thanks much,
  21. Craig
  22.  
  23. --------------------------------------------------------------------
  24.  
  25.   pset_face_disting_mode(PDIST_NO);
  26.  
  27.   pset_int_shad_meth(PSD_NONE);
  28.   pset_back_int_shad_meth(PSD_NONE);
  29.  
  30.   pset_int_style(PSTYLE_SOLID);
  31.   pset_int_colr(&fore_color);
  32.  
  33.   pset_back_int_style(PSTYLE_SOLID);
  34.   pset_back_int_colr(&back_color);
  35.  
  36.   facet_data = new Pfacet_data3;
  37.   f_flag = PFACET_COLOUR;
  38.   facet_data->colr.direct.rgb.red = color->red;
  39.   facet_data->colr.direct.rgb.green = color->green;
  40.   facet_data->colr.direct.rgb.blue = color->blue;
  41.  
  42.   pfill_area_set3_data(f_flag, PEDGE_NONE, v_flag, PMODEL_RGB, facet_data,
  43.                        number_fill_areas, (Pedge_data_list *)NULL, v_data);
  44.