Re: glTexImage2D in OGL HUD & Pf2.01

New Message Reply Date view Thread view Subject view Author view

Nicolas Gauvin (nicolas++at++cae.ca)
Fri, 23 Aug 1996 09:58:41 -0400


On Aug 22, 3:46pm, Ray Twiddy wrote:
> How do I coordinate and control the 2 textures: one in Performer and the
other
> in OpenGL?
>
> Is there a way to apply a pfTexture to an OpenGL object in a draw callback?
>
>-- End of excerpt from Ray Twiddy

You can to this in your draw callback:

     1. Enable texture with pfEnable(PFEN_TEXTURE)

     2. Apply a pfTexEnv with pfTexEnv::apply

     3. Apply a pfTexture with pfTexture::apply

     4. Draw your OpenGL geometry

Or you could use a pfGeoState that encapsulates all those 3 and apply it
in your draw callback just before drawing your OpenGl geometry.

-- 
Nicolas Gauvin			CAE Electronics Ltd., 8585 Cote De Liesse
Software Developer 		Saint-Laurent, Quebec, Canada, H4L-4X4
3-D Graphics Applications	tel: +1 514 341 2000 extension 2275
nicolas++at++cae.ca			fax: +1 514 340 5496
=======================================================================
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:24 PDT

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