I´ve been playing with OpenGL ES 1.1, and i would like to translate a background texture on a plane mesh.
glTranslate translates every texture after calling it, and i cannot move the drawing code because it has to be in certain order for modelview rotations to have effect on certain meshes.
I´ve been trying to do glPushMatrix() and glPopMatrix() for texture matrix, but no luck.
what is the correct way to do this? Now i have this, which of course translates every texture:
glTranslatef( 1 << 16 , 0 , 0 );
glTexCoordPointer( 2, GL_BYTE, 0, nokTexCoords);
glVertexPointer( 3, GL_BYTE, 0, backgroundVertices);
glBindTexture( GL_TEXTURE_2D, iLoadingTexObjects);
glDrawElements( GL_TRIANGLES, 2 * 3, GL_UNSIGNED_BYTE, triangles );
----Check if Rotation enabled here----
----Draw the rest of geometry with same kind of code blocks as above----
Thanks in advance.