Results 1 to 3 of 3

Thread: Question about VAO and GL 3.2 core

  1. #1
    Senior Member Regular Contributor
    Join Date
    Sep 2006
    Location
    thailand
    Posts
    130

    Question about VAO and GL 3.2 core

    Is VAO (Vertex array object) a requirement when using OpenGL 3.2 core profile ?

    Is drawing call like glDrawArrays or glDrawElements still operate if I don't use VAO.

    assume that I use VBO and shader and no other shader-deprecate built-in variable.

    I still using OpenGL 2.1 but would like to design my code to be easily port to GL3.2. (I already get rid of all deprecate stuff like GLU,Matrix stack relate function,predefine uniform/attribute variable)

  2. #2
    Senior Member Regular Contributor
    Join Date
    Mar 2007
    Location
    Latvia
    Posts
    225

    Re: Question about VAO and GL 3.2 core

    Yes, VAO is in 3.2 core. It is even in 3.0 forward compatible context.

    Yes, draw functions can run without VAO. On pre-GL3 core/fc versions you can use display lists to simulate VAO's.

  3. #3
    Senior Member OpenGL Lord
    Join Date
    Mar 2015
    Posts
    6,674

    Re: Question about VAO and GL 3.2 core

    Is VAO (Vertex array object) a requirement when using OpenGL 3.2 core profile ?
    What exactly do you mean by that?

    GL 3.0 and above have VAOs as a core feature. So yes, VAOs are required in GL 3.2 core. But does that mean you need to encapsulate all of your objects in separate VAOs?

    Vertex Array Objects, much like texture objects and other OpenGL Objects, are designed to degrade gracefully in the absence of their use. VAOs encapsulate the state that is set by all of the gl*Pointer functions, as well as glEnableVertexAttrib and its ilk.

    The VAO object number 0 works like it does for many object types: it acts as a single, global, undeleteable VAO object. Thus, if you never bind a VAO object, your code will act exactly like it does if VAO is not implemented.

    VAO functionality will be available in 3.0 and above. But you do not have to use it. Though I suggest you do.

    I still using OpenGL 2.1 but would like to design my code to be easily port to GL3.2.
    FYI: VAO is an extension too. It is implemented on quite a lot of GL 2.1 implementations (if you have recent drivers).

Similar Threads

  1. How can I find or create a list of 3.3-core core only functions?
    By DragonautX in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 09-24-2017, 05:04 PM
  2. Replies: 3
    Last Post: 06-24-2012, 08:01 AM
  3. another core graphics question -- textures
    By in forum OpenGL: macOS
    Replies: 6
    Last Post: 10-03-2006, 07:26 AM
  4. Question about core and component
    By sumi in forum OpenMAX
    Replies: 2
    Last Post: 06-28-2006, 07:53 AM
  5. Question about core and component
    By sumi in forum OpenMAX
    Replies: 2
    Last Post: 12-31-1969, 07:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean