http://bugs.freedesktop.org/show_bug.cgi?id=20626





--- Comment #1 from raoxianhong <raoxianh...@163.net>  2009-03-12 07:49:39 PST 
---
the code list here:
        glActiveTexture(GL_TEXTURE0);
        glEnable(GL_TEXTURE_2D);
        glBindTexture(GL_TEXTURE_2D,texid);
        glEnable(GL_TEXTURE_GEN_S);
        glEnable(GL_TEXTURE_GEN_T);
        glEnable(GL_TEXTURE_GEN_R);
        glEnable(GL_TEXTURE_GEN_Q);

        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);    
        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);    
        glTexEnvf (GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE_EXT);
        glTexEnvf (GL_TEXTURE_ENV, GL_COMBINE_RGB_EXT, GL_REPLACE);

        glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR);

        p[0] = 0.25f;
        p[1] = 0.0f;
        p[2] = 0.0f;
        p[3] = 0.25f;
        glTexGenfv(GL_S, GL_OBJECT_PLANE, p);

        glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR);

        p[0] = 0.0f;
        p[1] = 1.0f;
        p[2] = 0.0f;
        p[3] = 0.0f;

        glTexGenfv(GL_T, GL_OBJECT_PLANE, p);

        glTexGeni(GL_R, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR);
        p[0] = 0.0f;
        p[1] = 0.0f;
        p[2] = 0.0f;
        p[3] = 1.0f;

        glTexGenfv(GL_R, GL_OBJECT_PLANE, p);
        glTexGeni(GL_Q, GL_TEXTURE_GEN_MODE, GL_OBJECT_LINEAR);
        p[0] = 0.0f;
        p[1] = 0.0f;
        p[2] = 0.0f;
        p[3] = 1.0f;
        glTexGenfv(GL_Q, GL_OBJECT_PLANE, p);

        glBegin( GL_QUADS );
                glVertex4f( 2.0f, 0.0f, 0.0f, 2.0f);
                glVertex4f( 2.0f, 2.0f, 0.0f, 2.0f);
                glVertex4f( 0.0f, 2.0f, 0.0f, 2.0f);
                glVertex4f( 0.0f, 0.0f, 0.0f, 1.0f);
        glEnd();


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to