Currently Variable includes name, size, and type. It would be useful if it also included its location in the program. Since the index used in glGetActiveAttrib and glGetActiveUniform may not necessarily be its location, we will need to call glGetAttribLocation and glGetUniformLocation when we're making them.
Currently Variable includes name, size, and type. It would be useful if it also included its location in the program. Since the index used in glGetActiveAttrib and glGetActiveUniform may not necessarily be its location, we will need to call glGetAttribLocation and glGetUniformLocation when we're making them.