_aPositionHandle = GLES20.glGetAttribLocation(_program, "a_Position");
if (_aPositionHandle == -1)
{
throw new RuntimeException("Could not get attrib location for a_Position");
}
_aNormalHandle = GLES20.glGetAttribLocation(_program, "a_Normal");
if (_aNormalHandle == -1)
{
throw new RuntimeException("Could not get attrib location for a_Normal");
}
_aBoneHandle = GLES20.glGetAttribLocation(_program, "a_Bone");
if (_aBoneHandle == -1)
{
throw new RuntimeException("Could not get attrib location for a_Bone");
}
_aTextureHandle = GLES20.glGetAttribLocation(_program, "a_TextureCoord");
if (_aTextureHandle == -1)
{
throw new RuntimeException("Could not get attrib location for a_TextureCoord");
}