Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: CVA paramter question.

  1. #1
    Member Regular Contributor
    Join Date
    Sep 2001
    Location
    macedon, ny
    Posts
    289

    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.

  2. #2
    Member Regular Contributor
    Join Date
    Apr 2001
    Posts
    354

    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
  •