Hi, a friend of mine declared a new type using
typedef GLfloat vec3_t[3];
and later used vec3_t to allocate memory
vertices=new vec3_t[num_xyz* num_frames];
He freed the memory using
delete [] vertices;
Question:
1. Since vec3_t is an alias for GLfloat[3], does it mean that
vec3_t[num_xyz* num_frames]
is equivalent to
GLfloat[3][num_xyz* num_frames];
2. If the above is a 2 dimentional array, How is it supporsed to be properly deleted from memory?
thanks in advance;
from deo