title: Use of glBindAttribLocation function in OpenGL ES
body: <p>I dont get the use of <code>glBindAttribLocation</code> function in OpenGL ES 2.0 </p>
  
  <p>Can some one give me the full context ? Is it something like </p>
  
  <pre><code>g_pLightDir = g_pEffect10-&gt;GetVariableByName( "g_LightDir" )-&gt;AsVector();
  </code></pre>
  
  <p>in DirectX 10 ? Read online in various sites, but couldn't get the use of this function. Help needed.. </p>