From: Marcin Romaszewicz (marcin++at++asmodean.engr.sgi.com)
Date: 03/22/2000 11:03:53
Yes, performer does use glGenTextures to get ID's. If you're making
glTexImage?D calls in a draw callback, odds are that you're probably
desyncing OpenGL state with what performer assumes it to be.
A safer approach would be to use pfTexture objects to do the corresponding
OpenGL calls. Instead of calling glTexImage?D yourself, just call
pfTexture::apply in your draw callback. This way, performer will be able
to track what the currently applied texture.
-- Marcin
On Wed, 22 Mar 2000, Gilles GALLEE wrote:
>
>
> In draw function, we want to render the performer scene with pfDraw()
> and special effects with Open GL.
> In this effects (durint draw process), we define texture objects with
> glGenTextures() that returns IDs for my textures.
>
> The problem is that some of my effects textures are used by pfDraw() to
> texture som objects of the scene !!!
> Does Performer use glGenTextures() to reserved IDs ??
> If not, how can i choose IDs range for my textures ?
>
> Thank you.
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>
This archive was generated by hypermail 2b29 : Wed Mar 22 2000 - 11:04:02 PST