How to load a texture onto a circle with OpenGL ES
问题 I am facing problems on loading a texture onto a circle. My circle is made with a triangle fan. It gives a bad output. Original Image: The Result : My code: public class MyOpenGLCircle { private int points=360; private float vertices[]={0.0f,0.0f,0.0f}; private FloatBuffer vertBuff, textureBuffer; float texData[] = null; float theta = 0; int[] textures = new int[1]; int R=1; float textCoordArray[] = { -R, (float) (R * (Math.sqrt(2) + 1)), -R, -R, (float) (R * (Math.sqrt(2) + 1)), -R }; public