07-18-2003, 06:37 AM
Does the following code shows the correct usage of the glInterleavedArray function?
How does the function know how many elements are there in the array?
------------------------------------------
typedef struct {
float tx, ty;
float nx, ny, nz;
float x, y, z;
} VERTEX;
VERTEX vert[4];
glInterleavedArrays ( GL_T2F_N3F_V3F, 0, vert );
How does the function know how many elements are there in the array?
------------------------------------------
typedef struct {
float tx, ty;
float nx, ny, nz;
float x, y, z;
} VERTEX;
VERTEX vert[4];
glInterleavedArrays ( GL_T2F_N3F_V3F, 0, vert );