View Full Version : CVA paramter question.

06-18-2002, 06:08 AM
when using lockarrays there second parrameter calls for the number of elements you would like to lock. I have 3 arrays, one containing my normals, one for my verts, and one for my texture verts. I have 3 floats per normal, 2 floats per texture and 3 floats per vertex. Now say i have 100 verticies all togeather. Would I lock (100*3*3*2) OR (100*3) Im not sure if im suppost to lock all the floats in all the arrays, or just lock the actual verticies? Some one please give me a clue. Thanks.

06-18-2002, 08:16 AM
the count parameter is used to specify the number of elements that will be locked. In your example, you would use glLockArrays(0, 100);