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

New Message Reply Date view Thread view Subject view Author view

Wade Olsen (wade++at++slack.shoreline-studios.com)
Tue, 21 Oct 1997 18:20:27 -0700


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?

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

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.