Re: Toggle wireframe mode of pfGeoSets

New Message Reply Date view Thread view Subject view Author view

couvet++at++pobox.oleane.com
Wed, 21 Aug 1996 14:44:30 +0200


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


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:23 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.