Use of glBindAttribLocation function in OpenGL ES

Viewed 6921

I dont get the use of glBindAttribLocation function in OpenGL ES 2.0

Can some one give me the full context ? Is it something like

g_pLightDir = g_pEffect10->GetVariableByName( "g_LightDir" )->AsVector();

in DirectX 10 ? Read online in various sites, but couldn't get the use of this function. Help needed..

2 Answers
Related