I try to create an array like below:
count = [corners count];
Gluint indices [count];
i used the count value and it works fine but when creating array of indices the value is not there. It seems to have
indices [-1]
what should i do? the value of count is different based on the data of corners. I cannot used this code below:
Gluint indices [24];