title: OpenGL ES: Texture a plane
body: <p>I've gotten the texture to load, but it seemingly displays a single color of the texture. I've targeted the texture coordinates first, and can't seem to get the texture to display right. the intended texture is below:</p>
  
  <p><img src="https://i.stack.imgur.com/i7Fv5.png" alt="Test image for plane."></p>
  
  <p>256x256</p>
  
  <p>The texture is being displayed, but seemingly in a solid color. Maybe zoomed in to one pixel of the texture, or a warp of bad texture coordinates.:</p>
  
  <p><img src="https://i.stack.imgur.com/gzWrJ.png" alt="Texture display."></p>
  
  <p>Geometry:</p>
  
  <pre><code>static float squareCoords[] = {     
          -0.1f,  0.1f, 0.0f,  
          -0.1f, -0.1f, 0.0f,   
          0.1f, -0.1f, 0.0f,    
          0.1f,  0.1f, 0.0f };  
  </code></pre>
  
  <p>Texture coordinates:</p>
  
  <pre><code>final float TextureCoordinates[]  =
      {
              0.0f, 0.0f,
              0.0f, 1.0f,
              1.0f, 1.0f,
              1.0f, 0.0f,
      };
  </code></pre>
  
  <p>The texturing process is encapsulated inside the Entity class and I could include more code if it isn't immediately obvious to a second pair of eyes.</p>