Opengl ES sliding texture animation

I d like to animate a texture on a vertex from left to right. How can i do this?

my old code is:

        float texCoords[] = { 
            iTextcoord, 0.0f, 
            iTextcoord, 1.0f, 
            iTextcoord+1.0f, 0.0f, 
            iTextcoord+1.0f, 1.0f, 
        };
        this.setTextureCoords(texCoords);

but its isnt the best:(


您可以使用glMatrixMode(GL_TEXTURE_MATRIX)glTranslatef()

链接地址: http://www.djcxy.com/p/33898.html

上一篇: PowerVR SGX GPU的OpenGL ES问题

下一篇: Opengl ES滑动纹理动画