Angus Dorbie (dorbie++at++bitch.reading.sgi.com)
Wed, 21 Aug 1996 18:09:41 +0100
Rgds,
Angus.
On Aug 21, 2:44pm, couvet++at++pobox.oleane.com wrote:
> Subject: Re: Toggle wireframe mode of pfGeoSets
>
> [ plain text
> Encoded with "quoted-printable" ] :
At 13:55 20/08/1996 -0500, you wrote:
> >> the most practical I found to toggle on or off wireframe mode is as
written
> >> in perfly.
> >> Just encapsulate your pfDraw() function between the two functions
> >> pfuPreDrawStyle(style,scribeColor) and pfuPostDrawStyle(style).
> >> I personaly use a value of PFUSTYLE_SCRIBED for value of argument style,
and
> >> a red scribeColor.
> >
> >What's wrong with a simple:
> >
> > if ( you_need_wireframe )
> > {
> > pfEnable ( PFEN_WIREFRAME ) ;
> > pfOverride ( PFSTATE_ENWIREFRAME, PF_ON ) ;
> > }
> > else
> > pfOverride ( PFSTATE_ENWIREFRAME, PF_OFF ) ;
> >
> >...somewhere just before pfDraw() ???
> >
> >
>
> Thanks for your answer, Mr. POUTIGNAT wasn't wrong but your approach is
> a little bit faster (but still slightly wrong...)
>
> I got the answer today. What to do is the following :
>
> if ( you_need_wireframe )
> {
> pfEnable( PFEN_WIREFRAME);
> }
> else
> {
> pfDisable( PFEN_WIREFRAME);
> }
>
> I got some friends who told me that it works fine...
>
> Rgds
>
> Cyril
> Serge Couvet,Dipl Ing |
> Advanced Research Manager | Future systems Technology ( training systems
> and surgery simulation)
> Thomson Training & Simulation | Manufacturer of training simulators
> 1, rue du Général de Gaulle- Z.I. Les beaux soleils - OSNY |
> BP226-|95523 Cergy Pontoise Cedex-FRANCE |
> couvet++at++pobox.oleane.com -tel (33 1) 34228663 |
>
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-- End of excerpt from couvet++at++pobox.oleane.com
===================================List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:23 PDT