[info-performer] Texture Filter

Date view Thread view Subject view Author view

From: Mr. Rajesh R (rajeshr++at++cair.res.in)
Date: 04/19/2004 04:17:36


Dear Performers,

I finally able to Traverse the database and able to acess the texture
using a pointer. Now I want to change the characteristics of the texture
such as filter. But when Typed function
pfTexFilter(tex,PFTEX_MINFILTER,PTEX_BILINEAR)and executed I am getting an
error pfTexture :: BadFilter. This happens when I am trying to get the
filter of the incumbent texture. I am adding the code which I wrote for
finding the texture.

                pfTexture *tex = (pfTexture *) pfGetGStateAttr(gstate,

PFSTATE_TEXTURE); if(tex == NULL)
                        printf("No Texture is available\n");
                if(tex!=NULL)
                {
                        printf("Texture is available\n");
                        TexFilter = pfGetTexFilter(tex,PFTEX_MINFILTER);
                        pfTexFilter(tex, PFTEX_MINFILTER, PFTEX_BILINEAR);
                        printf("The value of Texture = %X\n", TexFilter);
                        name = pfGetTexName(tex);
                        printf("Name of the Texture = %s\n", name);
                }

Any suggestions are welcome.

Rajesh.R
Virtual Reality Lab,
CAIR,
Bangalore -1
Phone -2256473


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Apr 19 2004 - 04:30:34 PDT