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: glDrawArray

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2005
    Posts
    21

    glDrawArray

    I would like to use glDrawArray(), but I seem to have some probs at the boundary of C++ and glDrawArray(). Do you know a good link or example?

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Aug 2001
    Location
    Italy
    Posts
    628

    Re: glDrawArray

    I don't have a link but I suggest you check your array or the things you're fetching to it.
    Also check GL state. Maybe you enabled, say, TEXTURE_ARRAY and forgot to turn it off so, when you render geometry-only you get an access violation.
    It's quite a while I don't use it, but I've never had any problem.

    There are tons of tutorials around. Check the old GL spec (still useful today if you're new to vertex arrays) or try http://nehe.gamedev.net.

Posting Permissions

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