Results 1 to 5 of 5

Thread: Dynamic vs Static array

  1. #1

    Dynamic vs Static array

    dglOpenGL

    Code:
    glBufferData(GL_ARRAY_BUFFER, ASizeOfVertices, @AVertices, GL_STATIC_DRAW);
    Works fine when AVertices is static array but does not work when identical data is sent as dynamic array. What do I do to make it work with dynamic array?

  2. #2
    PGDCE Developer Carver413's Avatar
    Join Date
    Jun 2010
    Location
    Spokane,WA,Usa
    Posts
    206
    @AVertices[0] should do the trick

  3. #3
    Quote Originally Posted by Carver413 View Post
    @AVertices[0] should do the trick
    Thanks. I had tried that to no avail... But since you said that is the solution I looked more into it. The problem was actually bunch of overloaded "passer/helper" procedures.

  4. #4
    PGDCE Developer Carver413's Avatar
    Join Date
    Jun 2010
    Location
    Spokane,WA,Usa
    Posts
    206
    Quote Originally Posted by Thyandyr View Post
    Thanks. I had tried that to no avail... But since you said that is the solution I looked more into it. The problem was actually bunch of overloaded "passer/helper" procedures.
    from where ?

  5. #5
    Quote Originally Posted by Carver413 View Post
    from where ?
    I mean, it needs to be the @AVertices[0] like you said, plus the other fix to work. But it was easier to find the other problem once I had more confidence it should be @AVertices[0]. Thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •