Re: pfFont's and pfDrawBin's don't mix?

New Message Reply Date view Thread view Subject view Author view

Rémi Arnaud (remi++at++remi.engr.sgi.com)
Tue, 21 Oct 1997 23:39:54 -0700 (PDT)


Wade Olsen wrote:
>
>
> How can I add 3D Textured Fonts to a DrawBin.
> I'm using the code below to set the draw bin but
> it doesn't seem to work. The text is draw before
> everything else and when I do a pfDrawBin(PFSORT_TRANSP_BIN),
> the text doesn't show up at all.
>
> pfFont * font = pfdLoadFont_type1("Times-Elfin", PFDFONT_TEXTURED);
>
> //==== Add GeoSet To Draw Bin ====//
> int num_chars = font->getMode( PFFONT_NUM_CHARS );
> for ( int i = 0 ; i < num_chars ; i++ )
> {
> pfGeoSet* cg = font->getCharGSet( i );
> if ( cg )
> cg->setDrawBin(PFSORT_TRANSP_BIN);
> }
>
> Any ideas?

 The pfGeoSet has to have a pfGeoState directly attached to it.
 pfGeoSet::setGState(pfGeoState *), if it does not, it will not go
 in a bin.

 Note that you can create your own bin, using pfChannel::setBinOrder(bin, order)
 and give that bin an order greater than PFSORT_TRANSP_BIN_ORDER (1), and
 setDrawBin() to that bin.

>
> Thanks,
>
> J.R. & Wade
> --
> -----------------------------
> Wade Olsen, Shoreline Studios
> e-mail: wade++at++shoreline-studios.com
> phone: 650-969-7896
> fax: 650-969-7864
> www: http://www.shoreline-studios.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
>

    _ / _ _
|_) _ ._ _ o /\ |_)|\ | /\ | || \
| \(/_| | || /--\| \| \|/--\|_||_/
                                           
=======================================================================
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:56:06 PDT

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