-
Member
Regular Contributor
CVA paramter question.
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.
-
Member
Regular Contributor
Re: CVA paramter question.
the count parameter is used to specify the number of elements that will be locked. In your example, you would use glLockArrays(0, 100);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules