Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: mhagain

Search: Search took 0.00 seconds.

  1. Replies
    13
    Views
    515

    OpenGL state is global, yes. The cleaner...

    OpenGL state is global, yes.

    The cleaner design is to bind everything you need at the start of each drawing or creation function, but never unbind. Using that design, each function can be...
  2. Replies
    13
    Views
    515

    Unbinding is something that you only see in...

    Unbinding is something that you only see in relatively recent tutorials, and is not actually necessary at all. I would personally be happier if tutorial writers didn't unbind, but instead taught how...
  3. Replies
    13
    Views
    515

    The most immediately and obviously wrong thing is...

    The most immediately and obviously wrong thing is this block of code:
    glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(float), (void*)0);
    glEnableVertexAttribArray(0);
    unsigned int VAO;...
Results 1 to 3 of 3