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. Thread: glDrawElements

    by mhagain
    Replies
    17
    Views
    713

    Actually in 2.x you can do either. If a buffer...

    Actually in 2.x you can do either.

    If a buffer object is bound to the ELEMENT_ARRAY_BUFFER binding point the last argument is interpreted as an offset into that buffer object's data store.

    If a...
  2. Thread: glDrawElements

    by mhagain
    Replies
    17
    Views
    713

    Because you've probably created a core GL 3.x or...

    Because you've probably created a core GL 3.x or higher context.

    This is where we need to go back to the discussion on deprecation earlier in the thread.

    If you create a core context, then some...
  3. Thread: glDrawElements

    by mhagain
    Replies
    17
    Views
    713

    Because each version of OpenGL (aside from 1.0)...

    Because each version of OpenGL (aside from 1.0) is incrementally built on top of the prior version, by definition you're always mixing OpenGL versions.

    For example: glDrawElements is GL 1.1,...
  4. Thread: glDrawElements

    by mhagain
    Replies
    17
    Views
    713

    This won't work in modern OpenGL core contexts...

    This won't work in modern OpenGL core contexts because elements must be sourced from a GL_ELEMENT_ARRAY_BUFFER object.
Results 1 to 4 of 4